diff --git a/gapic-libraries-bom/pom.xml b/gapic-libraries-bom/pom.xml index debbb6b06e7f..bb3ca8df062e 100644 --- a/gapic-libraries-bom/pom.xml +++ b/gapic-libraries-bom/pom.xml @@ -1039,6 +1039,13 @@ pom import + + com.google.cloud + google-cloud-saasservicemgmt-bom + 0.0.1-SNAPSHOT + pom + import + com.google.cloud google-cloud-scheduler-bom diff --git a/generation_config.yaml b/generation_config.yaml index 923a06a51534..e9949a50f7ff 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -2030,6 +2030,22 @@ libraries: GAPICs: - proto_path: google/cloud/run/v2 +- api_shortname: saasservicemgmt + name_pretty: SaaS Runtime API + product_documentation: https://cloud.google.com/saas-runtime/docs/overview + api_description: "Model, deploy, and operate your SaaS at scale.\t" + client_documentation: + https://cloud.google.com/java/docs/reference/google-cloud-saasservicemgmt/latest/overview + release_level: preview + distribution_name: com.google.cloud:google-cloud-saasservicemgmt + api_id: saasservicemgmt.googleapis.com + library_type: GAPIC_AUTO + group_id: com.google.cloud + cloud_api: true + GAPICs: + - proto_path: google/cloud/saasplatform/saasservicemgmt/v1beta1 + requires_billing: true + rpc_documentation: https://cloud.google.com/saas-runtime/docs/apis - api_shortname: cloudscheduler name_pretty: Google Cloud Scheduler product_documentation: https://cloud.google.com/scheduler/docs diff --git a/java-saasservicemgmt/.OwlBot-hermetic.yaml b/java-saasservicemgmt/.OwlBot-hermetic.yaml new file mode 100644 index 000000000000..4d9c39b3550c --- /dev/null +++ b/java-saasservicemgmt/.OwlBot-hermetic.yaml @@ -0,0 +1,35 @@ +# Copyright 2024 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. + + +deep-remove-regex: +- "/java-saasservicemgmt/grpc-google-.*/src" +- "/java-saasservicemgmt/proto-google-.*/src" +- "/java-saasservicemgmt/google-.*/src" +- "/java-saasservicemgmt/samples/snippets/generated" + +deep-preserve-regex: +- "/java-saasservicemgmt/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + +deep-copy-regex: +- source: "/google/cloud/saasplatform/saasservicemgmt/(v.*)/.*-java/proto-google-.*/src" + dest: "/owl-bot-staging/java-saasservicemgmt/$1/proto-google-cloud-saasservicemgmt-$1/src" +- source: "/google/cloud/saasplatform/saasservicemgmt/(v.*)/.*-java/grpc-google-.*/src" + dest: "/owl-bot-staging/java-saasservicemgmt/$1/grpc-google-cloud-saasservicemgmt-$1/src" +- source: "/google/cloud/saasplatform/saasservicemgmt/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-saasservicemgmt/$1/google-cloud-saasservicemgmt/src" +- source: "/google/cloud/saasplatform/saasservicemgmt/(v.*)/.*-java/samples/snippets/generated" + dest: "/owl-bot-staging/java-saasservicemgmt/$1/samples/snippets/generated" + +api-name: saasservicemgmt \ No newline at end of file diff --git a/java-saasservicemgmt/.repo-metadata.json b/java-saasservicemgmt/.repo-metadata.json new file mode 100644 index 000000000000..72e42c85e0b8 --- /dev/null +++ b/java-saasservicemgmt/.repo-metadata.json @@ -0,0 +1,17 @@ +{ + "api_shortname": "saasservicemgmt", + "name_pretty": "SaaS Runtime API", + "product_documentation": "https://cloud.google.com/saas-runtime/docs/overview", + "api_description": "Model, deploy, and operate your SaaS at scale.\t", + "client_documentation": "https://cloud.google.com/java/docs/reference/google-cloud-saasservicemgmt/latest/overview", + "release_level": "preview", + "transport": "both", + "language": "java", + "repo": "googleapis/google-cloud-java", + "repo_short": "java-saasservicemgmt", + "distribution_name": "com.google.cloud:google-cloud-saasservicemgmt", + "api_id": "saasservicemgmt.googleapis.com", + "library_type": "GAPIC_AUTO", + "requires_billing": true, + "rpc_documentation": "https://cloud.google.com/saas-runtime/docs/apis" +} \ No newline at end of file diff --git a/java-saasservicemgmt/README.md b/java-saasservicemgmt/README.md new file mode 100644 index 000000000000..1c2a305983e4 --- /dev/null +++ b/java-saasservicemgmt/README.md @@ -0,0 +1,224 @@ +# Google SaaS Runtime API Client for Java + +Java idiomatic client for [SaaS Runtime API][product-docs]. + +[![Maven][maven-version-image]][maven-version-link] +![Stability][stability-image] + +- [Product Documentation][product-docs] +- [Client Library Documentation][javadocs] + +> Note: This client is a work-in-progress, and may occasionally +> make backwards-incompatible changes. + + +## Quickstart + + +If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: + +```xml + + + + com.google.cloud + libraries-bom + 26.65.0 + pom + import + + + + + + + com.google.cloud + google-cloud-saasservicemgmt + + +``` + +If you are using Maven without the BOM, add this to your dependencies: + + +```xml + + com.google.cloud + google-cloud-saasservicemgmt + 0.0.0 + +``` + +If you are using Gradle without BOM, add this to your dependencies: + +```Groovy +implementation 'com.google.cloud:google-cloud-saasservicemgmt:0.0.0' +``` + +If you are using SBT, add this to your dependencies: + +```Scala +libraryDependencies += "com.google.cloud" % "google-cloud-saasservicemgmt" % "0.0.0" +``` + +## Authentication + +See the [Authentication][authentication] section in the base directory's README. + +## Authorization + +The client application making API calls must be granted [authorization scopes][auth-scopes] required for the desired SaaS Runtime API APIs, and the authenticated principal must have the [IAM role(s)][predefined-iam-roles] required to access GCP resources using the SaaS Runtime API API calls. + +## Getting Started + +### Prerequisites + +You will need a [Google Cloud Platform Console][developer-console] project with the SaaS Runtime API [API enabled][enable-api]. +You will need to [enable billing][enable-billing] to use Google SaaS Runtime API. +[Follow these instructions][create-project] to get your project set up. You will also need to set up the local development environment by +[installing the Google Cloud Command Line Interface][cloud-cli] and running the following commands in command line: +`gcloud auth login` and `gcloud config set project [YOUR PROJECT ID]`. + +### Installation and setup + +You'll need to obtain the `google-cloud-saasservicemgmt` library. See the [Quickstart](#quickstart) section +to add `google-cloud-saasservicemgmt` as a dependency in your code. + +## About SaaS Runtime API + + +[SaaS Runtime API][product-docs] Model, deploy, and operate your SaaS at scale. + +See the [SaaS Runtime API client library docs][javadocs] to learn how to +use this SaaS Runtime API Client Library. + + + + + + +## Troubleshooting + +To get help, follow the instructions in the [shared Troubleshooting document][troubleshooting]. + +## Transport + +SaaS Runtime API uses both gRPC and HTTP/JSON for the transport layer. + +## Supported Java Versions + +Java 8 or above is required for using this client. + +Google's Java client libraries, +[Google Cloud Client Libraries][cloudlibs] +and +[Google Cloud API Libraries][apilibs], +follow the +[Oracle Java SE support roadmap][oracle] +(see the Oracle Java SE Product Releases section). + +### For new development + +In general, new feature development occurs with support for the lowest Java +LTS version covered by Oracle's Premier Support (which typically lasts 5 years +from initial General Availability). If the minimum required JVM for a given +library is changed, it is accompanied by a [semver][semver] major release. + +Java 11 and (in September 2021) Java 17 are the best choices for new +development. + +### Keeping production systems current + +Google tests its client libraries with all current LTS versions covered by +Oracle's Extended Support (which typically lasts 8 years from initial +General Availability). + +#### Legacy support + +Google's client libraries support legacy versions of Java runtimes with long +term stable libraries that don't receive feature updates on a best efforts basis +as it may not be possible to backport all patches. + +Google provides updates on a best efforts basis to apps that continue to use +Java 7, though apps might need to upgrade to current versions of the library +that supports their JVM. + +#### Where to find specific information + +The latest versions and the supported Java versions are identified on +the individual GitHub repository `github.com/GoogleAPIs/java-SERVICENAME` +and on [google-cloud-java][g-c-j]. + +## Versioning + + +This library follows [Semantic Versioning](http://semver.org/). + + +It is currently in major version zero (``0.y.z``), which means that anything may change at any time +and the public API should not be considered stable. + + +## Contributing + + +Contributions to this library are always welcome and highly encouraged. + +See [CONTRIBUTING][contributing] for more information how to get started. + +Please note that this project is released with a Contributor Code of Conduct. By participating in +this project you agree to abide by its terms. See [Code of Conduct][code-of-conduct] for more +information. + + +## License + +Apache 2.0 - See [LICENSE][license] for more information. + +## CI Status + +Java Version | Status +------------ | ------ +Java 8 | [![Kokoro CI][kokoro-badge-image-2]][kokoro-badge-link-2] +Java 8 OSX | [![Kokoro CI][kokoro-badge-image-3]][kokoro-badge-link-3] +Java 8 Windows | [![Kokoro CI][kokoro-badge-image-4]][kokoro-badge-link-4] +Java 11 | [![Kokoro CI][kokoro-badge-image-5]][kokoro-badge-link-5] + +Java is a registered trademark of Oracle and/or its affiliates. + +[product-docs]: https://cloud.google.com/saas-runtime/docs/overview +[javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-saasservicemgmt/latest/overview +[kokoro-badge-image-1]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java7.svg +[kokoro-badge-link-1]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java7.html +[kokoro-badge-image-2]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java8.svg +[kokoro-badge-link-2]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java8.html +[kokoro-badge-image-3]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java8-osx.svg +[kokoro-badge-link-3]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java8-osx.html +[kokoro-badge-image-4]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java8-win.svg +[kokoro-badge-link-4]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java8-win.html +[kokoro-badge-image-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.svg +[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html +[stability-image]: https://img.shields.io/badge/stability-preview-yellow +[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-saasservicemgmt.svg +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-saasservicemgmt/0.0.0 +[authentication]: https://github.com/googleapis/google-cloud-java#authentication +[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes +[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles +[iam-policy]: https://cloud.google.com/iam/docs/overview#cloud-iam-policy +[developer-console]: https://console.developers.google.com/ +[create-project]: https://cloud.google.com/resource-manager/docs/creating-managing-projects +[cloud-cli]: https://cloud.google.com/cli +[troubleshooting]: https://github.com/googleapis/google-cloud-java/blob/main/TROUBLESHOOTING.md +[contributing]: https://github.com/googleapis/google-cloud-java/blob/main/CONTRIBUTING.md +[code-of-conduct]: https://github.com/googleapis/google-cloud-java/blob/main/CODE_OF_CONDUCT.md#contributor-code-of-conduct +[license]: https://github.com/googleapis/google-cloud-java/blob/main/LICENSE +[enable-billing]: https://cloud.google.com/apis/docs/getting-started#enabling_billing +[enable-api]: https://console.cloud.google.com/flows/enableapi?apiid=saasservicemgmt.googleapis.com +[libraries-bom]: https://github.com/GoogleCloudPlatform/cloud-opensource-java/wiki/The-Google-Cloud-Platform-Libraries-BOM +[shell_img]: https://gstatic.com/cloudssh/images/open-btn.png + +[semver]: https://semver.org/ +[cloudlibs]: https://cloud.google.com/apis/docs/client-libraries-explained +[apilibs]: https://cloud.google.com/apis/docs/client-libraries-explained#google_api_client_libraries +[oracle]: https://www.oracle.com/java/technologies/java-se-support-roadmap.html +[g-c-j]: http://github.com/googleapis/google-cloud-java diff --git a/java-saasservicemgmt/google-cloud-saasservicemgmt-bom/pom.xml b/java-saasservicemgmt/google-cloud-saasservicemgmt-bom/pom.xml new file mode 100644 index 000000000000..ee1a29bc30ef --- /dev/null +++ b/java-saasservicemgmt/google-cloud-saasservicemgmt-bom/pom.xml @@ -0,0 +1,43 @@ + + + 4.0.0 + com.google.cloud + google-cloud-saasservicemgmt-bom + 0.0.1-SNAPSHOT + pom + + com.google.cloud + google-cloud-pom-parent + 1.65.0-SNAPSHOT + ../../google-cloud-pom-parent/pom.xml + + + Google SaaS Runtime API BOM + + BOM for SaaS Runtime API + + + + true + + + + + + com.google.cloud + google-cloud-saasservicemgmt + 0.0.1-SNAPSHOT + + + com.google.api.grpc + grpc-google-cloud-saasservicemgmt-v1beta1 + 0.0.1-SNAPSHOT + + + com.google.api.grpc + proto-google-cloud-saasservicemgmt-v1beta1 + 0.0.1-SNAPSHOT + + + + diff --git a/java-saasservicemgmt/google-cloud-saasservicemgmt/pom.xml b/java-saasservicemgmt/google-cloud-saasservicemgmt/pom.xml new file mode 100644 index 000000000000..73fb37f291eb --- /dev/null +++ b/java-saasservicemgmt/google-cloud-saasservicemgmt/pom.xml @@ -0,0 +1,115 @@ + + + 4.0.0 + com.google.cloud + google-cloud-saasservicemgmt + 0.0.1-SNAPSHOT + jar + Google SaaS Runtime API + SaaS Runtime API Model, deploy, and operate your SaaS at scale. + + com.google.cloud + google-cloud-saasservicemgmt-parent + 0.0.1-SNAPSHOT + + + google-cloud-saasservicemgmt + + + + io.grpc + grpc-api + + + io.grpc + grpc-stub + + + io.grpc + grpc-protobuf + + + com.google.api + api-common + + + com.google.protobuf + protobuf-java + + + com.google.api.grpc + proto-google-common-protos + + + + com.google.api.grpc + proto-google-cloud-saasservicemgmt-v1beta1 + + + com.google.guava + guava + + + com.google.api + gax + + + com.google.api + gax-grpc + + + com.google.api + gax-httpjson + + + com.google.api.grpc + proto-google-iam-v1 + + + org.threeten + threetenbp + + + + + com.google.api.grpc + grpc-google-common-protos + test + + + com.google.api.grpc + grpc-google-iam-v1 + test + + + junit + junit + test + + + + com.google.api.grpc + grpc-google-cloud-saasservicemgmt-v1beta1 + test + + + + com.google.api + gax + testlib + test + + + com.google.api + gax-grpc + testlib + test + + + com.google.api + gax-httpjson + testlib + test + + + diff --git a/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/SaasDeploymentsClient.java b/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/SaasDeploymentsClient.java new file mode 100644 index 000000000000..dd5ae2cc82cc --- /dev/null +++ b/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/SaasDeploymentsClient.java @@ -0,0 +1,5188 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1; + +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.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.stub.SaasDeploymentsStub; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.stub.SaasDeploymentsStubSettings; +import com.google.common.util.concurrent.MoreExecutors; +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 CLASS. +/** + * Service Description: Manages the deployment of SaaS services. + * + *

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

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+ *   SaasName name = SaasName.of("[PROJECT]", "[LOCATION]", "[SAAS]");
+ *   Saas response = saasDeploymentsClient.getSaas(name);
+ * }
+ * }
+ * + *

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

ListSaas

Retrieve a collection of saas.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listSaas(ListSaasRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • listSaas(LocationName parent) + *

  • listSaas(String parent) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • listSaasPagedCallable() + *

  • listSaasCallable() + *

+ *

GetSaas

Retrieve a single saas.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getSaas(GetSaasRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • getSaas(SaasName name) + *

  • getSaas(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • getSaasCallable() + *

+ *

CreateSaas

Create a new saas.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • createSaas(CreateSaasRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • createSaas(LocationName parent, Saas saas, String saasId) + *

  • createSaas(String parent, Saas saas, String saasId) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • createSaasCallable() + *

+ *

UpdateSaas

Update a single saas.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • updateSaas(UpdateSaasRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • updateSaas(Saas saas, FieldMask updateMask) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • updateSaasCallable() + *

+ *

DeleteSaas

Delete a single saas.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • deleteSaas(DeleteSaasRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • deleteSaas(SaasName name) + *

  • deleteSaas(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • deleteSaasCallable() + *

+ *

ListTenants

Retrieve a collection of tenants.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listTenants(ListTenantsRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • listTenants(LocationName parent) + *

  • listTenants(String parent) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • listTenantsPagedCallable() + *

  • listTenantsCallable() + *

+ *

GetTenant

Retrieve a single tenant.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getTenant(GetTenantRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • getTenant(TenantName name) + *

  • getTenant(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • getTenantCallable() + *

+ *

CreateTenant

Create a new tenant.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • createTenant(CreateTenantRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • createTenant(LocationName parent, Tenant tenant, String tenantId) + *

  • createTenant(String parent, Tenant tenant, String tenantId) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • createTenantCallable() + *

+ *

UpdateTenant

Update a single tenant.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • updateTenant(UpdateTenantRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • updateTenant(Tenant tenant, FieldMask updateMask) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • updateTenantCallable() + *

+ *

DeleteTenant

Delete a single tenant.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • deleteTenant(DeleteTenantRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • deleteTenant(TenantName name) + *

  • deleteTenant(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • deleteTenantCallable() + *

+ *

ListUnitKinds

Retrieve a collection of unit kinds.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listUnitKinds(ListUnitKindsRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • listUnitKinds(LocationName parent) + *

  • listUnitKinds(String parent) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • listUnitKindsPagedCallable() + *

  • listUnitKindsCallable() + *

+ *

GetUnitKind

Retrieve a single unit kind.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getUnitKind(GetUnitKindRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • getUnitKind(UnitKindName name) + *

  • getUnitKind(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • getUnitKindCallable() + *

+ *

CreateUnitKind

Create a new unit kind.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • createUnitKind(CreateUnitKindRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • createUnitKind(LocationName parent, UnitKind unitKind, String unitKindId) + *

  • createUnitKind(String parent, UnitKind unitKind, String unitKindId) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • createUnitKindCallable() + *

+ *

UpdateUnitKind

Update a single unit kind.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • updateUnitKind(UpdateUnitKindRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • updateUnitKind(UnitKind unitKind, FieldMask updateMask) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • updateUnitKindCallable() + *

+ *

DeleteUnitKind

Delete a single unit kind.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • deleteUnitKind(DeleteUnitKindRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • deleteUnitKind(UnitKindName name) + *

  • deleteUnitKind(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • deleteUnitKindCallable() + *

+ *

ListUnits

Retrieve a collection of units.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listUnits(ListUnitsRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • listUnits(LocationName parent) + *

  • listUnits(String parent) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • listUnitsPagedCallable() + *

  • listUnitsCallable() + *

+ *

GetUnit

Retrieve a single unit.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getUnit(GetUnitRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • getUnit(UnitName name) + *

  • getUnit(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • getUnitCallable() + *

+ *

CreateUnit

Create a new unit.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • createUnit(CreateUnitRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • createUnit(LocationName parent, Unit unit, String unitId) + *

  • createUnit(String parent, Unit unit, String unitId) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • createUnitCallable() + *

+ *

UpdateUnit

Update a single unit.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • updateUnit(UpdateUnitRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • updateUnit(Unit unit, FieldMask updateMask) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • updateUnitCallable() + *

+ *

DeleteUnit

Delete a single unit.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • deleteUnit(DeleteUnitRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • deleteUnit(UnitName name) + *

  • deleteUnit(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • deleteUnitCallable() + *

+ *

ListUnitOperations

Retrieve a collection of unit operations.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listUnitOperations(ListUnitOperationsRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • listUnitOperations(LocationName parent) + *

  • listUnitOperations(String parent) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • listUnitOperationsPagedCallable() + *

  • listUnitOperationsCallable() + *

+ *

GetUnitOperation

Retrieve a single unit operation.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getUnitOperation(GetUnitOperationRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • getUnitOperation(UnitOperationName name) + *

  • getUnitOperation(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • getUnitOperationCallable() + *

+ *

CreateUnitOperation

Create a new unit operation.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • createUnitOperation(CreateUnitOperationRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • createUnitOperation(LocationName parent, UnitOperation unitOperation, String unitOperationId) + *

  • createUnitOperation(String parent, UnitOperation unitOperation, String unitOperationId) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • createUnitOperationCallable() + *

+ *

UpdateUnitOperation

Update a single unit operation.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • updateUnitOperation(UpdateUnitOperationRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • updateUnitOperation(UnitOperation unitOperation, FieldMask updateMask) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • updateUnitOperationCallable() + *

+ *

DeleteUnitOperation

Delete a single unit operation.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • deleteUnitOperation(DeleteUnitOperationRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • deleteUnitOperation(UnitOperationName name) + *

  • deleteUnitOperation(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • deleteUnitOperationCallable() + *

+ *

ListReleases

Retrieve a collection of releases.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listReleases(ListReleasesRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • listReleases(LocationName parent) + *

  • listReleases(String parent) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • listReleasesPagedCallable() + *

  • listReleasesCallable() + *

+ *

GetRelease

Retrieve a single release.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getRelease(GetReleaseRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • getRelease(ReleaseName name) + *

  • getRelease(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • getReleaseCallable() + *

+ *

CreateRelease

Create a new release.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • createRelease(CreateReleaseRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • createRelease(LocationName parent, Release release, String releaseId) + *

  • createRelease(String parent, Release release, String releaseId) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • createReleaseCallable() + *

+ *

UpdateRelease

Update a single release.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • updateRelease(UpdateReleaseRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • updateRelease(Release release, FieldMask updateMask) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • updateReleaseCallable() + *

+ *

DeleteRelease

Delete a single release.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • deleteRelease(DeleteReleaseRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • deleteRelease(ReleaseName name) + *

  • deleteRelease(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • deleteReleaseCallable() + *

+ *

ListLocations

Lists information about the supported locations for this service.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listLocations(ListLocationsRequest request) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • listLocationsPagedCallable() + *

  • listLocationsCallable() + *

+ *

GetLocation

Gets information about a location.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getLocation(GetLocationRequest request) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • getLocationCallable() + *

+ *
+ * + *

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 SaasDeploymentsSettings to + * create(). For example: + * + *

To customize credentials: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * SaasDeploymentsSettings saasDeploymentsSettings =
+ *     SaasDeploymentsSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * SaasDeploymentsClient saasDeploymentsClient =
+ *     SaasDeploymentsClient.create(saasDeploymentsSettings);
+ * }
+ * + *

To customize the endpoint: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * SaasDeploymentsSettings saasDeploymentsSettings =
+ *     SaasDeploymentsSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * SaasDeploymentsClient saasDeploymentsClient =
+ *     SaasDeploymentsClient.create(saasDeploymentsSettings);
+ * }
+ * + *

To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * SaasDeploymentsSettings saasDeploymentsSettings =
+ *     SaasDeploymentsSettings.newHttpJsonBuilder().build();
+ * SaasDeploymentsClient saasDeploymentsClient =
+ *     SaasDeploymentsClient.create(saasDeploymentsSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class SaasDeploymentsClient implements BackgroundResource { + private final SaasDeploymentsSettings settings; + private final SaasDeploymentsStub stub; + + /** Constructs an instance of SaasDeploymentsClient with default settings. */ + public static final SaasDeploymentsClient create() throws IOException { + return create(SaasDeploymentsSettings.newBuilder().build()); + } + + /** + * Constructs an instance of SaasDeploymentsClient, 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 SaasDeploymentsClient create(SaasDeploymentsSettings settings) + throws IOException { + return new SaasDeploymentsClient(settings); + } + + /** + * Constructs an instance of SaasDeploymentsClient, using the given stub for making calls. This is + * for advanced usage - prefer using create(SaasDeploymentsSettings). + */ + public static final SaasDeploymentsClient create(SaasDeploymentsStub stub) { + return new SaasDeploymentsClient(stub); + } + + /** + * Constructs an instance of SaasDeploymentsClient, 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 SaasDeploymentsClient(SaasDeploymentsSettings settings) throws IOException { + this.settings = settings; + this.stub = ((SaasDeploymentsStubSettings) settings.getStubSettings()).createStub(); + } + + protected SaasDeploymentsClient(SaasDeploymentsStub stub) { + this.settings = null; + this.stub = stub; + } + + public final SaasDeploymentsSettings getSettings() { + return settings; + } + + public SaasDeploymentsStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieve a collection of saas. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   for (Saas element : saasDeploymentsClient.listSaas(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent of the saas. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListSaasPagedResponse listSaas(LocationName parent) { + ListSaasRequest request = + ListSaasRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); + return listSaas(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieve a collection of saas. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   for (Saas element : saasDeploymentsClient.listSaas(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent of the saas. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListSaasPagedResponse listSaas(String parent) { + ListSaasRequest request = ListSaasRequest.newBuilder().setParent(parent).build(); + return listSaas(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieve a collection of saas. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   ListSaasRequest request =
+   *       ListSaasRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   for (Saas element : saasDeploymentsClient.listSaas(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 ListSaasPagedResponse listSaas(ListSaasRequest request) { + return listSaasPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieve a collection of saas. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   ListSaasRequest request =
+   *       ListSaasRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   ApiFuture future = saasDeploymentsClient.listSaasPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Saas element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listSaasPagedCallable() { + return stub.listSaasPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieve a collection of saas. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   ListSaasRequest request =
+   *       ListSaasRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   while (true) {
+   *     ListSaasResponse response = saasDeploymentsClient.listSaasCallable().call(request);
+   *     for (Saas element : response.getSaasList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listSaasCallable() { + return stub.listSaasCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieve a single saas. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   SaasName name = SaasName.of("[PROJECT]", "[LOCATION]", "[SAAS]");
+   *   Saas response = saasDeploymentsClient.getSaas(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the resource within a service. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Saas getSaas(SaasName name) { + GetSaasRequest request = + GetSaasRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getSaas(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieve a single saas. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   String name = SaasName.of("[PROJECT]", "[LOCATION]", "[SAAS]").toString();
+   *   Saas response = saasDeploymentsClient.getSaas(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the resource within a service. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Saas getSaas(String name) { + GetSaasRequest request = GetSaasRequest.newBuilder().setName(name).build(); + return getSaas(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieve a single saas. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   GetSaasRequest request =
+   *       GetSaasRequest.newBuilder()
+   *           .setName(SaasName.of("[PROJECT]", "[LOCATION]", "[SAAS]").toString())
+   *           .build();
+   *   Saas response = saasDeploymentsClient.getSaas(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 Saas getSaas(GetSaasRequest request) { + return getSaasCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieve a single saas. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   GetSaasRequest request =
+   *       GetSaasRequest.newBuilder()
+   *           .setName(SaasName.of("[PROJECT]", "[LOCATION]", "[SAAS]").toString())
+   *           .build();
+   *   ApiFuture future = saasDeploymentsClient.getSaasCallable().futureCall(request);
+   *   // Do something.
+   *   Saas response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getSaasCallable() { + return stub.getSaasCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create a new saas. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   Saas saas = Saas.newBuilder().build();
+   *   String saasId = "saasId-910030789";
+   *   Saas response = saasDeploymentsClient.createSaas(parent, saas, saasId);
+   * }
+   * }
+ * + * @param parent Required. The parent of the saas. + * @param saas Required. The desired state for the saas. + * @param saasId Required. The ID value for the new saas. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Saas createSaas(LocationName parent, Saas saas, String saasId) { + CreateSaasRequest request = + CreateSaasRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setSaas(saas) + .setSaasId(saasId) + .build(); + return createSaas(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create a new saas. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   Saas saas = Saas.newBuilder().build();
+   *   String saasId = "saasId-910030789";
+   *   Saas response = saasDeploymentsClient.createSaas(parent, saas, saasId);
+   * }
+   * }
+ * + * @param parent Required. The parent of the saas. + * @param saas Required. The desired state for the saas. + * @param saasId Required. The ID value for the new saas. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Saas createSaas(String parent, Saas saas, String saasId) { + CreateSaasRequest request = + CreateSaasRequest.newBuilder().setParent(parent).setSaas(saas).setSaasId(saasId).build(); + return createSaas(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create a new saas. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   CreateSaasRequest request =
+   *       CreateSaasRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setSaasId("saasId-910030789")
+   *           .setSaas(Saas.newBuilder().build())
+   *           .setValidateOnly(true)
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   Saas response = saasDeploymentsClient.createSaas(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 Saas createSaas(CreateSaasRequest request) { + return createSaasCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create a new saas. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   CreateSaasRequest request =
+   *       CreateSaasRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setSaasId("saasId-910030789")
+   *           .setSaas(Saas.newBuilder().build())
+   *           .setValidateOnly(true)
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future = saasDeploymentsClient.createSaasCallable().futureCall(request);
+   *   // Do something.
+   *   Saas response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createSaasCallable() { + return stub.createSaasCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Update a single saas. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   Saas saas = Saas.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   Saas response = saasDeploymentsClient.updateSaas(saas, updateMask);
+   * }
+   * }
+ * + * @param saas Required. The desired state for the saas. + * @param updateMask Field mask is used to specify the fields to be overwritten in the Saas + * resource by the update. + *

The fields specified in the update_mask are relative to the resource, not the full + * request. A field will be overwritten if it is in the mask. + *

If the user does not provide a mask then all fields in the Saas will be overwritten. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Saas updateSaas(Saas saas, FieldMask updateMask) { + UpdateSaasRequest request = + UpdateSaasRequest.newBuilder().setSaas(saas).setUpdateMask(updateMask).build(); + return updateSaas(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Update a single saas. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   UpdateSaasRequest request =
+   *       UpdateSaasRequest.newBuilder()
+   *           .setSaas(Saas.newBuilder().build())
+   *           .setValidateOnly(true)
+   *           .setRequestId("requestId693933066")
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   Saas response = saasDeploymentsClient.updateSaas(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 Saas updateSaas(UpdateSaasRequest request) { + return updateSaasCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Update a single saas. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   UpdateSaasRequest request =
+   *       UpdateSaasRequest.newBuilder()
+   *           .setSaas(Saas.newBuilder().build())
+   *           .setValidateOnly(true)
+   *           .setRequestId("requestId693933066")
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = saasDeploymentsClient.updateSaasCallable().futureCall(request);
+   *   // Do something.
+   *   Saas response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updateSaasCallable() { + return stub.updateSaasCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Delete a single saas. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   SaasName name = SaasName.of("[PROJECT]", "[LOCATION]", "[SAAS]");
+   *   saasDeploymentsClient.deleteSaas(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the resource within a service. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteSaas(SaasName name) { + DeleteSaasRequest request = + DeleteSaasRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + deleteSaas(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Delete a single saas. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   String name = SaasName.of("[PROJECT]", "[LOCATION]", "[SAAS]").toString();
+   *   saasDeploymentsClient.deleteSaas(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the resource within a service. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteSaas(String name) { + DeleteSaasRequest request = DeleteSaasRequest.newBuilder().setName(name).build(); + deleteSaas(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Delete a single saas. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   DeleteSaasRequest request =
+   *       DeleteSaasRequest.newBuilder()
+   *           .setName(SaasName.of("[PROJECT]", "[LOCATION]", "[SAAS]").toString())
+   *           .setEtag("etag3123477")
+   *           .setValidateOnly(true)
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   saasDeploymentsClient.deleteSaas(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 void deleteSaas(DeleteSaasRequest request) { + deleteSaasCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Delete a single saas. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   DeleteSaasRequest request =
+   *       DeleteSaasRequest.newBuilder()
+   *           .setName(SaasName.of("[PROJECT]", "[LOCATION]", "[SAAS]").toString())
+   *           .setEtag("etag3123477")
+   *           .setValidateOnly(true)
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future = saasDeploymentsClient.deleteSaasCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteSaasCallable() { + return stub.deleteSaasCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieve a collection of tenants. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   for (Tenant element : saasDeploymentsClient.listTenants(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent of the tenant. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListTenantsPagedResponse listTenants(LocationName parent) { + ListTenantsRequest request = + ListTenantsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listTenants(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieve a collection of tenants. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   for (Tenant element : saasDeploymentsClient.listTenants(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent of the tenant. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListTenantsPagedResponse listTenants(String parent) { + ListTenantsRequest request = ListTenantsRequest.newBuilder().setParent(parent).build(); + return listTenants(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieve a collection of tenants. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   ListTenantsRequest request =
+   *       ListTenantsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   for (Tenant element : saasDeploymentsClient.listTenants(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 ListTenantsPagedResponse listTenants(ListTenantsRequest request) { + return listTenantsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieve a collection of tenants. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   ListTenantsRequest request =
+   *       ListTenantsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   ApiFuture future =
+   *       saasDeploymentsClient.listTenantsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Tenant element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listTenantsPagedCallable() { + return stub.listTenantsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieve a collection of tenants. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   ListTenantsRequest request =
+   *       ListTenantsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   while (true) {
+   *     ListTenantsResponse response = saasDeploymentsClient.listTenantsCallable().call(request);
+   *     for (Tenant element : response.getTenantsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listTenantsCallable() { + return stub.listTenantsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieve a single tenant. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   TenantName name = TenantName.of("[PROJECT]", "[LOCATION]", "[TENANT]");
+   *   Tenant response = saasDeploymentsClient.getTenant(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the resource within a service. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Tenant getTenant(TenantName name) { + GetTenantRequest request = + GetTenantRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getTenant(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieve a single tenant. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   String name = TenantName.of("[PROJECT]", "[LOCATION]", "[TENANT]").toString();
+   *   Tenant response = saasDeploymentsClient.getTenant(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the resource within a service. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Tenant getTenant(String name) { + GetTenantRequest request = GetTenantRequest.newBuilder().setName(name).build(); + return getTenant(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieve a single tenant. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   GetTenantRequest request =
+   *       GetTenantRequest.newBuilder()
+   *           .setName(TenantName.of("[PROJECT]", "[LOCATION]", "[TENANT]").toString())
+   *           .build();
+   *   Tenant response = saasDeploymentsClient.getTenant(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 Tenant getTenant(GetTenantRequest request) { + return getTenantCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieve a single tenant. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   GetTenantRequest request =
+   *       GetTenantRequest.newBuilder()
+   *           .setName(TenantName.of("[PROJECT]", "[LOCATION]", "[TENANT]").toString())
+   *           .build();
+   *   ApiFuture future = saasDeploymentsClient.getTenantCallable().futureCall(request);
+   *   // Do something.
+   *   Tenant response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getTenantCallable() { + return stub.getTenantCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create a new tenant. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   Tenant tenant = Tenant.newBuilder().build();
+   *   String tenantId = "tenantId-1306693787";
+   *   Tenant response = saasDeploymentsClient.createTenant(parent, tenant, tenantId);
+   * }
+   * }
+ * + * @param parent Required. The parent of the tenant. + * @param tenant Required. The desired state for the tenant. + * @param tenantId Required. The ID value for the new tenant. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Tenant createTenant(LocationName parent, Tenant tenant, String tenantId) { + CreateTenantRequest request = + CreateTenantRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setTenant(tenant) + .setTenantId(tenantId) + .build(); + return createTenant(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create a new tenant. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   Tenant tenant = Tenant.newBuilder().build();
+   *   String tenantId = "tenantId-1306693787";
+   *   Tenant response = saasDeploymentsClient.createTenant(parent, tenant, tenantId);
+   * }
+   * }
+ * + * @param parent Required. The parent of the tenant. + * @param tenant Required. The desired state for the tenant. + * @param tenantId Required. The ID value for the new tenant. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Tenant createTenant(String parent, Tenant tenant, String tenantId) { + CreateTenantRequest request = + CreateTenantRequest.newBuilder() + .setParent(parent) + .setTenant(tenant) + .setTenantId(tenantId) + .build(); + return createTenant(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create a new tenant. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   CreateTenantRequest request =
+   *       CreateTenantRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setTenantId("tenantId-1306693787")
+   *           .setTenant(Tenant.newBuilder().build())
+   *           .setValidateOnly(true)
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   Tenant response = saasDeploymentsClient.createTenant(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 Tenant createTenant(CreateTenantRequest request) { + return createTenantCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create a new tenant. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   CreateTenantRequest request =
+   *       CreateTenantRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setTenantId("tenantId-1306693787")
+   *           .setTenant(Tenant.newBuilder().build())
+   *           .setValidateOnly(true)
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future = saasDeploymentsClient.createTenantCallable().futureCall(request);
+   *   // Do something.
+   *   Tenant response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createTenantCallable() { + return stub.createTenantCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Update a single tenant. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   Tenant tenant = Tenant.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   Tenant response = saasDeploymentsClient.updateTenant(tenant, updateMask);
+   * }
+   * }
+ * + * @param tenant Required. The desired state for the tenant. + * @param updateMask Field mask is used to specify the fields to be overwritten in the Tenant + * resource by the update. + *

The fields specified in the update_mask are relative to the resource, not the full + * request. A field will be overwritten if it is in the mask. + *

If the user does not provide a mask then all fields in the Tenant will be overwritten. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Tenant updateTenant(Tenant tenant, FieldMask updateMask) { + UpdateTenantRequest request = + UpdateTenantRequest.newBuilder().setTenant(tenant).setUpdateMask(updateMask).build(); + return updateTenant(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Update a single tenant. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   UpdateTenantRequest request =
+   *       UpdateTenantRequest.newBuilder()
+   *           .setTenant(Tenant.newBuilder().build())
+   *           .setValidateOnly(true)
+   *           .setRequestId("requestId693933066")
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   Tenant response = saasDeploymentsClient.updateTenant(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 Tenant updateTenant(UpdateTenantRequest request) { + return updateTenantCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Update a single tenant. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   UpdateTenantRequest request =
+   *       UpdateTenantRequest.newBuilder()
+   *           .setTenant(Tenant.newBuilder().build())
+   *           .setValidateOnly(true)
+   *           .setRequestId("requestId693933066")
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = saasDeploymentsClient.updateTenantCallable().futureCall(request);
+   *   // Do something.
+   *   Tenant response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updateTenantCallable() { + return stub.updateTenantCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Delete a single tenant. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   TenantName name = TenantName.of("[PROJECT]", "[LOCATION]", "[TENANT]");
+   *   saasDeploymentsClient.deleteTenant(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the resource within a service. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteTenant(TenantName name) { + DeleteTenantRequest request = + DeleteTenantRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + deleteTenant(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Delete a single tenant. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   String name = TenantName.of("[PROJECT]", "[LOCATION]", "[TENANT]").toString();
+   *   saasDeploymentsClient.deleteTenant(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the resource within a service. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteTenant(String name) { + DeleteTenantRequest request = DeleteTenantRequest.newBuilder().setName(name).build(); + deleteTenant(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Delete a single tenant. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   DeleteTenantRequest request =
+   *       DeleteTenantRequest.newBuilder()
+   *           .setName(TenantName.of("[PROJECT]", "[LOCATION]", "[TENANT]").toString())
+   *           .setEtag("etag3123477")
+   *           .setValidateOnly(true)
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   saasDeploymentsClient.deleteTenant(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 void deleteTenant(DeleteTenantRequest request) { + deleteTenantCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Delete a single tenant. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   DeleteTenantRequest request =
+   *       DeleteTenantRequest.newBuilder()
+   *           .setName(TenantName.of("[PROJECT]", "[LOCATION]", "[TENANT]").toString())
+   *           .setEtag("etag3123477")
+   *           .setValidateOnly(true)
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future = saasDeploymentsClient.deleteTenantCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteTenantCallable() { + return stub.deleteTenantCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieve a collection of unit kinds. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   for (UnitKind element : saasDeploymentsClient.listUnitKinds(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent of the unit kind. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListUnitKindsPagedResponse listUnitKinds(LocationName parent) { + ListUnitKindsRequest request = + ListUnitKindsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listUnitKinds(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieve a collection of unit kinds. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   for (UnitKind element : saasDeploymentsClient.listUnitKinds(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent of the unit kind. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListUnitKindsPagedResponse listUnitKinds(String parent) { + ListUnitKindsRequest request = ListUnitKindsRequest.newBuilder().setParent(parent).build(); + return listUnitKinds(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieve a collection of unit kinds. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   ListUnitKindsRequest request =
+   *       ListUnitKindsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   for (UnitKind element : saasDeploymentsClient.listUnitKinds(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 ListUnitKindsPagedResponse listUnitKinds(ListUnitKindsRequest request) { + return listUnitKindsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieve a collection of unit kinds. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   ListUnitKindsRequest request =
+   *       ListUnitKindsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   ApiFuture future =
+   *       saasDeploymentsClient.listUnitKindsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (UnitKind element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listUnitKindsPagedCallable() { + return stub.listUnitKindsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieve a collection of unit kinds. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   ListUnitKindsRequest request =
+   *       ListUnitKindsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   while (true) {
+   *     ListUnitKindsResponse response =
+   *         saasDeploymentsClient.listUnitKindsCallable().call(request);
+   *     for (UnitKind element : response.getUnitKindsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listUnitKindsCallable() { + return stub.listUnitKindsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieve a single unit kind. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   UnitKindName name = UnitKindName.of("[PROJECT]", "[LOCATION]", "[UNITKIND]");
+   *   UnitKind response = saasDeploymentsClient.getUnitKind(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the resource within a service. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final UnitKind getUnitKind(UnitKindName name) { + GetUnitKindRequest request = + GetUnitKindRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getUnitKind(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieve a single unit kind. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   String name = UnitKindName.of("[PROJECT]", "[LOCATION]", "[UNITKIND]").toString();
+   *   UnitKind response = saasDeploymentsClient.getUnitKind(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the resource within a service. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final UnitKind getUnitKind(String name) { + GetUnitKindRequest request = GetUnitKindRequest.newBuilder().setName(name).build(); + return getUnitKind(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieve a single unit kind. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   GetUnitKindRequest request =
+   *       GetUnitKindRequest.newBuilder()
+   *           .setName(UnitKindName.of("[PROJECT]", "[LOCATION]", "[UNITKIND]").toString())
+   *           .build();
+   *   UnitKind response = saasDeploymentsClient.getUnitKind(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 UnitKind getUnitKind(GetUnitKindRequest request) { + return getUnitKindCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieve a single unit kind. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   GetUnitKindRequest request =
+   *       GetUnitKindRequest.newBuilder()
+   *           .setName(UnitKindName.of("[PROJECT]", "[LOCATION]", "[UNITKIND]").toString())
+   *           .build();
+   *   ApiFuture future = saasDeploymentsClient.getUnitKindCallable().futureCall(request);
+   *   // Do something.
+   *   UnitKind response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getUnitKindCallable() { + return stub.getUnitKindCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create a new unit kind. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   UnitKind unitKind = UnitKind.newBuilder().build();
+   *   String unitKindId = "unitKindId1956463219";
+   *   UnitKind response = saasDeploymentsClient.createUnitKind(parent, unitKind, unitKindId);
+   * }
+   * }
+ * + * @param parent Required. The parent of the unit kind. + * @param unitKind Required. The desired state for the unit kind. + * @param unitKindId Required. The ID value for the new unit kind. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final UnitKind createUnitKind(LocationName parent, UnitKind unitKind, String unitKindId) { + CreateUnitKindRequest request = + CreateUnitKindRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setUnitKind(unitKind) + .setUnitKindId(unitKindId) + .build(); + return createUnitKind(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create a new unit kind. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   UnitKind unitKind = UnitKind.newBuilder().build();
+   *   String unitKindId = "unitKindId1956463219";
+   *   UnitKind response = saasDeploymentsClient.createUnitKind(parent, unitKind, unitKindId);
+   * }
+   * }
+ * + * @param parent Required. The parent of the unit kind. + * @param unitKind Required. The desired state for the unit kind. + * @param unitKindId Required. The ID value for the new unit kind. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final UnitKind createUnitKind(String parent, UnitKind unitKind, String unitKindId) { + CreateUnitKindRequest request = + CreateUnitKindRequest.newBuilder() + .setParent(parent) + .setUnitKind(unitKind) + .setUnitKindId(unitKindId) + .build(); + return createUnitKind(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create a new unit kind. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   CreateUnitKindRequest request =
+   *       CreateUnitKindRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setUnitKindId("unitKindId1956463219")
+   *           .setUnitKind(UnitKind.newBuilder().build())
+   *           .setValidateOnly(true)
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   UnitKind response = saasDeploymentsClient.createUnitKind(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 UnitKind createUnitKind(CreateUnitKindRequest request) { + return createUnitKindCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create a new unit kind. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   CreateUnitKindRequest request =
+   *       CreateUnitKindRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setUnitKindId("unitKindId1956463219")
+   *           .setUnitKind(UnitKind.newBuilder().build())
+   *           .setValidateOnly(true)
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future =
+   *       saasDeploymentsClient.createUnitKindCallable().futureCall(request);
+   *   // Do something.
+   *   UnitKind response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createUnitKindCallable() { + return stub.createUnitKindCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Update a single unit kind. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   UnitKind unitKind = UnitKind.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   UnitKind response = saasDeploymentsClient.updateUnitKind(unitKind, updateMask);
+   * }
+   * }
+ * + * @param unitKind Required. The desired state for the unit kind. + * @param updateMask Field mask is used to specify the fields to be overwritten in the UnitKind + * resource by the update. + *

The fields specified in the update_mask are relative to the resource, not the full + * request. A field will be overwritten if it is in the mask. + *

If the user does not provide a mask then all fields in the UnitKind will be overwritten. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final UnitKind updateUnitKind(UnitKind unitKind, FieldMask updateMask) { + UpdateUnitKindRequest request = + UpdateUnitKindRequest.newBuilder().setUnitKind(unitKind).setUpdateMask(updateMask).build(); + return updateUnitKind(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Update a single unit kind. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   UpdateUnitKindRequest request =
+   *       UpdateUnitKindRequest.newBuilder()
+   *           .setUnitKind(UnitKind.newBuilder().build())
+   *           .setValidateOnly(true)
+   *           .setRequestId("requestId693933066")
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   UnitKind response = saasDeploymentsClient.updateUnitKind(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 UnitKind updateUnitKind(UpdateUnitKindRequest request) { + return updateUnitKindCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Update a single unit kind. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   UpdateUnitKindRequest request =
+   *       UpdateUnitKindRequest.newBuilder()
+   *           .setUnitKind(UnitKind.newBuilder().build())
+   *           .setValidateOnly(true)
+   *           .setRequestId("requestId693933066")
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       saasDeploymentsClient.updateUnitKindCallable().futureCall(request);
+   *   // Do something.
+   *   UnitKind response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updateUnitKindCallable() { + return stub.updateUnitKindCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Delete a single unit kind. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   UnitKindName name = UnitKindName.of("[PROJECT]", "[LOCATION]", "[UNITKIND]");
+   *   saasDeploymentsClient.deleteUnitKind(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the resource within a service. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteUnitKind(UnitKindName name) { + DeleteUnitKindRequest request = + DeleteUnitKindRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + deleteUnitKind(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Delete a single unit kind. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   String name = UnitKindName.of("[PROJECT]", "[LOCATION]", "[UNITKIND]").toString();
+   *   saasDeploymentsClient.deleteUnitKind(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the resource within a service. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteUnitKind(String name) { + DeleteUnitKindRequest request = DeleteUnitKindRequest.newBuilder().setName(name).build(); + deleteUnitKind(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Delete a single unit kind. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   DeleteUnitKindRequest request =
+   *       DeleteUnitKindRequest.newBuilder()
+   *           .setName(UnitKindName.of("[PROJECT]", "[LOCATION]", "[UNITKIND]").toString())
+   *           .setEtag("etag3123477")
+   *           .setValidateOnly(true)
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   saasDeploymentsClient.deleteUnitKind(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 void deleteUnitKind(DeleteUnitKindRequest request) { + deleteUnitKindCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Delete a single unit kind. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   DeleteUnitKindRequest request =
+   *       DeleteUnitKindRequest.newBuilder()
+   *           .setName(UnitKindName.of("[PROJECT]", "[LOCATION]", "[UNITKIND]").toString())
+   *           .setEtag("etag3123477")
+   *           .setValidateOnly(true)
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future = saasDeploymentsClient.deleteUnitKindCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteUnitKindCallable() { + return stub.deleteUnitKindCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieve a collection of units. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   for (Unit element : saasDeploymentsClient.listUnits(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent of the unit. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListUnitsPagedResponse listUnits(LocationName parent) { + ListUnitsRequest request = + ListUnitsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); + return listUnits(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieve a collection of units. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   for (Unit element : saasDeploymentsClient.listUnits(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent of the unit. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListUnitsPagedResponse listUnits(String parent) { + ListUnitsRequest request = ListUnitsRequest.newBuilder().setParent(parent).build(); + return listUnits(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieve a collection of units. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   ListUnitsRequest request =
+   *       ListUnitsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   for (Unit element : saasDeploymentsClient.listUnits(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 ListUnitsPagedResponse listUnits(ListUnitsRequest request) { + return listUnitsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieve a collection of units. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   ListUnitsRequest request =
+   *       ListUnitsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   ApiFuture future = saasDeploymentsClient.listUnitsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Unit element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listUnitsPagedCallable() { + return stub.listUnitsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieve a collection of units. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   ListUnitsRequest request =
+   *       ListUnitsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   while (true) {
+   *     ListUnitsResponse response = saasDeploymentsClient.listUnitsCallable().call(request);
+   *     for (Unit element : response.getUnitsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listUnitsCallable() { + return stub.listUnitsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieve a single unit. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   UnitName name = UnitName.of("[PROJECT]", "[LOCATION]", "[UNIT]");
+   *   Unit response = saasDeploymentsClient.getUnit(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the resource within a service. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Unit getUnit(UnitName name) { + GetUnitRequest request = + GetUnitRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getUnit(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieve a single unit. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   String name = UnitName.of("[PROJECT]", "[LOCATION]", "[UNIT]").toString();
+   *   Unit response = saasDeploymentsClient.getUnit(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the resource within a service. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Unit getUnit(String name) { + GetUnitRequest request = GetUnitRequest.newBuilder().setName(name).build(); + return getUnit(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieve a single unit. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   GetUnitRequest request =
+   *       GetUnitRequest.newBuilder()
+   *           .setName(UnitName.of("[PROJECT]", "[LOCATION]", "[UNIT]").toString())
+   *           .build();
+   *   Unit response = saasDeploymentsClient.getUnit(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 Unit getUnit(GetUnitRequest request) { + return getUnitCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieve a single unit. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   GetUnitRequest request =
+   *       GetUnitRequest.newBuilder()
+   *           .setName(UnitName.of("[PROJECT]", "[LOCATION]", "[UNIT]").toString())
+   *           .build();
+   *   ApiFuture future = saasDeploymentsClient.getUnitCallable().futureCall(request);
+   *   // Do something.
+   *   Unit response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getUnitCallable() { + return stub.getUnitCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create a new unit. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   Unit unit = Unit.newBuilder().build();
+   *   String unitId = "unitId-840527425";
+   *   Unit response = saasDeploymentsClient.createUnit(parent, unit, unitId);
+   * }
+   * }
+ * + * @param parent Required. The parent of the unit. + * @param unit Required. The desired state for the unit. + * @param unitId Required. The ID value for the new unit. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Unit createUnit(LocationName parent, Unit unit, String unitId) { + CreateUnitRequest request = + CreateUnitRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setUnit(unit) + .setUnitId(unitId) + .build(); + return createUnit(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create a new unit. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   Unit unit = Unit.newBuilder().build();
+   *   String unitId = "unitId-840527425";
+   *   Unit response = saasDeploymentsClient.createUnit(parent, unit, unitId);
+   * }
+   * }
+ * + * @param parent Required. The parent of the unit. + * @param unit Required. The desired state for the unit. + * @param unitId Required. The ID value for the new unit. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Unit createUnit(String parent, Unit unit, String unitId) { + CreateUnitRequest request = + CreateUnitRequest.newBuilder().setParent(parent).setUnit(unit).setUnitId(unitId).build(); + return createUnit(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create a new unit. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   CreateUnitRequest request =
+   *       CreateUnitRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setUnitId("unitId-840527425")
+   *           .setUnit(Unit.newBuilder().build())
+   *           .setValidateOnly(true)
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   Unit response = saasDeploymentsClient.createUnit(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 Unit createUnit(CreateUnitRequest request) { + return createUnitCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create a new unit. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   CreateUnitRequest request =
+   *       CreateUnitRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setUnitId("unitId-840527425")
+   *           .setUnit(Unit.newBuilder().build())
+   *           .setValidateOnly(true)
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future = saasDeploymentsClient.createUnitCallable().futureCall(request);
+   *   // Do something.
+   *   Unit response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createUnitCallable() { + return stub.createUnitCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Update a single unit. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   Unit unit = Unit.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   Unit response = saasDeploymentsClient.updateUnit(unit, updateMask);
+   * }
+   * }
+ * + * @param unit Required. The desired state for the unit. + * @param updateMask Field mask is used to specify the fields to be overwritten in the Unit + * resource by the update. + *

The fields specified in the update_mask are relative to the resource, not the full + * request. A field will be overwritten if it is in the mask. + *

If the user does not provide a mask then all fields in the Unit will be overwritten. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Unit updateUnit(Unit unit, FieldMask updateMask) { + UpdateUnitRequest request = + UpdateUnitRequest.newBuilder().setUnit(unit).setUpdateMask(updateMask).build(); + return updateUnit(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Update a single unit. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   UpdateUnitRequest request =
+   *       UpdateUnitRequest.newBuilder()
+   *           .setUnit(Unit.newBuilder().build())
+   *           .setValidateOnly(true)
+   *           .setRequestId("requestId693933066")
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   Unit response = saasDeploymentsClient.updateUnit(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 Unit updateUnit(UpdateUnitRequest request) { + return updateUnitCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Update a single unit. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   UpdateUnitRequest request =
+   *       UpdateUnitRequest.newBuilder()
+   *           .setUnit(Unit.newBuilder().build())
+   *           .setValidateOnly(true)
+   *           .setRequestId("requestId693933066")
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = saasDeploymentsClient.updateUnitCallable().futureCall(request);
+   *   // Do something.
+   *   Unit response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updateUnitCallable() { + return stub.updateUnitCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Delete a single unit. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   UnitName name = UnitName.of("[PROJECT]", "[LOCATION]", "[UNIT]");
+   *   saasDeploymentsClient.deleteUnit(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the resource within a service. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteUnit(UnitName name) { + DeleteUnitRequest request = + DeleteUnitRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + deleteUnit(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Delete a single unit. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   String name = UnitName.of("[PROJECT]", "[LOCATION]", "[UNIT]").toString();
+   *   saasDeploymentsClient.deleteUnit(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the resource within a service. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteUnit(String name) { + DeleteUnitRequest request = DeleteUnitRequest.newBuilder().setName(name).build(); + deleteUnit(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Delete a single unit. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   DeleteUnitRequest request =
+   *       DeleteUnitRequest.newBuilder()
+   *           .setName(UnitName.of("[PROJECT]", "[LOCATION]", "[UNIT]").toString())
+   *           .setEtag("etag3123477")
+   *           .setValidateOnly(true)
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   saasDeploymentsClient.deleteUnit(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 void deleteUnit(DeleteUnitRequest request) { + deleteUnitCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Delete a single unit. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   DeleteUnitRequest request =
+   *       DeleteUnitRequest.newBuilder()
+   *           .setName(UnitName.of("[PROJECT]", "[LOCATION]", "[UNIT]").toString())
+   *           .setEtag("etag3123477")
+   *           .setValidateOnly(true)
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future = saasDeploymentsClient.deleteUnitCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteUnitCallable() { + return stub.deleteUnitCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieve a collection of unit operations. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   for (UnitOperation element : saasDeploymentsClient.listUnitOperations(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent of the unit operation. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListUnitOperationsPagedResponse listUnitOperations(LocationName parent) { + ListUnitOperationsRequest request = + ListUnitOperationsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listUnitOperations(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieve a collection of unit operations. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   for (UnitOperation element : saasDeploymentsClient.listUnitOperations(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent of the unit operation. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListUnitOperationsPagedResponse listUnitOperations(String parent) { + ListUnitOperationsRequest request = + ListUnitOperationsRequest.newBuilder().setParent(parent).build(); + return listUnitOperations(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieve a collection of unit operations. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   ListUnitOperationsRequest request =
+   *       ListUnitOperationsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   for (UnitOperation element : saasDeploymentsClient.listUnitOperations(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 ListUnitOperationsPagedResponse listUnitOperations( + ListUnitOperationsRequest request) { + return listUnitOperationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieve a collection of unit operations. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   ListUnitOperationsRequest request =
+   *       ListUnitOperationsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   ApiFuture future =
+   *       saasDeploymentsClient.listUnitOperationsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (UnitOperation element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listUnitOperationsPagedCallable() { + return stub.listUnitOperationsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieve a collection of unit operations. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   ListUnitOperationsRequest request =
+   *       ListUnitOperationsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   while (true) {
+   *     ListUnitOperationsResponse response =
+   *         saasDeploymentsClient.listUnitOperationsCallable().call(request);
+   *     for (UnitOperation element : response.getUnitOperationsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listUnitOperationsCallable() { + return stub.listUnitOperationsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieve a single unit operation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   UnitOperationName name = UnitOperationName.of("[PROJECT]", "[LOCATION]", "[UNITOPERATION]");
+   *   UnitOperation response = saasDeploymentsClient.getUnitOperation(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the resource within a service. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final UnitOperation getUnitOperation(UnitOperationName name) { + GetUnitOperationRequest request = + GetUnitOperationRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getUnitOperation(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieve a single unit operation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   String name = UnitOperationName.of("[PROJECT]", "[LOCATION]", "[UNITOPERATION]").toString();
+   *   UnitOperation response = saasDeploymentsClient.getUnitOperation(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the resource within a service. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final UnitOperation getUnitOperation(String name) { + GetUnitOperationRequest request = GetUnitOperationRequest.newBuilder().setName(name).build(); + return getUnitOperation(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieve a single unit operation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   GetUnitOperationRequest request =
+   *       GetUnitOperationRequest.newBuilder()
+   *           .setName(
+   *               UnitOperationName.of("[PROJECT]", "[LOCATION]", "[UNITOPERATION]").toString())
+   *           .build();
+   *   UnitOperation response = saasDeploymentsClient.getUnitOperation(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 UnitOperation getUnitOperation(GetUnitOperationRequest request) { + return getUnitOperationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieve a single unit operation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   GetUnitOperationRequest request =
+   *       GetUnitOperationRequest.newBuilder()
+   *           .setName(
+   *               UnitOperationName.of("[PROJECT]", "[LOCATION]", "[UNITOPERATION]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       saasDeploymentsClient.getUnitOperationCallable().futureCall(request);
+   *   // Do something.
+   *   UnitOperation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getUnitOperationCallable() { + return stub.getUnitOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create a new unit operation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   UnitOperation unitOperation = UnitOperation.newBuilder().build();
+   *   String unitOperationId = "unitOperationId-638217026";
+   *   UnitOperation response =
+   *       saasDeploymentsClient.createUnitOperation(parent, unitOperation, unitOperationId);
+   * }
+   * }
+ * + * @param parent Required. The parent of the unit operation. + * @param unitOperation Required. The desired state for the unit operation. + * @param unitOperationId Required. The ID value for the new unit operation. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final UnitOperation createUnitOperation( + LocationName parent, UnitOperation unitOperation, String unitOperationId) { + CreateUnitOperationRequest request = + CreateUnitOperationRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setUnitOperation(unitOperation) + .setUnitOperationId(unitOperationId) + .build(); + return createUnitOperation(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create a new unit operation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   UnitOperation unitOperation = UnitOperation.newBuilder().build();
+   *   String unitOperationId = "unitOperationId-638217026";
+   *   UnitOperation response =
+   *       saasDeploymentsClient.createUnitOperation(parent, unitOperation, unitOperationId);
+   * }
+   * }
+ * + * @param parent Required. The parent of the unit operation. + * @param unitOperation Required. The desired state for the unit operation. + * @param unitOperationId Required. The ID value for the new unit operation. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final UnitOperation createUnitOperation( + String parent, UnitOperation unitOperation, String unitOperationId) { + CreateUnitOperationRequest request = + CreateUnitOperationRequest.newBuilder() + .setParent(parent) + .setUnitOperation(unitOperation) + .setUnitOperationId(unitOperationId) + .build(); + return createUnitOperation(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create a new unit operation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   CreateUnitOperationRequest request =
+   *       CreateUnitOperationRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setUnitOperationId("unitOperationId-638217026")
+   *           .setUnitOperation(UnitOperation.newBuilder().build())
+   *           .setValidateOnly(true)
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   UnitOperation response = saasDeploymentsClient.createUnitOperation(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 UnitOperation createUnitOperation(CreateUnitOperationRequest request) { + return createUnitOperationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create a new unit operation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   CreateUnitOperationRequest request =
+   *       CreateUnitOperationRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setUnitOperationId("unitOperationId-638217026")
+   *           .setUnitOperation(UnitOperation.newBuilder().build())
+   *           .setValidateOnly(true)
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future =
+   *       saasDeploymentsClient.createUnitOperationCallable().futureCall(request);
+   *   // Do something.
+   *   UnitOperation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + createUnitOperationCallable() { + return stub.createUnitOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Update a single unit operation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   UnitOperation unitOperation = UnitOperation.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   UnitOperation response = saasDeploymentsClient.updateUnitOperation(unitOperation, updateMask);
+   * }
+   * }
+ * + * @param unitOperation Required. The desired state for the unit operation. + * @param updateMask Field mask is used to specify the fields to be overwritten in the + * UnitOperation resource by the update. + *

The fields specified in the update_mask are relative to the resource, not the full + * request. A field will be overwritten if it is in the mask. + *

If the user does not provide a mask then all fields in the UnitOperation will be + * overwritten. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final UnitOperation updateUnitOperation( + UnitOperation unitOperation, FieldMask updateMask) { + UpdateUnitOperationRequest request = + UpdateUnitOperationRequest.newBuilder() + .setUnitOperation(unitOperation) + .setUpdateMask(updateMask) + .build(); + return updateUnitOperation(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Update a single unit operation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   UpdateUnitOperationRequest request =
+   *       UpdateUnitOperationRequest.newBuilder()
+   *           .setUnitOperation(UnitOperation.newBuilder().build())
+   *           .setValidateOnly(true)
+   *           .setRequestId("requestId693933066")
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   UnitOperation response = saasDeploymentsClient.updateUnitOperation(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 UnitOperation updateUnitOperation(UpdateUnitOperationRequest request) { + return updateUnitOperationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Update a single unit operation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   UpdateUnitOperationRequest request =
+   *       UpdateUnitOperationRequest.newBuilder()
+   *           .setUnitOperation(UnitOperation.newBuilder().build())
+   *           .setValidateOnly(true)
+   *           .setRequestId("requestId693933066")
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       saasDeploymentsClient.updateUnitOperationCallable().futureCall(request);
+   *   // Do something.
+   *   UnitOperation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + updateUnitOperationCallable() { + return stub.updateUnitOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Delete a single unit operation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   UnitOperationName name = UnitOperationName.of("[PROJECT]", "[LOCATION]", "[UNITOPERATION]");
+   *   saasDeploymentsClient.deleteUnitOperation(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the resource within a service. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteUnitOperation(UnitOperationName name) { + DeleteUnitOperationRequest request = + DeleteUnitOperationRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + deleteUnitOperation(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Delete a single unit operation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   String name = UnitOperationName.of("[PROJECT]", "[LOCATION]", "[UNITOPERATION]").toString();
+   *   saasDeploymentsClient.deleteUnitOperation(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the resource within a service. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteUnitOperation(String name) { + DeleteUnitOperationRequest request = + DeleteUnitOperationRequest.newBuilder().setName(name).build(); + deleteUnitOperation(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Delete a single unit operation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   DeleteUnitOperationRequest request =
+   *       DeleteUnitOperationRequest.newBuilder()
+   *           .setName(
+   *               UnitOperationName.of("[PROJECT]", "[LOCATION]", "[UNITOPERATION]").toString())
+   *           .setEtag("etag3123477")
+   *           .setValidateOnly(true)
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   saasDeploymentsClient.deleteUnitOperation(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 void deleteUnitOperation(DeleteUnitOperationRequest request) { + deleteUnitOperationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Delete a single unit operation. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   DeleteUnitOperationRequest request =
+   *       DeleteUnitOperationRequest.newBuilder()
+   *           .setName(
+   *               UnitOperationName.of("[PROJECT]", "[LOCATION]", "[UNITOPERATION]").toString())
+   *           .setEtag("etag3123477")
+   *           .setValidateOnly(true)
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future =
+   *       saasDeploymentsClient.deleteUnitOperationCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteUnitOperationCallable() { + return stub.deleteUnitOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieve a collection of releases. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   for (Release element : saasDeploymentsClient.listReleases(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent of the release. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListReleasesPagedResponse listReleases(LocationName parent) { + ListReleasesRequest request = + ListReleasesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listReleases(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieve a collection of releases. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   for (Release element : saasDeploymentsClient.listReleases(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent of the release. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListReleasesPagedResponse listReleases(String parent) { + ListReleasesRequest request = ListReleasesRequest.newBuilder().setParent(parent).build(); + return listReleases(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieve a collection of releases. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   ListReleasesRequest request =
+   *       ListReleasesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   for (Release element : saasDeploymentsClient.listReleases(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 ListReleasesPagedResponse listReleases(ListReleasesRequest request) { + return listReleasesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieve a collection of releases. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   ListReleasesRequest request =
+   *       ListReleasesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   ApiFuture future =
+   *       saasDeploymentsClient.listReleasesPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Release element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listReleasesPagedCallable() { + return stub.listReleasesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieve a collection of releases. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   ListReleasesRequest request =
+   *       ListReleasesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   while (true) {
+   *     ListReleasesResponse response = saasDeploymentsClient.listReleasesCallable().call(request);
+   *     for (Release element : response.getReleasesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listReleasesCallable() { + return stub.listReleasesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieve a single release. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   ReleaseName name = ReleaseName.of("[PROJECT]", "[LOCATION]", "[RELEASE]");
+   *   Release response = saasDeploymentsClient.getRelease(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the resource within a service. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Release getRelease(ReleaseName name) { + GetReleaseRequest request = + GetReleaseRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getRelease(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieve a single release. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   String name = ReleaseName.of("[PROJECT]", "[LOCATION]", "[RELEASE]").toString();
+   *   Release response = saasDeploymentsClient.getRelease(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the resource within a service. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Release getRelease(String name) { + GetReleaseRequest request = GetReleaseRequest.newBuilder().setName(name).build(); + return getRelease(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieve a single release. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   GetReleaseRequest request =
+   *       GetReleaseRequest.newBuilder()
+   *           .setName(ReleaseName.of("[PROJECT]", "[LOCATION]", "[RELEASE]").toString())
+   *           .build();
+   *   Release response = saasDeploymentsClient.getRelease(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 Release getRelease(GetReleaseRequest request) { + return getReleaseCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieve a single release. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   GetReleaseRequest request =
+   *       GetReleaseRequest.newBuilder()
+   *           .setName(ReleaseName.of("[PROJECT]", "[LOCATION]", "[RELEASE]").toString())
+   *           .build();
+   *   ApiFuture future = saasDeploymentsClient.getReleaseCallable().futureCall(request);
+   *   // Do something.
+   *   Release response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getReleaseCallable() { + return stub.getReleaseCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create a new release. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   Release release = Release.newBuilder().build();
+   *   String releaseId = "releaseId89607042";
+   *   Release response = saasDeploymentsClient.createRelease(parent, release, releaseId);
+   * }
+   * }
+ * + * @param parent Required. The parent of the release. + * @param release Required. The desired state for the release. + * @param releaseId Required. The ID value for the new release. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Release createRelease(LocationName parent, Release release, String releaseId) { + CreateReleaseRequest request = + CreateReleaseRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setRelease(release) + .setReleaseId(releaseId) + .build(); + return createRelease(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create a new release. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   Release release = Release.newBuilder().build();
+   *   String releaseId = "releaseId89607042";
+   *   Release response = saasDeploymentsClient.createRelease(parent, release, releaseId);
+   * }
+   * }
+ * + * @param parent Required. The parent of the release. + * @param release Required. The desired state for the release. + * @param releaseId Required. The ID value for the new release. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Release createRelease(String parent, Release release, String releaseId) { + CreateReleaseRequest request = + CreateReleaseRequest.newBuilder() + .setParent(parent) + .setRelease(release) + .setReleaseId(releaseId) + .build(); + return createRelease(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create a new release. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   CreateReleaseRequest request =
+   *       CreateReleaseRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setReleaseId("releaseId89607042")
+   *           .setRelease(Release.newBuilder().build())
+   *           .setValidateOnly(true)
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   Release response = saasDeploymentsClient.createRelease(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 Release createRelease(CreateReleaseRequest request) { + return createReleaseCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create a new release. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   CreateReleaseRequest request =
+   *       CreateReleaseRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setReleaseId("releaseId89607042")
+   *           .setRelease(Release.newBuilder().build())
+   *           .setValidateOnly(true)
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future = saasDeploymentsClient.createReleaseCallable().futureCall(request);
+   *   // Do something.
+   *   Release response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createReleaseCallable() { + return stub.createReleaseCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Update a single release. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   Release release = Release.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   Release response = saasDeploymentsClient.updateRelease(release, updateMask);
+   * }
+   * }
+ * + * @param release Required. The desired state for the release. + * @param updateMask Field mask is used to specify the fields to be overwritten in the Release + * resource by the update. + *

The fields specified in the update_mask are relative to the resource, not the full + * request. A field will be overwritten if it is in the mask. + *

If the user does not provide a mask then all fields in the Release will be overwritten. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Release updateRelease(Release release, FieldMask updateMask) { + UpdateReleaseRequest request = + UpdateReleaseRequest.newBuilder().setRelease(release).setUpdateMask(updateMask).build(); + return updateRelease(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Update a single release. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   UpdateReleaseRequest request =
+   *       UpdateReleaseRequest.newBuilder()
+   *           .setRelease(Release.newBuilder().build())
+   *           .setValidateOnly(true)
+   *           .setRequestId("requestId693933066")
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   Release response = saasDeploymentsClient.updateRelease(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 Release updateRelease(UpdateReleaseRequest request) { + return updateReleaseCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Update a single release. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   UpdateReleaseRequest request =
+   *       UpdateReleaseRequest.newBuilder()
+   *           .setRelease(Release.newBuilder().build())
+   *           .setValidateOnly(true)
+   *           .setRequestId("requestId693933066")
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = saasDeploymentsClient.updateReleaseCallable().futureCall(request);
+   *   // Do something.
+   *   Release response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updateReleaseCallable() { + return stub.updateReleaseCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Delete a single release. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   ReleaseName name = ReleaseName.of("[PROJECT]", "[LOCATION]", "[RELEASE]");
+   *   saasDeploymentsClient.deleteRelease(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the resource within a service. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteRelease(ReleaseName name) { + DeleteReleaseRequest request = + DeleteReleaseRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + deleteRelease(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Delete a single release. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   String name = ReleaseName.of("[PROJECT]", "[LOCATION]", "[RELEASE]").toString();
+   *   saasDeploymentsClient.deleteRelease(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the resource within a service. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteRelease(String name) { + DeleteReleaseRequest request = DeleteReleaseRequest.newBuilder().setName(name).build(); + deleteRelease(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Delete a single release. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   DeleteReleaseRequest request =
+   *       DeleteReleaseRequest.newBuilder()
+   *           .setName(ReleaseName.of("[PROJECT]", "[LOCATION]", "[RELEASE]").toString())
+   *           .setEtag("etag3123477")
+   *           .setValidateOnly(true)
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   saasDeploymentsClient.deleteRelease(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 void deleteRelease(DeleteReleaseRequest request) { + deleteReleaseCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Delete a single release. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   DeleteReleaseRequest request =
+   *       DeleteReleaseRequest.newBuilder()
+   *           .setName(ReleaseName.of("[PROJECT]", "[LOCATION]", "[RELEASE]").toString())
+   *           .setEtag("etag3123477")
+   *           .setValidateOnly(true)
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future = saasDeploymentsClient.deleteReleaseCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteReleaseCallable() { + return stub.deleteReleaseCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Location element : saasDeploymentsClient.listLocations(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 ListLocationsPagedResponse listLocations(ListLocationsRequest request) { + return listLocationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       saasDeploymentsClient.listLocationsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Location element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listLocationsPagedCallable() { + return stub.listLocationsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListLocationsResponse response =
+   *         saasDeploymentsClient.listLocationsCallable().call(request);
+   *     for (Location element : response.getLocationsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listLocationsCallable() { + return stub.listLocationsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   Location response = saasDeploymentsClient.getLocation(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 Location getLocation(GetLocationRequest request) { + return getLocationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   ApiFuture future = saasDeploymentsClient.getLocationCallable().futureCall(request);
+   *   // Do something.
+   *   Location response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getLocationCallable() { + return stub.getLocationCallable(); + } + + @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 ListSaasPagedResponse + extends AbstractPagedListResponse< + ListSaasRequest, ListSaasResponse, Saas, ListSaasPage, ListSaasFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListSaasPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, input -> new ListSaasPagedResponse(input), MoreExecutors.directExecutor()); + } + + private ListSaasPagedResponse(ListSaasPage page) { + super(page, ListSaasFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListSaasPage + extends AbstractPage { + + private ListSaasPage( + PageContext context, ListSaasResponse response) { + super(context, response); + } + + private static ListSaasPage createEmptyPage() { + return new ListSaasPage(null, null); + } + + @Override + protected ListSaasPage createPage( + PageContext context, ListSaasResponse response) { + return new ListSaasPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListSaasFixedSizeCollection + extends AbstractFixedSizeCollection< + ListSaasRequest, ListSaasResponse, Saas, ListSaasPage, ListSaasFixedSizeCollection> { + + private ListSaasFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListSaasFixedSizeCollection createEmptyCollection() { + return new ListSaasFixedSizeCollection(null, 0); + } + + @Override + protected ListSaasFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListSaasFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListTenantsPagedResponse + extends AbstractPagedListResponse< + ListTenantsRequest, + ListTenantsResponse, + Tenant, + ListTenantsPage, + ListTenantsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListTenantsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, input -> new ListTenantsPagedResponse(input), MoreExecutors.directExecutor()); + } + + private ListTenantsPagedResponse(ListTenantsPage page) { + super(page, ListTenantsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListTenantsPage + extends AbstractPage { + + private ListTenantsPage( + PageContext context, + ListTenantsResponse response) { + super(context, response); + } + + private static ListTenantsPage createEmptyPage() { + return new ListTenantsPage(null, null); + } + + @Override + protected ListTenantsPage createPage( + PageContext context, + ListTenantsResponse response) { + return new ListTenantsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListTenantsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListTenantsRequest, + ListTenantsResponse, + Tenant, + ListTenantsPage, + ListTenantsFixedSizeCollection> { + + private ListTenantsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListTenantsFixedSizeCollection createEmptyCollection() { + return new ListTenantsFixedSizeCollection(null, 0); + } + + @Override + protected ListTenantsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListTenantsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListUnitKindsPagedResponse + extends AbstractPagedListResponse< + ListUnitKindsRequest, + ListUnitKindsResponse, + UnitKind, + ListUnitKindsPage, + ListUnitKindsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListUnitKindsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListUnitKindsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListUnitKindsPagedResponse(ListUnitKindsPage page) { + super(page, ListUnitKindsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListUnitKindsPage + extends AbstractPage< + ListUnitKindsRequest, ListUnitKindsResponse, UnitKind, ListUnitKindsPage> { + + private ListUnitKindsPage( + PageContext context, + ListUnitKindsResponse response) { + super(context, response); + } + + private static ListUnitKindsPage createEmptyPage() { + return new ListUnitKindsPage(null, null); + } + + @Override + protected ListUnitKindsPage createPage( + PageContext context, + ListUnitKindsResponse response) { + return new ListUnitKindsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListUnitKindsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListUnitKindsRequest, + ListUnitKindsResponse, + UnitKind, + ListUnitKindsPage, + ListUnitKindsFixedSizeCollection> { + + private ListUnitKindsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListUnitKindsFixedSizeCollection createEmptyCollection() { + return new ListUnitKindsFixedSizeCollection(null, 0); + } + + @Override + protected ListUnitKindsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListUnitKindsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListUnitsPagedResponse + extends AbstractPagedListResponse< + ListUnitsRequest, ListUnitsResponse, Unit, ListUnitsPage, ListUnitsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListUnitsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, input -> new ListUnitsPagedResponse(input), MoreExecutors.directExecutor()); + } + + private ListUnitsPagedResponse(ListUnitsPage page) { + super(page, ListUnitsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListUnitsPage + extends AbstractPage { + + private ListUnitsPage( + PageContext context, + ListUnitsResponse response) { + super(context, response); + } + + private static ListUnitsPage createEmptyPage() { + return new ListUnitsPage(null, null); + } + + @Override + protected ListUnitsPage createPage( + PageContext context, + ListUnitsResponse response) { + return new ListUnitsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListUnitsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListUnitsRequest, ListUnitsResponse, Unit, ListUnitsPage, ListUnitsFixedSizeCollection> { + + private ListUnitsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListUnitsFixedSizeCollection createEmptyCollection() { + return new ListUnitsFixedSizeCollection(null, 0); + } + + @Override + protected ListUnitsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListUnitsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListUnitOperationsPagedResponse + extends AbstractPagedListResponse< + ListUnitOperationsRequest, + ListUnitOperationsResponse, + UnitOperation, + ListUnitOperationsPage, + ListUnitOperationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListUnitOperationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListUnitOperationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListUnitOperationsPagedResponse(ListUnitOperationsPage page) { + super(page, ListUnitOperationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListUnitOperationsPage + extends AbstractPage< + ListUnitOperationsRequest, + ListUnitOperationsResponse, + UnitOperation, + ListUnitOperationsPage> { + + private ListUnitOperationsPage( + PageContext context, + ListUnitOperationsResponse response) { + super(context, response); + } + + private static ListUnitOperationsPage createEmptyPage() { + return new ListUnitOperationsPage(null, null); + } + + @Override + protected ListUnitOperationsPage createPage( + PageContext context, + ListUnitOperationsResponse response) { + return new ListUnitOperationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListUnitOperationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListUnitOperationsRequest, + ListUnitOperationsResponse, + UnitOperation, + ListUnitOperationsPage, + ListUnitOperationsFixedSizeCollection> { + + private ListUnitOperationsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListUnitOperationsFixedSizeCollection createEmptyCollection() { + return new ListUnitOperationsFixedSizeCollection(null, 0); + } + + @Override + protected ListUnitOperationsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListUnitOperationsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListReleasesPagedResponse + extends AbstractPagedListResponse< + ListReleasesRequest, + ListReleasesResponse, + Release, + ListReleasesPage, + ListReleasesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListReleasesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListReleasesPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListReleasesPagedResponse(ListReleasesPage page) { + super(page, ListReleasesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListReleasesPage + extends AbstractPage { + + private ListReleasesPage( + PageContext context, + ListReleasesResponse response) { + super(context, response); + } + + private static ListReleasesPage createEmptyPage() { + return new ListReleasesPage(null, null); + } + + @Override + protected ListReleasesPage createPage( + PageContext context, + ListReleasesResponse response) { + return new ListReleasesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListReleasesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListReleasesRequest, + ListReleasesResponse, + Release, + ListReleasesPage, + ListReleasesFixedSizeCollection> { + + private ListReleasesFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListReleasesFixedSizeCollection createEmptyCollection() { + return new ListReleasesFixedSizeCollection(null, 0); + } + + @Override + protected ListReleasesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListReleasesFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListLocationsPagedResponse + extends AbstractPagedListResponse< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListLocationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListLocationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListLocationsPagedResponse(ListLocationsPage page) { + super(page, ListLocationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListLocationsPage + extends AbstractPage< + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { + + private ListLocationsPage( + PageContext context, + ListLocationsResponse response) { + super(context, response); + } + + private static ListLocationsPage createEmptyPage() { + return new ListLocationsPage(null, null); + } + + @Override + protected ListLocationsPage createPage( + PageContext context, + ListLocationsResponse response) { + return new ListLocationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListLocationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListLocationsFixedSizeCollection createEmptyCollection() { + return new ListLocationsFixedSizeCollection(null, 0); + } + + @Override + protected ListLocationsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListLocationsFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/SaasDeploymentsSettings.java b/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/SaasDeploymentsSettings.java new file mode 100644 index 000000000000..dcd77f8d15ab --- /dev/null +++ b/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/SaasDeploymentsSettings.java @@ -0,0 +1,567 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1; + +import static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient.ListLocationsPagedResponse; +import static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient.ListReleasesPagedResponse; +import static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient.ListSaasPagedResponse; +import static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient.ListTenantsPagedResponse; +import static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient.ListUnitKindsPagedResponse; +import static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient.ListUnitOperationsPagedResponse; +import static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient.ListUnitsPagedResponse; + +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.httpjson.InstantiatingHttpJsonChannelProvider; +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.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.stub.SaasDeploymentsStubSettings; +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 SaasDeploymentsClient}. + * + *

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

    + *
  • The default service address (saasservicemgmt.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 + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getSaas: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * SaasDeploymentsSettings.Builder saasDeploymentsSettingsBuilder =
+ *     SaasDeploymentsSettings.newBuilder();
+ * saasDeploymentsSettingsBuilder
+ *     .getSaasSettings()
+ *     .setRetrySettings(
+ *         saasDeploymentsSettingsBuilder
+ *             .getSaasSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ *             .setMaxAttempts(5)
+ *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ *             .setRetryDelayMultiplier(1.3)
+ *             .setRpcTimeoutMultiplier(1.5)
+ *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ *             .build());
+ * SaasDeploymentsSettings saasDeploymentsSettings = saasDeploymentsSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class SaasDeploymentsSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to listSaas. */ + public PagedCallSettings + listSaasSettings() { + return ((SaasDeploymentsStubSettings) getStubSettings()).listSaasSettings(); + } + + /** Returns the object with the settings used for calls to getSaas. */ + public UnaryCallSettings getSaasSettings() { + return ((SaasDeploymentsStubSettings) getStubSettings()).getSaasSettings(); + } + + /** Returns the object with the settings used for calls to createSaas. */ + public UnaryCallSettings createSaasSettings() { + return ((SaasDeploymentsStubSettings) getStubSettings()).createSaasSettings(); + } + + /** Returns the object with the settings used for calls to updateSaas. */ + public UnaryCallSettings updateSaasSettings() { + return ((SaasDeploymentsStubSettings) getStubSettings()).updateSaasSettings(); + } + + /** Returns the object with the settings used for calls to deleteSaas. */ + public UnaryCallSettings deleteSaasSettings() { + return ((SaasDeploymentsStubSettings) getStubSettings()).deleteSaasSettings(); + } + + /** Returns the object with the settings used for calls to listTenants. */ + public PagedCallSettings + listTenantsSettings() { + return ((SaasDeploymentsStubSettings) getStubSettings()).listTenantsSettings(); + } + + /** Returns the object with the settings used for calls to getTenant. */ + public UnaryCallSettings getTenantSettings() { + return ((SaasDeploymentsStubSettings) getStubSettings()).getTenantSettings(); + } + + /** Returns the object with the settings used for calls to createTenant. */ + public UnaryCallSettings createTenantSettings() { + return ((SaasDeploymentsStubSettings) getStubSettings()).createTenantSettings(); + } + + /** Returns the object with the settings used for calls to updateTenant. */ + public UnaryCallSettings updateTenantSettings() { + return ((SaasDeploymentsStubSettings) getStubSettings()).updateTenantSettings(); + } + + /** Returns the object with the settings used for calls to deleteTenant. */ + public UnaryCallSettings deleteTenantSettings() { + return ((SaasDeploymentsStubSettings) getStubSettings()).deleteTenantSettings(); + } + + /** Returns the object with the settings used for calls to listUnitKinds. */ + public PagedCallSettings + listUnitKindsSettings() { + return ((SaasDeploymentsStubSettings) getStubSettings()).listUnitKindsSettings(); + } + + /** Returns the object with the settings used for calls to getUnitKind. */ + public UnaryCallSettings getUnitKindSettings() { + return ((SaasDeploymentsStubSettings) getStubSettings()).getUnitKindSettings(); + } + + /** Returns the object with the settings used for calls to createUnitKind. */ + public UnaryCallSettings createUnitKindSettings() { + return ((SaasDeploymentsStubSettings) getStubSettings()).createUnitKindSettings(); + } + + /** Returns the object with the settings used for calls to updateUnitKind. */ + public UnaryCallSettings updateUnitKindSettings() { + return ((SaasDeploymentsStubSettings) getStubSettings()).updateUnitKindSettings(); + } + + /** Returns the object with the settings used for calls to deleteUnitKind. */ + public UnaryCallSettings deleteUnitKindSettings() { + return ((SaasDeploymentsStubSettings) getStubSettings()).deleteUnitKindSettings(); + } + + /** Returns the object with the settings used for calls to listUnits. */ + public PagedCallSettings + listUnitsSettings() { + return ((SaasDeploymentsStubSettings) getStubSettings()).listUnitsSettings(); + } + + /** Returns the object with the settings used for calls to getUnit. */ + public UnaryCallSettings getUnitSettings() { + return ((SaasDeploymentsStubSettings) getStubSettings()).getUnitSettings(); + } + + /** Returns the object with the settings used for calls to createUnit. */ + public UnaryCallSettings createUnitSettings() { + return ((SaasDeploymentsStubSettings) getStubSettings()).createUnitSettings(); + } + + /** Returns the object with the settings used for calls to updateUnit. */ + public UnaryCallSettings updateUnitSettings() { + return ((SaasDeploymentsStubSettings) getStubSettings()).updateUnitSettings(); + } + + /** Returns the object with the settings used for calls to deleteUnit. */ + public UnaryCallSettings deleteUnitSettings() { + return ((SaasDeploymentsStubSettings) getStubSettings()).deleteUnitSettings(); + } + + /** Returns the object with the settings used for calls to listUnitOperations. */ + public PagedCallSettings< + ListUnitOperationsRequest, ListUnitOperationsResponse, ListUnitOperationsPagedResponse> + listUnitOperationsSettings() { + return ((SaasDeploymentsStubSettings) getStubSettings()).listUnitOperationsSettings(); + } + + /** Returns the object with the settings used for calls to getUnit. */ + public UnaryCallSettings getUnitOperationSettings() { + return ((SaasDeploymentsStubSettings) getStubSettings()).getUnitOperationSettings(); + } + + /** Returns the object with the settings used for calls to createUnit. */ + public UnaryCallSettings + createUnitOperationSettings() { + return ((SaasDeploymentsStubSettings) getStubSettings()).createUnitOperationSettings(); + } + + /** Returns the object with the settings used for calls to updateUnit. */ + public UnaryCallSettings + updateUnitOperationSettings() { + return ((SaasDeploymentsStubSettings) getStubSettings()).updateUnitOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteUnit. */ + public UnaryCallSettings deleteUnitOperationSettings() { + return ((SaasDeploymentsStubSettings) getStubSettings()).deleteUnitOperationSettings(); + } + + /** Returns the object with the settings used for calls to listReleases. */ + public PagedCallSettings + listReleasesSettings() { + return ((SaasDeploymentsStubSettings) getStubSettings()).listReleasesSettings(); + } + + /** Returns the object with the settings used for calls to getRelease. */ + public UnaryCallSettings getReleaseSettings() { + return ((SaasDeploymentsStubSettings) getStubSettings()).getReleaseSettings(); + } + + /** Returns the object with the settings used for calls to createRelease. */ + public UnaryCallSettings createReleaseSettings() { + return ((SaasDeploymentsStubSettings) getStubSettings()).createReleaseSettings(); + } + + /** Returns the object with the settings used for calls to updateRelease. */ + public UnaryCallSettings updateReleaseSettings() { + return ((SaasDeploymentsStubSettings) getStubSettings()).updateReleaseSettings(); + } + + /** Returns the object with the settings used for calls to deleteRelease. */ + public UnaryCallSettings deleteReleaseSettings() { + return ((SaasDeploymentsStubSettings) getStubSettings()).deleteReleaseSettings(); + } + + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return ((SaasDeploymentsStubSettings) getStubSettings()).listLocationsSettings(); + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return ((SaasDeploymentsStubSettings) getStubSettings()).getLocationSettings(); + } + + public static final SaasDeploymentsSettings create(SaasDeploymentsStubSettings stub) + throws IOException { + return new SaasDeploymentsSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return SaasDeploymentsStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return SaasDeploymentsStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return SaasDeploymentsStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return SaasDeploymentsStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return SaasDeploymentsStubSettings.defaultGrpcTransportProviderBuilder(); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return SaasDeploymentsStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return SaasDeploymentsStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return SaasDeploymentsStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** 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 SaasDeploymentsSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for SaasDeploymentsSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(SaasDeploymentsStubSettings.newBuilder(clientContext)); + } + + protected Builder(SaasDeploymentsSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(SaasDeploymentsStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(SaasDeploymentsStubSettings.newBuilder()); + } + + private static Builder createHttpJsonDefault() { + return new Builder(SaasDeploymentsStubSettings.newHttpJsonBuilder()); + } + + public SaasDeploymentsStubSettings.Builder getStubSettingsBuilder() { + return ((SaasDeploymentsStubSettings.Builder) getStubSettings()); + } + + /** + * 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) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to listSaas. */ + public PagedCallSettings.Builder + listSaasSettings() { + return getStubSettingsBuilder().listSaasSettings(); + } + + /** Returns the builder for the settings used for calls to getSaas. */ + public UnaryCallSettings.Builder getSaasSettings() { + return getStubSettingsBuilder().getSaasSettings(); + } + + /** Returns the builder for the settings used for calls to createSaas. */ + public UnaryCallSettings.Builder createSaasSettings() { + return getStubSettingsBuilder().createSaasSettings(); + } + + /** Returns the builder for the settings used for calls to updateSaas. */ + public UnaryCallSettings.Builder updateSaasSettings() { + return getStubSettingsBuilder().updateSaasSettings(); + } + + /** Returns the builder for the settings used for calls to deleteSaas. */ + public UnaryCallSettings.Builder deleteSaasSettings() { + return getStubSettingsBuilder().deleteSaasSettings(); + } + + /** Returns the builder for the settings used for calls to listTenants. */ + public PagedCallSettings.Builder< + ListTenantsRequest, ListTenantsResponse, ListTenantsPagedResponse> + listTenantsSettings() { + return getStubSettingsBuilder().listTenantsSettings(); + } + + /** Returns the builder for the settings used for calls to getTenant. */ + public UnaryCallSettings.Builder getTenantSettings() { + return getStubSettingsBuilder().getTenantSettings(); + } + + /** Returns the builder for the settings used for calls to createTenant. */ + public UnaryCallSettings.Builder createTenantSettings() { + return getStubSettingsBuilder().createTenantSettings(); + } + + /** Returns the builder for the settings used for calls to updateTenant. */ + public UnaryCallSettings.Builder updateTenantSettings() { + return getStubSettingsBuilder().updateTenantSettings(); + } + + /** Returns the builder for the settings used for calls to deleteTenant. */ + public UnaryCallSettings.Builder deleteTenantSettings() { + return getStubSettingsBuilder().deleteTenantSettings(); + } + + /** Returns the builder for the settings used for calls to listUnitKinds. */ + public PagedCallSettings.Builder< + ListUnitKindsRequest, ListUnitKindsResponse, ListUnitKindsPagedResponse> + listUnitKindsSettings() { + return getStubSettingsBuilder().listUnitKindsSettings(); + } + + /** Returns the builder for the settings used for calls to getUnitKind. */ + public UnaryCallSettings.Builder getUnitKindSettings() { + return getStubSettingsBuilder().getUnitKindSettings(); + } + + /** Returns the builder for the settings used for calls to createUnitKind. */ + public UnaryCallSettings.Builder createUnitKindSettings() { + return getStubSettingsBuilder().createUnitKindSettings(); + } + + /** Returns the builder for the settings used for calls to updateUnitKind. */ + public UnaryCallSettings.Builder updateUnitKindSettings() { + return getStubSettingsBuilder().updateUnitKindSettings(); + } + + /** Returns the builder for the settings used for calls to deleteUnitKind. */ + public UnaryCallSettings.Builder deleteUnitKindSettings() { + return getStubSettingsBuilder().deleteUnitKindSettings(); + } + + /** Returns the builder for the settings used for calls to listUnits. */ + public PagedCallSettings.Builder + listUnitsSettings() { + return getStubSettingsBuilder().listUnitsSettings(); + } + + /** Returns the builder for the settings used for calls to getUnit. */ + public UnaryCallSettings.Builder getUnitSettings() { + return getStubSettingsBuilder().getUnitSettings(); + } + + /** Returns the builder for the settings used for calls to createUnit. */ + public UnaryCallSettings.Builder createUnitSettings() { + return getStubSettingsBuilder().createUnitSettings(); + } + + /** Returns the builder for the settings used for calls to updateUnit. */ + public UnaryCallSettings.Builder updateUnitSettings() { + return getStubSettingsBuilder().updateUnitSettings(); + } + + /** Returns the builder for the settings used for calls to deleteUnit. */ + public UnaryCallSettings.Builder deleteUnitSettings() { + return getStubSettingsBuilder().deleteUnitSettings(); + } + + /** Returns the builder for the settings used for calls to listUnitOperations. */ + public PagedCallSettings.Builder< + ListUnitOperationsRequest, ListUnitOperationsResponse, ListUnitOperationsPagedResponse> + listUnitOperationsSettings() { + return getStubSettingsBuilder().listUnitOperationsSettings(); + } + + /** Returns the builder for the settings used for calls to getUnit. */ + public UnaryCallSettings.Builder + getUnitOperationSettings() { + return getStubSettingsBuilder().getUnitOperationSettings(); + } + + /** Returns the builder for the settings used for calls to createUnit. */ + public UnaryCallSettings.Builder + createUnitOperationSettings() { + return getStubSettingsBuilder().createUnitOperationSettings(); + } + + /** Returns the builder for the settings used for calls to updateUnit. */ + public UnaryCallSettings.Builder + updateUnitOperationSettings() { + return getStubSettingsBuilder().updateUnitOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteUnit. */ + public UnaryCallSettings.Builder + deleteUnitOperationSettings() { + return getStubSettingsBuilder().deleteUnitOperationSettings(); + } + + /** Returns the builder for the settings used for calls to listReleases. */ + public PagedCallSettings.Builder< + ListReleasesRequest, ListReleasesResponse, ListReleasesPagedResponse> + listReleasesSettings() { + return getStubSettingsBuilder().listReleasesSettings(); + } + + /** Returns the builder for the settings used for calls to getRelease. */ + public UnaryCallSettings.Builder getReleaseSettings() { + return getStubSettingsBuilder().getReleaseSettings(); + } + + /** Returns the builder for the settings used for calls to createRelease. */ + public UnaryCallSettings.Builder createReleaseSettings() { + return getStubSettingsBuilder().createReleaseSettings(); + } + + /** Returns the builder for the settings used for calls to updateRelease. */ + public UnaryCallSettings.Builder updateReleaseSettings() { + return getStubSettingsBuilder().updateReleaseSettings(); + } + + /** Returns the builder for the settings used for calls to deleteRelease. */ + public UnaryCallSettings.Builder deleteReleaseSettings() { + return getStubSettingsBuilder().deleteReleaseSettings(); + } + + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return getStubSettingsBuilder().listLocationsSettings(); + } + + /** Returns the builder for the settings used for calls to getLocation. */ + public UnaryCallSettings.Builder getLocationSettings() { + return getStubSettingsBuilder().getLocationSettings(); + } + + @Override + public SaasDeploymentsSettings build() throws IOException { + return new SaasDeploymentsSettings(this); + } + } +} diff --git a/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/SaasRolloutsClient.java b/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/SaasRolloutsClient.java new file mode 100644 index 000000000000..3dc8dd18dd18 --- /dev/null +++ b/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/SaasRolloutsClient.java @@ -0,0 +1,2060 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1; + +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.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.stub.SaasRolloutsStub; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.stub.SaasRolloutsStubSettings; +import com.google.common.util.concurrent.MoreExecutors; +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 CLASS. +/** + * Service Description: Manages the rollout of SaaS services. + * + *

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

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create()) {
+ *   RolloutName name = RolloutName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_ID]");
+ *   Rollout response = saasRolloutsClient.getRollout(name);
+ * }
+ * }
+ * + *

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

ListRollouts

Retrieve a collection of rollouts.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listRollouts(ListRolloutsRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • listRollouts(LocationName parent) + *

  • listRollouts(String parent) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • listRolloutsPagedCallable() + *

  • listRolloutsCallable() + *

+ *

GetRollout

Retrieve a single rollout.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getRollout(GetRolloutRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • getRollout(RolloutName name) + *

  • getRollout(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • getRolloutCallable() + *

+ *

CreateRollout

Create a new rollout.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • createRollout(CreateRolloutRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • createRollout(LocationName parent, Rollout rollout, String rolloutId) + *

  • createRollout(String parent, Rollout rollout, String rolloutId) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • createRolloutCallable() + *

+ *

UpdateRollout

Update a single rollout.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • updateRollout(UpdateRolloutRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • updateRollout(Rollout rollout, FieldMask updateMask) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • updateRolloutCallable() + *

+ *

DeleteRollout

Delete a single rollout.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • deleteRollout(DeleteRolloutRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • deleteRollout(RolloutName name) + *

  • deleteRollout(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • deleteRolloutCallable() + *

+ *

ListRolloutKinds

Retrieve a collection of rollout kinds.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listRolloutKinds(ListRolloutKindsRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • listRolloutKinds(LocationName parent) + *

  • listRolloutKinds(String parent) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • listRolloutKindsPagedCallable() + *

  • listRolloutKindsCallable() + *

+ *

GetRolloutKind

Retrieve a single rollout kind.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getRolloutKind(GetRolloutKindRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • getRolloutKind(RolloutKindName name) + *

  • getRolloutKind(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • getRolloutKindCallable() + *

+ *

CreateRolloutKind

Create a new rollout kind.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • createRolloutKind(CreateRolloutKindRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • createRolloutKind(LocationName parent, RolloutKind rolloutKind, String rolloutKindId) + *

  • createRolloutKind(String parent, RolloutKind rolloutKind, String rolloutKindId) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • createRolloutKindCallable() + *

+ *

UpdateRolloutKind

Update a single rollout kind.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • updateRolloutKind(UpdateRolloutKindRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • updateRolloutKind(RolloutKind rolloutKind, FieldMask updateMask) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • updateRolloutKindCallable() + *

+ *

DeleteRolloutKind

Delete a single rollout kind.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • deleteRolloutKind(DeleteRolloutKindRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • deleteRolloutKind(RolloutKindName name) + *

  • deleteRolloutKind(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • deleteRolloutKindCallable() + *

+ *

ListLocations

Lists information about the supported locations for this service.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listLocations(ListLocationsRequest request) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • listLocationsPagedCallable() + *

  • listLocationsCallable() + *

+ *

GetLocation

Gets information about a location.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getLocation(GetLocationRequest request) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • getLocationCallable() + *

+ *
+ * + *

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 SaasRolloutsSettings to + * create(). For example: + * + *

To customize credentials: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * SaasRolloutsSettings saasRolloutsSettings =
+ *     SaasRolloutsSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create(saasRolloutsSettings);
+ * }
+ * + *

To customize the endpoint: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * SaasRolloutsSettings saasRolloutsSettings =
+ *     SaasRolloutsSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create(saasRolloutsSettings);
+ * }
+ * + *

To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * SaasRolloutsSettings saasRolloutsSettings = SaasRolloutsSettings.newHttpJsonBuilder().build();
+ * SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create(saasRolloutsSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class SaasRolloutsClient implements BackgroundResource { + private final SaasRolloutsSettings settings; + private final SaasRolloutsStub stub; + + /** Constructs an instance of SaasRolloutsClient with default settings. */ + public static final SaasRolloutsClient create() throws IOException { + return create(SaasRolloutsSettings.newBuilder().build()); + } + + /** + * Constructs an instance of SaasRolloutsClient, 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 SaasRolloutsClient create(SaasRolloutsSettings settings) throws IOException { + return new SaasRolloutsClient(settings); + } + + /** + * Constructs an instance of SaasRolloutsClient, using the given stub for making calls. This is + * for advanced usage - prefer using create(SaasRolloutsSettings). + */ + public static final SaasRolloutsClient create(SaasRolloutsStub stub) { + return new SaasRolloutsClient(stub); + } + + /** + * Constructs an instance of SaasRolloutsClient, 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 SaasRolloutsClient(SaasRolloutsSettings settings) throws IOException { + this.settings = settings; + this.stub = ((SaasRolloutsStubSettings) settings.getStubSettings()).createStub(); + } + + protected SaasRolloutsClient(SaasRolloutsStub stub) { + this.settings = null; + this.stub = stub; + } + + public final SaasRolloutsSettings getSettings() { + return settings; + } + + public SaasRolloutsStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieve a collection of rollouts. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   for (Rollout element : saasRolloutsClient.listRollouts(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent of the rollout. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListRolloutsPagedResponse listRollouts(LocationName parent) { + ListRolloutsRequest request = + ListRolloutsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listRollouts(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieve a collection of rollouts. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   for (Rollout element : saasRolloutsClient.listRollouts(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent of the rollout. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListRolloutsPagedResponse listRollouts(String parent) { + ListRolloutsRequest request = ListRolloutsRequest.newBuilder().setParent(parent).build(); + return listRollouts(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieve a collection of rollouts. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create()) {
+   *   ListRolloutsRequest request =
+   *       ListRolloutsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   for (Rollout element : saasRolloutsClient.listRollouts(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 ListRolloutsPagedResponse listRollouts(ListRolloutsRequest request) { + return listRolloutsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieve a collection of rollouts. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create()) {
+   *   ListRolloutsRequest request =
+   *       ListRolloutsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   ApiFuture future =
+   *       saasRolloutsClient.listRolloutsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Rollout element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listRolloutsPagedCallable() { + return stub.listRolloutsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieve a collection of rollouts. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create()) {
+   *   ListRolloutsRequest request =
+   *       ListRolloutsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   while (true) {
+   *     ListRolloutsResponse response = saasRolloutsClient.listRolloutsCallable().call(request);
+   *     for (Rollout element : response.getRolloutsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listRolloutsCallable() { + return stub.listRolloutsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieve a single rollout. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create()) {
+   *   RolloutName name = RolloutName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_ID]");
+   *   Rollout response = saasRolloutsClient.getRollout(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the resource within a service. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Rollout getRollout(RolloutName name) { + GetRolloutRequest request = + GetRolloutRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getRollout(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieve a single rollout. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create()) {
+   *   String name = RolloutName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_ID]").toString();
+   *   Rollout response = saasRolloutsClient.getRollout(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the resource within a service. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Rollout getRollout(String name) { + GetRolloutRequest request = GetRolloutRequest.newBuilder().setName(name).build(); + return getRollout(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieve a single rollout. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create()) {
+   *   GetRolloutRequest request =
+   *       GetRolloutRequest.newBuilder()
+   *           .setName(RolloutName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_ID]").toString())
+   *           .build();
+   *   Rollout response = saasRolloutsClient.getRollout(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 Rollout getRollout(GetRolloutRequest request) { + return getRolloutCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieve a single rollout. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create()) {
+   *   GetRolloutRequest request =
+   *       GetRolloutRequest.newBuilder()
+   *           .setName(RolloutName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_ID]").toString())
+   *           .build();
+   *   ApiFuture future = saasRolloutsClient.getRolloutCallable().futureCall(request);
+   *   // Do something.
+   *   Rollout response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getRolloutCallable() { + return stub.getRolloutCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create a new rollout. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   Rollout rollout = Rollout.newBuilder().build();
+   *   String rolloutId = "rolloutId551248556";
+   *   Rollout response = saasRolloutsClient.createRollout(parent, rollout, rolloutId);
+   * }
+   * }
+ * + * @param parent Required. The parent of the rollout. + * @param rollout Required. The desired state for the rollout. + * @param rolloutId Required. The ID value for the new rollout. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Rollout createRollout(LocationName parent, Rollout rollout, String rolloutId) { + CreateRolloutRequest request = + CreateRolloutRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setRollout(rollout) + .setRolloutId(rolloutId) + .build(); + return createRollout(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create a new rollout. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   Rollout rollout = Rollout.newBuilder().build();
+   *   String rolloutId = "rolloutId551248556";
+   *   Rollout response = saasRolloutsClient.createRollout(parent, rollout, rolloutId);
+   * }
+   * }
+ * + * @param parent Required. The parent of the rollout. + * @param rollout Required. The desired state for the rollout. + * @param rolloutId Required. The ID value for the new rollout. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Rollout createRollout(String parent, Rollout rollout, String rolloutId) { + CreateRolloutRequest request = + CreateRolloutRequest.newBuilder() + .setParent(parent) + .setRollout(rollout) + .setRolloutId(rolloutId) + .build(); + return createRollout(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create a new rollout. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create()) {
+   *   CreateRolloutRequest request =
+   *       CreateRolloutRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setRolloutId("rolloutId551248556")
+   *           .setRollout(Rollout.newBuilder().build())
+   *           .setValidateOnly(true)
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   Rollout response = saasRolloutsClient.createRollout(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 Rollout createRollout(CreateRolloutRequest request) { + return createRolloutCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create a new rollout. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create()) {
+   *   CreateRolloutRequest request =
+   *       CreateRolloutRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setRolloutId("rolloutId551248556")
+   *           .setRollout(Rollout.newBuilder().build())
+   *           .setValidateOnly(true)
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future = saasRolloutsClient.createRolloutCallable().futureCall(request);
+   *   // Do something.
+   *   Rollout response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createRolloutCallable() { + return stub.createRolloutCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Update a single rollout. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create()) {
+   *   Rollout rollout = Rollout.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   Rollout response = saasRolloutsClient.updateRollout(rollout, updateMask);
+   * }
+   * }
+ * + * @param rollout Required. The desired state for the rollout. + * @param updateMask Field mask is used to specify the fields to be overwritten in the Rollout + * resource by the update. + *

The fields specified in the update_mask are relative to the resource, not the full + * request. A field will be overwritten if it is in the mask. + *

If the user does not provide a mask then all fields in the Rollout will be overwritten. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Rollout updateRollout(Rollout rollout, FieldMask updateMask) { + UpdateRolloutRequest request = + UpdateRolloutRequest.newBuilder().setRollout(rollout).setUpdateMask(updateMask).build(); + return updateRollout(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Update a single rollout. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create()) {
+   *   UpdateRolloutRequest request =
+   *       UpdateRolloutRequest.newBuilder()
+   *           .setRollout(Rollout.newBuilder().build())
+   *           .setValidateOnly(true)
+   *           .setRequestId("requestId693933066")
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   Rollout response = saasRolloutsClient.updateRollout(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 Rollout updateRollout(UpdateRolloutRequest request) { + return updateRolloutCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Update a single rollout. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create()) {
+   *   UpdateRolloutRequest request =
+   *       UpdateRolloutRequest.newBuilder()
+   *           .setRollout(Rollout.newBuilder().build())
+   *           .setValidateOnly(true)
+   *           .setRequestId("requestId693933066")
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = saasRolloutsClient.updateRolloutCallable().futureCall(request);
+   *   // Do something.
+   *   Rollout response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updateRolloutCallable() { + return stub.updateRolloutCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Delete a single rollout. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create()) {
+   *   RolloutName name = RolloutName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_ID]");
+   *   saasRolloutsClient.deleteRollout(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the resource within a service. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteRollout(RolloutName name) { + DeleteRolloutRequest request = + DeleteRolloutRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + deleteRollout(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Delete a single rollout. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create()) {
+   *   String name = RolloutName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_ID]").toString();
+   *   saasRolloutsClient.deleteRollout(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the resource within a service. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteRollout(String name) { + DeleteRolloutRequest request = DeleteRolloutRequest.newBuilder().setName(name).build(); + deleteRollout(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Delete a single rollout. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create()) {
+   *   DeleteRolloutRequest request =
+   *       DeleteRolloutRequest.newBuilder()
+   *           .setName(RolloutName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_ID]").toString())
+   *           .setEtag("etag3123477")
+   *           .setValidateOnly(true)
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   saasRolloutsClient.deleteRollout(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 void deleteRollout(DeleteRolloutRequest request) { + deleteRolloutCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Delete a single rollout. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create()) {
+   *   DeleteRolloutRequest request =
+   *       DeleteRolloutRequest.newBuilder()
+   *           .setName(RolloutName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_ID]").toString())
+   *           .setEtag("etag3123477")
+   *           .setValidateOnly(true)
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future = saasRolloutsClient.deleteRolloutCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteRolloutCallable() { + return stub.deleteRolloutCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieve a collection of rollout kinds. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   for (RolloutKind element : saasRolloutsClient.listRolloutKinds(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent of the rollout kind. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListRolloutKindsPagedResponse listRolloutKinds(LocationName parent) { + ListRolloutKindsRequest request = + ListRolloutKindsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listRolloutKinds(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieve a collection of rollout kinds. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   for (RolloutKind element : saasRolloutsClient.listRolloutKinds(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent of the rollout kind. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListRolloutKindsPagedResponse listRolloutKinds(String parent) { + ListRolloutKindsRequest request = + ListRolloutKindsRequest.newBuilder().setParent(parent).build(); + return listRolloutKinds(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieve a collection of rollout kinds. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create()) {
+   *   ListRolloutKindsRequest request =
+   *       ListRolloutKindsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   for (RolloutKind element : saasRolloutsClient.listRolloutKinds(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 ListRolloutKindsPagedResponse listRolloutKinds(ListRolloutKindsRequest request) { + return listRolloutKindsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieve a collection of rollout kinds. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create()) {
+   *   ListRolloutKindsRequest request =
+   *       ListRolloutKindsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   ApiFuture future =
+   *       saasRolloutsClient.listRolloutKindsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (RolloutKind element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listRolloutKindsPagedCallable() { + return stub.listRolloutKindsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieve a collection of rollout kinds. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create()) {
+   *   ListRolloutKindsRequest request =
+   *       ListRolloutKindsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   while (true) {
+   *     ListRolloutKindsResponse response =
+   *         saasRolloutsClient.listRolloutKindsCallable().call(request);
+   *     for (RolloutKind element : response.getRolloutKindsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listRolloutKindsCallable() { + return stub.listRolloutKindsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieve a single rollout kind. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create()) {
+   *   RolloutKindName name = RolloutKindName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_KIND_ID]");
+   *   RolloutKind response = saasRolloutsClient.getRolloutKind(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the resource within a service. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final RolloutKind getRolloutKind(RolloutKindName name) { + GetRolloutKindRequest request = + GetRolloutKindRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getRolloutKind(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieve a single rollout kind. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create()) {
+   *   String name = RolloutKindName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_KIND_ID]").toString();
+   *   RolloutKind response = saasRolloutsClient.getRolloutKind(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the resource within a service. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final RolloutKind getRolloutKind(String name) { + GetRolloutKindRequest request = GetRolloutKindRequest.newBuilder().setName(name).build(); + return getRolloutKind(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieve a single rollout kind. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create()) {
+   *   GetRolloutKindRequest request =
+   *       GetRolloutKindRequest.newBuilder()
+   *           .setName(
+   *               RolloutKindName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_KIND_ID]").toString())
+   *           .build();
+   *   RolloutKind response = saasRolloutsClient.getRolloutKind(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 RolloutKind getRolloutKind(GetRolloutKindRequest request) { + return getRolloutKindCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieve a single rollout kind. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create()) {
+   *   GetRolloutKindRequest request =
+   *       GetRolloutKindRequest.newBuilder()
+   *           .setName(
+   *               RolloutKindName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_KIND_ID]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       saasRolloutsClient.getRolloutKindCallable().futureCall(request);
+   *   // Do something.
+   *   RolloutKind response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getRolloutKindCallable() { + return stub.getRolloutKindCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create a new rollout kind. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   RolloutKind rolloutKind = RolloutKind.newBuilder().build();
+   *   String rolloutKindId = "rolloutKindId-1380592416";
+   *   RolloutKind response =
+   *       saasRolloutsClient.createRolloutKind(parent, rolloutKind, rolloutKindId);
+   * }
+   * }
+ * + * @param parent Required. The parent of the rollout kind. + * @param rolloutKind Required. The desired state for the rollout kind. + * @param rolloutKindId Required. The ID value for the new rollout kind. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final RolloutKind createRolloutKind( + LocationName parent, RolloutKind rolloutKind, String rolloutKindId) { + CreateRolloutKindRequest request = + CreateRolloutKindRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setRolloutKind(rolloutKind) + .setRolloutKindId(rolloutKindId) + .build(); + return createRolloutKind(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create a new rollout kind. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   RolloutKind rolloutKind = RolloutKind.newBuilder().build();
+   *   String rolloutKindId = "rolloutKindId-1380592416";
+   *   RolloutKind response =
+   *       saasRolloutsClient.createRolloutKind(parent, rolloutKind, rolloutKindId);
+   * }
+   * }
+ * + * @param parent Required. The parent of the rollout kind. + * @param rolloutKind Required. The desired state for the rollout kind. + * @param rolloutKindId Required. The ID value for the new rollout kind. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final RolloutKind createRolloutKind( + String parent, RolloutKind rolloutKind, String rolloutKindId) { + CreateRolloutKindRequest request = + CreateRolloutKindRequest.newBuilder() + .setParent(parent) + .setRolloutKind(rolloutKind) + .setRolloutKindId(rolloutKindId) + .build(); + return createRolloutKind(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create a new rollout kind. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create()) {
+   *   CreateRolloutKindRequest request =
+   *       CreateRolloutKindRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setRolloutKindId("rolloutKindId-1380592416")
+   *           .setRolloutKind(RolloutKind.newBuilder().build())
+   *           .setValidateOnly(true)
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   RolloutKind response = saasRolloutsClient.createRolloutKind(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 RolloutKind createRolloutKind(CreateRolloutKindRequest request) { + return createRolloutKindCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create a new rollout kind. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create()) {
+   *   CreateRolloutKindRequest request =
+   *       CreateRolloutKindRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setRolloutKindId("rolloutKindId-1380592416")
+   *           .setRolloutKind(RolloutKind.newBuilder().build())
+   *           .setValidateOnly(true)
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future =
+   *       saasRolloutsClient.createRolloutKindCallable().futureCall(request);
+   *   // Do something.
+   *   RolloutKind response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createRolloutKindCallable() { + return stub.createRolloutKindCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Update a single rollout kind. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create()) {
+   *   RolloutKind rolloutKind = RolloutKind.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   RolloutKind response = saasRolloutsClient.updateRolloutKind(rolloutKind, updateMask);
+   * }
+   * }
+ * + * @param rolloutKind Required. The desired state for the rollout kind. + * @param updateMask Field mask is used to specify the fields to be overwritten in the RolloutKind + * resource by the update. + *

The fields specified in the update_mask are relative to the resource, not the full + * request. A field will be overwritten if it is in the mask. + *

If the user does not provide a mask then all fields in the RolloutKind will be + * overwritten. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final RolloutKind updateRolloutKind(RolloutKind rolloutKind, FieldMask updateMask) { + UpdateRolloutKindRequest request = + UpdateRolloutKindRequest.newBuilder() + .setRolloutKind(rolloutKind) + .setUpdateMask(updateMask) + .build(); + return updateRolloutKind(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Update a single rollout kind. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create()) {
+   *   UpdateRolloutKindRequest request =
+   *       UpdateRolloutKindRequest.newBuilder()
+   *           .setRolloutKind(RolloutKind.newBuilder().build())
+   *           .setValidateOnly(true)
+   *           .setRequestId("requestId693933066")
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   RolloutKind response = saasRolloutsClient.updateRolloutKind(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 RolloutKind updateRolloutKind(UpdateRolloutKindRequest request) { + return updateRolloutKindCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Update a single rollout kind. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create()) {
+   *   UpdateRolloutKindRequest request =
+   *       UpdateRolloutKindRequest.newBuilder()
+   *           .setRolloutKind(RolloutKind.newBuilder().build())
+   *           .setValidateOnly(true)
+   *           .setRequestId("requestId693933066")
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       saasRolloutsClient.updateRolloutKindCallable().futureCall(request);
+   *   // Do something.
+   *   RolloutKind response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updateRolloutKindCallable() { + return stub.updateRolloutKindCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Delete a single rollout kind. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create()) {
+   *   RolloutKindName name = RolloutKindName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_KIND_ID]");
+   *   saasRolloutsClient.deleteRolloutKind(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the resource within a service. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteRolloutKind(RolloutKindName name) { + DeleteRolloutKindRequest request = + DeleteRolloutKindRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + deleteRolloutKind(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Delete a single rollout kind. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create()) {
+   *   String name = RolloutKindName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_KIND_ID]").toString();
+   *   saasRolloutsClient.deleteRolloutKind(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the resource within a service. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteRolloutKind(String name) { + DeleteRolloutKindRequest request = DeleteRolloutKindRequest.newBuilder().setName(name).build(); + deleteRolloutKind(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Delete a single rollout kind. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create()) {
+   *   DeleteRolloutKindRequest request =
+   *       DeleteRolloutKindRequest.newBuilder()
+   *           .setName(
+   *               RolloutKindName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_KIND_ID]").toString())
+   *           .setEtag("etag3123477")
+   *           .setValidateOnly(true)
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   saasRolloutsClient.deleteRolloutKind(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 void deleteRolloutKind(DeleteRolloutKindRequest request) { + deleteRolloutKindCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Delete a single rollout kind. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create()) {
+   *   DeleteRolloutKindRequest request =
+   *       DeleteRolloutKindRequest.newBuilder()
+   *           .setName(
+   *               RolloutKindName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_KIND_ID]").toString())
+   *           .setEtag("etag3123477")
+   *           .setValidateOnly(true)
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future = saasRolloutsClient.deleteRolloutKindCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteRolloutKindCallable() { + return stub.deleteRolloutKindCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Location element : saasRolloutsClient.listLocations(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 ListLocationsPagedResponse listLocations(ListLocationsRequest request) { + return listLocationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       saasRolloutsClient.listLocationsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Location element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listLocationsPagedCallable() { + return stub.listLocationsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListLocationsResponse response = saasRolloutsClient.listLocationsCallable().call(request);
+   *     for (Location element : response.getLocationsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listLocationsCallable() { + return stub.listLocationsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   Location response = saasRolloutsClient.getLocation(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 Location getLocation(GetLocationRequest request) { + return getLocationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   ApiFuture future = saasRolloutsClient.getLocationCallable().futureCall(request);
+   *   // Do something.
+   *   Location response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getLocationCallable() { + return stub.getLocationCallable(); + } + + @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 ListRolloutsPagedResponse + extends AbstractPagedListResponse< + ListRolloutsRequest, + ListRolloutsResponse, + Rollout, + ListRolloutsPage, + ListRolloutsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListRolloutsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListRolloutsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListRolloutsPagedResponse(ListRolloutsPage page) { + super(page, ListRolloutsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListRolloutsPage + extends AbstractPage { + + private ListRolloutsPage( + PageContext context, + ListRolloutsResponse response) { + super(context, response); + } + + private static ListRolloutsPage createEmptyPage() { + return new ListRolloutsPage(null, null); + } + + @Override + protected ListRolloutsPage createPage( + PageContext context, + ListRolloutsResponse response) { + return new ListRolloutsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListRolloutsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListRolloutsRequest, + ListRolloutsResponse, + Rollout, + ListRolloutsPage, + ListRolloutsFixedSizeCollection> { + + private ListRolloutsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListRolloutsFixedSizeCollection createEmptyCollection() { + return new ListRolloutsFixedSizeCollection(null, 0); + } + + @Override + protected ListRolloutsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListRolloutsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListRolloutKindsPagedResponse + extends AbstractPagedListResponse< + ListRolloutKindsRequest, + ListRolloutKindsResponse, + RolloutKind, + ListRolloutKindsPage, + ListRolloutKindsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListRolloutKindsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListRolloutKindsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListRolloutKindsPagedResponse(ListRolloutKindsPage page) { + super(page, ListRolloutKindsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListRolloutKindsPage + extends AbstractPage< + ListRolloutKindsRequest, ListRolloutKindsResponse, RolloutKind, ListRolloutKindsPage> { + + private ListRolloutKindsPage( + PageContext context, + ListRolloutKindsResponse response) { + super(context, response); + } + + private static ListRolloutKindsPage createEmptyPage() { + return new ListRolloutKindsPage(null, null); + } + + @Override + protected ListRolloutKindsPage createPage( + PageContext context, + ListRolloutKindsResponse response) { + return new ListRolloutKindsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListRolloutKindsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListRolloutKindsRequest, + ListRolloutKindsResponse, + RolloutKind, + ListRolloutKindsPage, + ListRolloutKindsFixedSizeCollection> { + + private ListRolloutKindsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListRolloutKindsFixedSizeCollection createEmptyCollection() { + return new ListRolloutKindsFixedSizeCollection(null, 0); + } + + @Override + protected ListRolloutKindsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListRolloutKindsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListLocationsPagedResponse + extends AbstractPagedListResponse< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListLocationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListLocationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListLocationsPagedResponse(ListLocationsPage page) { + super(page, ListLocationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListLocationsPage + extends AbstractPage< + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { + + private ListLocationsPage( + PageContext context, + ListLocationsResponse response) { + super(context, response); + } + + private static ListLocationsPage createEmptyPage() { + return new ListLocationsPage(null, null); + } + + @Override + protected ListLocationsPage createPage( + PageContext context, + ListLocationsResponse response) { + return new ListLocationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListLocationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListLocationsFixedSizeCollection createEmptyCollection() { + return new ListLocationsFixedSizeCollection(null, 0); + } + + @Override + protected ListLocationsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListLocationsFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/SaasRolloutsSettings.java b/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/SaasRolloutsSettings.java new file mode 100644 index 000000000000..4083ea5cb292 --- /dev/null +++ b/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/SaasRolloutsSettings.java @@ -0,0 +1,348 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1; + +import static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsClient.ListLocationsPagedResponse; +import static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsClient.ListRolloutKindsPagedResponse; +import static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsClient.ListRolloutsPagedResponse; + +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.httpjson.InstantiatingHttpJsonChannelProvider; +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.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.stub.SaasRolloutsStubSettings; +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 SaasRolloutsClient}. + * + *

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

    + *
  • The default service address (saasservicemgmt.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 + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getRollout: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * SaasRolloutsSettings.Builder saasRolloutsSettingsBuilder = SaasRolloutsSettings.newBuilder();
+ * saasRolloutsSettingsBuilder
+ *     .getRolloutSettings()
+ *     .setRetrySettings(
+ *         saasRolloutsSettingsBuilder
+ *             .getRolloutSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ *             .setMaxAttempts(5)
+ *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ *             .setRetryDelayMultiplier(1.3)
+ *             .setRpcTimeoutMultiplier(1.5)
+ *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ *             .build());
+ * SaasRolloutsSettings saasRolloutsSettings = saasRolloutsSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class SaasRolloutsSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to listRollouts. */ + public PagedCallSettings + listRolloutsSettings() { + return ((SaasRolloutsStubSettings) getStubSettings()).listRolloutsSettings(); + } + + /** Returns the object with the settings used for calls to getRollout. */ + public UnaryCallSettings getRolloutSettings() { + return ((SaasRolloutsStubSettings) getStubSettings()).getRolloutSettings(); + } + + /** Returns the object with the settings used for calls to createRollout. */ + public UnaryCallSettings createRolloutSettings() { + return ((SaasRolloutsStubSettings) getStubSettings()).createRolloutSettings(); + } + + /** Returns the object with the settings used for calls to updateRollout. */ + public UnaryCallSettings updateRolloutSettings() { + return ((SaasRolloutsStubSettings) getStubSettings()).updateRolloutSettings(); + } + + /** Returns the object with the settings used for calls to deleteRollout. */ + public UnaryCallSettings deleteRolloutSettings() { + return ((SaasRolloutsStubSettings) getStubSettings()).deleteRolloutSettings(); + } + + /** Returns the object with the settings used for calls to listRolloutKinds. */ + public PagedCallSettings< + ListRolloutKindsRequest, ListRolloutKindsResponse, ListRolloutKindsPagedResponse> + listRolloutKindsSettings() { + return ((SaasRolloutsStubSettings) getStubSettings()).listRolloutKindsSettings(); + } + + /** Returns the object with the settings used for calls to getRolloutKind. */ + public UnaryCallSettings getRolloutKindSettings() { + return ((SaasRolloutsStubSettings) getStubSettings()).getRolloutKindSettings(); + } + + /** Returns the object with the settings used for calls to createRolloutKind. */ + public UnaryCallSettings createRolloutKindSettings() { + return ((SaasRolloutsStubSettings) getStubSettings()).createRolloutKindSettings(); + } + + /** Returns the object with the settings used for calls to updateRolloutKind. */ + public UnaryCallSettings updateRolloutKindSettings() { + return ((SaasRolloutsStubSettings) getStubSettings()).updateRolloutKindSettings(); + } + + /** Returns the object with the settings used for calls to deleteRolloutKind. */ + public UnaryCallSettings deleteRolloutKindSettings() { + return ((SaasRolloutsStubSettings) getStubSettings()).deleteRolloutKindSettings(); + } + + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return ((SaasRolloutsStubSettings) getStubSettings()).listLocationsSettings(); + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return ((SaasRolloutsStubSettings) getStubSettings()).getLocationSettings(); + } + + public static final SaasRolloutsSettings create(SaasRolloutsStubSettings stub) + throws IOException { + return new SaasRolloutsSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return SaasRolloutsStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return SaasRolloutsStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return SaasRolloutsStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return SaasRolloutsStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return SaasRolloutsStubSettings.defaultGrpcTransportProviderBuilder(); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return SaasRolloutsStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return SaasRolloutsStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return SaasRolloutsStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** 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 SaasRolloutsSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for SaasRolloutsSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(SaasRolloutsStubSettings.newBuilder(clientContext)); + } + + protected Builder(SaasRolloutsSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(SaasRolloutsStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(SaasRolloutsStubSettings.newBuilder()); + } + + private static Builder createHttpJsonDefault() { + return new Builder(SaasRolloutsStubSettings.newHttpJsonBuilder()); + } + + public SaasRolloutsStubSettings.Builder getStubSettingsBuilder() { + return ((SaasRolloutsStubSettings.Builder) getStubSettings()); + } + + /** + * 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) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to listRollouts. */ + public PagedCallSettings.Builder< + ListRolloutsRequest, ListRolloutsResponse, ListRolloutsPagedResponse> + listRolloutsSettings() { + return getStubSettingsBuilder().listRolloutsSettings(); + } + + /** Returns the builder for the settings used for calls to getRollout. */ + public UnaryCallSettings.Builder getRolloutSettings() { + return getStubSettingsBuilder().getRolloutSettings(); + } + + /** Returns the builder for the settings used for calls to createRollout. */ + public UnaryCallSettings.Builder createRolloutSettings() { + return getStubSettingsBuilder().createRolloutSettings(); + } + + /** Returns the builder for the settings used for calls to updateRollout. */ + public UnaryCallSettings.Builder updateRolloutSettings() { + return getStubSettingsBuilder().updateRolloutSettings(); + } + + /** Returns the builder for the settings used for calls to deleteRollout. */ + public UnaryCallSettings.Builder deleteRolloutSettings() { + return getStubSettingsBuilder().deleteRolloutSettings(); + } + + /** Returns the builder for the settings used for calls to listRolloutKinds. */ + public PagedCallSettings.Builder< + ListRolloutKindsRequest, ListRolloutKindsResponse, ListRolloutKindsPagedResponse> + listRolloutKindsSettings() { + return getStubSettingsBuilder().listRolloutKindsSettings(); + } + + /** Returns the builder for the settings used for calls to getRolloutKind. */ + public UnaryCallSettings.Builder getRolloutKindSettings() { + return getStubSettingsBuilder().getRolloutKindSettings(); + } + + /** Returns the builder for the settings used for calls to createRolloutKind. */ + public UnaryCallSettings.Builder + createRolloutKindSettings() { + return getStubSettingsBuilder().createRolloutKindSettings(); + } + + /** Returns the builder for the settings used for calls to updateRolloutKind. */ + public UnaryCallSettings.Builder + updateRolloutKindSettings() { + return getStubSettingsBuilder().updateRolloutKindSettings(); + } + + /** Returns the builder for the settings used for calls to deleteRolloutKind. */ + public UnaryCallSettings.Builder deleteRolloutKindSettings() { + return getStubSettingsBuilder().deleteRolloutKindSettings(); + } + + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return getStubSettingsBuilder().listLocationsSettings(); + } + + /** Returns the builder for the settings used for calls to getLocation. */ + public UnaryCallSettings.Builder getLocationSettings() { + return getStubSettingsBuilder().getLocationSettings(); + } + + @Override + public SaasRolloutsSettings build() throws IOException { + return new SaasRolloutsSettings(this); + } + } +} diff --git a/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/gapic_metadata.json b/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/gapic_metadata.json new file mode 100644 index 000000000000..27618198b374 --- /dev/null +++ b/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/gapic_metadata.json @@ -0,0 +1,159 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", + "language": "java", + "protoPackage": "google.cloud.saasplatform.saasservicemgmt.v1beta1", + "libraryPackage": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1", + "services": { + "SaasDeployments": { + "clients": { + "grpc": { + "libraryClient": "SaasDeploymentsClient", + "rpcs": { + "CreateRelease": { + "methods": ["createRelease", "createRelease", "createRelease", "createReleaseCallable"] + }, + "CreateSaas": { + "methods": ["createSaas", "createSaas", "createSaas", "createSaasCallable"] + }, + "CreateTenant": { + "methods": ["createTenant", "createTenant", "createTenant", "createTenantCallable"] + }, + "CreateUnit": { + "methods": ["createUnit", "createUnit", "createUnit", "createUnitCallable"] + }, + "CreateUnitKind": { + "methods": ["createUnitKind", "createUnitKind", "createUnitKind", "createUnitKindCallable"] + }, + "CreateUnitOperation": { + "methods": ["createUnitOperation", "createUnitOperation", "createUnitOperation", "createUnitOperationCallable"] + }, + "DeleteRelease": { + "methods": ["deleteRelease", "deleteRelease", "deleteRelease", "deleteReleaseCallable"] + }, + "DeleteSaas": { + "methods": ["deleteSaas", "deleteSaas", "deleteSaas", "deleteSaasCallable"] + }, + "DeleteTenant": { + "methods": ["deleteTenant", "deleteTenant", "deleteTenant", "deleteTenantCallable"] + }, + "DeleteUnit": { + "methods": ["deleteUnit", "deleteUnit", "deleteUnit", "deleteUnitCallable"] + }, + "DeleteUnitKind": { + "methods": ["deleteUnitKind", "deleteUnitKind", "deleteUnitKind", "deleteUnitKindCallable"] + }, + "DeleteUnitOperation": { + "methods": ["deleteUnitOperation", "deleteUnitOperation", "deleteUnitOperation", "deleteUnitOperationCallable"] + }, + "GetLocation": { + "methods": ["getLocation", "getLocationCallable"] + }, + "GetRelease": { + "methods": ["getRelease", "getRelease", "getRelease", "getReleaseCallable"] + }, + "GetSaas": { + "methods": ["getSaas", "getSaas", "getSaas", "getSaasCallable"] + }, + "GetTenant": { + "methods": ["getTenant", "getTenant", "getTenant", "getTenantCallable"] + }, + "GetUnit": { + "methods": ["getUnit", "getUnit", "getUnit", "getUnitCallable"] + }, + "GetUnitKind": { + "methods": ["getUnitKind", "getUnitKind", "getUnitKind", "getUnitKindCallable"] + }, + "GetUnitOperation": { + "methods": ["getUnitOperation", "getUnitOperation", "getUnitOperation", "getUnitOperationCallable"] + }, + "ListLocations": { + "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"] + }, + "ListReleases": { + "methods": ["listReleases", "listReleases", "listReleases", "listReleasesPagedCallable", "listReleasesCallable"] + }, + "ListSaas": { + "methods": ["listSaas", "listSaas", "listSaas", "listSaasPagedCallable", "listSaasCallable"] + }, + "ListTenants": { + "methods": ["listTenants", "listTenants", "listTenants", "listTenantsPagedCallable", "listTenantsCallable"] + }, + "ListUnitKinds": { + "methods": ["listUnitKinds", "listUnitKinds", "listUnitKinds", "listUnitKindsPagedCallable", "listUnitKindsCallable"] + }, + "ListUnitOperations": { + "methods": ["listUnitOperations", "listUnitOperations", "listUnitOperations", "listUnitOperationsPagedCallable", "listUnitOperationsCallable"] + }, + "ListUnits": { + "methods": ["listUnits", "listUnits", "listUnits", "listUnitsPagedCallable", "listUnitsCallable"] + }, + "UpdateRelease": { + "methods": ["updateRelease", "updateRelease", "updateReleaseCallable"] + }, + "UpdateSaas": { + "methods": ["updateSaas", "updateSaas", "updateSaasCallable"] + }, + "UpdateTenant": { + "methods": ["updateTenant", "updateTenant", "updateTenantCallable"] + }, + "UpdateUnit": { + "methods": ["updateUnit", "updateUnit", "updateUnitCallable"] + }, + "UpdateUnitKind": { + "methods": ["updateUnitKind", "updateUnitKind", "updateUnitKindCallable"] + }, + "UpdateUnitOperation": { + "methods": ["updateUnitOperation", "updateUnitOperation", "updateUnitOperationCallable"] + } + } + } + } + }, + "SaasRollouts": { + "clients": { + "grpc": { + "libraryClient": "SaasRolloutsClient", + "rpcs": { + "CreateRollout": { + "methods": ["createRollout", "createRollout", "createRollout", "createRolloutCallable"] + }, + "CreateRolloutKind": { + "methods": ["createRolloutKind", "createRolloutKind", "createRolloutKind", "createRolloutKindCallable"] + }, + "DeleteRollout": { + "methods": ["deleteRollout", "deleteRollout", "deleteRollout", "deleteRolloutCallable"] + }, + "DeleteRolloutKind": { + "methods": ["deleteRolloutKind", "deleteRolloutKind", "deleteRolloutKind", "deleteRolloutKindCallable"] + }, + "GetLocation": { + "methods": ["getLocation", "getLocationCallable"] + }, + "GetRollout": { + "methods": ["getRollout", "getRollout", "getRollout", "getRolloutCallable"] + }, + "GetRolloutKind": { + "methods": ["getRolloutKind", "getRolloutKind", "getRolloutKind", "getRolloutKindCallable"] + }, + "ListLocations": { + "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"] + }, + "ListRolloutKinds": { + "methods": ["listRolloutKinds", "listRolloutKinds", "listRolloutKinds", "listRolloutKindsPagedCallable", "listRolloutKindsCallable"] + }, + "ListRollouts": { + "methods": ["listRollouts", "listRollouts", "listRollouts", "listRolloutsPagedCallable", "listRolloutsCallable"] + }, + "UpdateRollout": { + "methods": ["updateRollout", "updateRollout", "updateRolloutCallable"] + }, + "UpdateRolloutKind": { + "methods": ["updateRolloutKind", "updateRolloutKind", "updateRolloutKindCallable"] + } + } + } + } + } + } +} \ No newline at end of file diff --git a/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/package-info.java b/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/package-info.java new file mode 100644 index 000000000000..e9cef14f0226 --- /dev/null +++ b/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/package-info.java @@ -0,0 +1,61 @@ +/* + * Copyright 2025 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. + */ + +/** + * A client to SaaS Runtime API + * + *

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

======================= SaasDeploymentsClient ======================= + * + *

Service Description: Manages the deployment of SaaS services. + * + *

Sample for SaasDeploymentsClient: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
+ *   SaasName name = SaasName.of("[PROJECT]", "[LOCATION]", "[SAAS]");
+ *   Saas response = saasDeploymentsClient.getSaas(name);
+ * }
+ * }
+ * + *

======================= SaasRolloutsClient ======================= + * + *

Service Description: Manages the rollout of SaaS services. + * + *

Sample for SaasRolloutsClient: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create()) {
+ *   RolloutName name = RolloutName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_ID]");
+ *   Rollout response = saasRolloutsClient.getRollout(name);
+ * }
+ * }
+ */ +@Generated("by gapic-generator-java") +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +import javax.annotation.Generated; diff --git a/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/stub/GrpcSaasDeploymentsCallableFactory.java b/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/stub/GrpcSaasDeploymentsCallableFactory.java new file mode 100644 index 000000000000..24d7747f3370 --- /dev/null +++ b/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/stub/GrpcSaasDeploymentsCallableFactory.java @@ -0,0 +1,115 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.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.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the SaasDeployments service API. + * + *

This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcSaasDeploymentsCallableFactory 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 callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/stub/GrpcSaasDeploymentsStub.java b/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/stub/GrpcSaasDeploymentsStub.java new file mode 100644 index 000000000000..9efec3e4c19d --- /dev/null +++ b/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/stub/GrpcSaasDeploymentsStub.java @@ -0,0 +1,1205 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.stub; + +import static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient.ListLocationsPagedResponse; +import static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient.ListReleasesPagedResponse; +import static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient.ListSaasPagedResponse; +import static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient.ListTenantsPagedResponse; +import static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient.ListUnitKindsPagedResponse; +import static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient.ListUnitOperationsPagedResponse; +import static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient.ListUnitsPagedResponse; + +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.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateReleaseRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateSaasRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateTenantRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitKindRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitOperationRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteReleaseRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteSaasRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteTenantRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitKindRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitOperationRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetReleaseRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetSaasRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetTenantRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitKindRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitOperationRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesResponse; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasResponse; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsResponse; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsResponse; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsResponse; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsResponse; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateReleaseRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateSaasRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateTenantRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitKindRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitOperationRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitRequest; +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.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the SaasDeployments service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcSaasDeploymentsStub extends SaasDeploymentsStub { + private static final MethodDescriptor + listSaasMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments/ListSaas") + .setRequestMarshaller(ProtoUtils.marshaller(ListSaasRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(ListSaasResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor getSaasMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments/GetSaas") + .setRequestMarshaller(ProtoUtils.marshaller(GetSaasRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Saas.getDefaultInstance())) + .build(); + + private static final MethodDescriptor createSaasMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments/CreateSaas") + .setRequestMarshaller(ProtoUtils.marshaller(CreateSaasRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Saas.getDefaultInstance())) + .build(); + + private static final MethodDescriptor updateSaasMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments/UpdateSaas") + .setRequestMarshaller(ProtoUtils.marshaller(UpdateSaasRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Saas.getDefaultInstance())) + .build(); + + private static final MethodDescriptor deleteSaasMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments/DeleteSaas") + .setRequestMarshaller(ProtoUtils.marshaller(DeleteSaasRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listTenantsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments/ListTenants") + .setRequestMarshaller(ProtoUtils.marshaller(ListTenantsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListTenantsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor getTenantMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments/GetTenant") + .setRequestMarshaller(ProtoUtils.marshaller(GetTenantRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Tenant.getDefaultInstance())) + .build(); + + private static final MethodDescriptor createTenantMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments/CreateTenant") + .setRequestMarshaller(ProtoUtils.marshaller(CreateTenantRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Tenant.getDefaultInstance())) + .build(); + + private static final MethodDescriptor updateTenantMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments/UpdateTenant") + .setRequestMarshaller(ProtoUtils.marshaller(UpdateTenantRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Tenant.getDefaultInstance())) + .build(); + + private static final MethodDescriptor deleteTenantMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments/DeleteTenant") + .setRequestMarshaller(ProtoUtils.marshaller(DeleteTenantRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listUnitKindsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments/ListUnitKinds") + .setRequestMarshaller( + ProtoUtils.marshaller(ListUnitKindsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListUnitKindsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor getUnitKindMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments/GetUnitKind") + .setRequestMarshaller(ProtoUtils.marshaller(GetUnitKindRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(UnitKind.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createUnitKindMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments/CreateUnitKind") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateUnitKindRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(UnitKind.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateUnitKindMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments/UpdateUnitKind") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateUnitKindRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(UnitKind.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteUnitKindMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments/DeleteUnitKind") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteUnitKindRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listUnitsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments/ListUnits") + .setRequestMarshaller(ProtoUtils.marshaller(ListUnitsRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(ListUnitsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor getUnitMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments/GetUnit") + .setRequestMarshaller(ProtoUtils.marshaller(GetUnitRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Unit.getDefaultInstance())) + .build(); + + private static final MethodDescriptor createUnitMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments/CreateUnit") + .setRequestMarshaller(ProtoUtils.marshaller(CreateUnitRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Unit.getDefaultInstance())) + .build(); + + private static final MethodDescriptor updateUnitMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments/UpdateUnit") + .setRequestMarshaller(ProtoUtils.marshaller(UpdateUnitRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Unit.getDefaultInstance())) + .build(); + + private static final MethodDescriptor deleteUnitMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments/DeleteUnit") + .setRequestMarshaller(ProtoUtils.marshaller(DeleteUnitRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listUnitOperationsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments/ListUnitOperations") + .setRequestMarshaller( + ProtoUtils.marshaller(ListUnitOperationsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListUnitOperationsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getUnitOperationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments/GetUnitOperation") + .setRequestMarshaller( + ProtoUtils.marshaller(GetUnitOperationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(UnitOperation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createUnitOperationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments/CreateUnitOperation") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateUnitOperationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(UnitOperation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateUnitOperationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments/UpdateUnitOperation") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateUnitOperationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(UnitOperation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteUnitOperationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments/DeleteUnitOperation") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteUnitOperationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listReleasesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments/ListReleases") + .setRequestMarshaller(ProtoUtils.marshaller(ListReleasesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListReleasesResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor getReleaseMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments/GetRelease") + .setRequestMarshaller(ProtoUtils.marshaller(GetReleaseRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Release.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createReleaseMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments/CreateRelease") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateReleaseRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Release.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateReleaseMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments/UpdateRelease") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateReleaseRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Release.getDefaultInstance())) + .build(); + + private static final MethodDescriptor deleteReleaseMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments/DeleteRelease") + .setRequestMarshaller(ProtoUtils.marshaller(DeleteReleaseRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listLocationsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.location.Locations/ListLocations") + .setRequestMarshaller( + ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor getLocationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.location.Locations/GetLocation") + .setRequestMarshaller(ProtoUtils.marshaller(GetLocationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Location.getDefaultInstance())) + .build(); + + private final UnaryCallable listSaasCallable; + private final UnaryCallable listSaasPagedCallable; + private final UnaryCallable getSaasCallable; + private final UnaryCallable createSaasCallable; + private final UnaryCallable updateSaasCallable; + private final UnaryCallable deleteSaasCallable; + private final UnaryCallable listTenantsCallable; + private final UnaryCallable + listTenantsPagedCallable; + private final UnaryCallable getTenantCallable; + private final UnaryCallable createTenantCallable; + private final UnaryCallable updateTenantCallable; + private final UnaryCallable deleteTenantCallable; + private final UnaryCallable listUnitKindsCallable; + private final UnaryCallable + listUnitKindsPagedCallable; + private final UnaryCallable getUnitKindCallable; + private final UnaryCallable createUnitKindCallable; + private final UnaryCallable updateUnitKindCallable; + private final UnaryCallable deleteUnitKindCallable; + private final UnaryCallable listUnitsCallable; + private final UnaryCallable listUnitsPagedCallable; + private final UnaryCallable getUnitCallable; + private final UnaryCallable createUnitCallable; + private final UnaryCallable updateUnitCallable; + private final UnaryCallable deleteUnitCallable; + private final UnaryCallable + listUnitOperationsCallable; + private final UnaryCallable + listUnitOperationsPagedCallable; + private final UnaryCallable getUnitOperationCallable; + private final UnaryCallable + createUnitOperationCallable; + private final UnaryCallable + updateUnitOperationCallable; + private final UnaryCallable deleteUnitOperationCallable; + private final UnaryCallable listReleasesCallable; + private final UnaryCallable + listReleasesPagedCallable; + private final UnaryCallable getReleaseCallable; + private final UnaryCallable createReleaseCallable; + private final UnaryCallable updateReleaseCallable; + private final UnaryCallable deleteReleaseCallable; + private final UnaryCallable listLocationsCallable; + private final UnaryCallable + listLocationsPagedCallable; + private final UnaryCallable getLocationCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcSaasDeploymentsStub create(SaasDeploymentsStubSettings settings) + throws IOException { + return new GrpcSaasDeploymentsStub(settings, ClientContext.create(settings)); + } + + public static final GrpcSaasDeploymentsStub create(ClientContext clientContext) + throws IOException { + return new GrpcSaasDeploymentsStub( + SaasDeploymentsStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcSaasDeploymentsStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcSaasDeploymentsStub( + SaasDeploymentsStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcSaasDeploymentsStub, 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 GrpcSaasDeploymentsStub( + SaasDeploymentsStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new GrpcSaasDeploymentsCallableFactory()); + } + + /** + * Constructs an instance of GrpcSaasDeploymentsStub, 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 GrpcSaasDeploymentsStub( + SaasDeploymentsStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings listSaasTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listSaasMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings getSaasTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getSaasMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings createSaasTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createSaasMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings updateSaasTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateSaasMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("saas.name", String.valueOf(request.getSaas().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteSaasTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteSaasMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings listTenantsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listTenantsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings getTenantTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getTenantMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings createTenantTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createTenantMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings updateTenantTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateTenantMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("tenant.name", String.valueOf(request.getTenant().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteTenantTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteTenantMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings listUnitKindsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listUnitKindsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings getUnitKindTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getUnitKindMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings createUnitKindTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createUnitKindMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings updateUnitKindTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateUnitKindMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("unit_kind.name", String.valueOf(request.getUnitKind().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteUnitKindTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteUnitKindMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings listUnitsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listUnitsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings getUnitTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getUnitMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings createUnitTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createUnitMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings updateUnitTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateUnitMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("unit.name", String.valueOf(request.getUnit().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteUnitTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteUnitMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listUnitOperationsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listUnitOperationsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings getUnitOperationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getUnitOperationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + createUnitOperationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createUnitOperationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + updateUnitOperationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateUnitOperationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "unit_operation.name", + String.valueOf(request.getUnitOperation().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteUnitOperationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteUnitOperationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings listReleasesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listReleasesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings getReleaseTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getReleaseMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings createReleaseTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createReleaseMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings updateReleaseTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateReleaseMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("release.name", String.valueOf(request.getRelease().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteReleaseTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteReleaseMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings listLocationsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listLocationsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings getLocationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getLocationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + + this.listSaasCallable = + callableFactory.createUnaryCallable( + listSaasTransportSettings, settings.listSaasSettings(), clientContext); + this.listSaasPagedCallable = + callableFactory.createPagedCallable( + listSaasTransportSettings, settings.listSaasSettings(), clientContext); + this.getSaasCallable = + callableFactory.createUnaryCallable( + getSaasTransportSettings, settings.getSaasSettings(), clientContext); + this.createSaasCallable = + callableFactory.createUnaryCallable( + createSaasTransportSettings, settings.createSaasSettings(), clientContext); + this.updateSaasCallable = + callableFactory.createUnaryCallable( + updateSaasTransportSettings, settings.updateSaasSettings(), clientContext); + this.deleteSaasCallable = + callableFactory.createUnaryCallable( + deleteSaasTransportSettings, settings.deleteSaasSettings(), clientContext); + this.listTenantsCallable = + callableFactory.createUnaryCallable( + listTenantsTransportSettings, settings.listTenantsSettings(), clientContext); + this.listTenantsPagedCallable = + callableFactory.createPagedCallable( + listTenantsTransportSettings, settings.listTenantsSettings(), clientContext); + this.getTenantCallable = + callableFactory.createUnaryCallable( + getTenantTransportSettings, settings.getTenantSettings(), clientContext); + this.createTenantCallable = + callableFactory.createUnaryCallable( + createTenantTransportSettings, settings.createTenantSettings(), clientContext); + this.updateTenantCallable = + callableFactory.createUnaryCallable( + updateTenantTransportSettings, settings.updateTenantSettings(), clientContext); + this.deleteTenantCallable = + callableFactory.createUnaryCallable( + deleteTenantTransportSettings, settings.deleteTenantSettings(), clientContext); + this.listUnitKindsCallable = + callableFactory.createUnaryCallable( + listUnitKindsTransportSettings, settings.listUnitKindsSettings(), clientContext); + this.listUnitKindsPagedCallable = + callableFactory.createPagedCallable( + listUnitKindsTransportSettings, settings.listUnitKindsSettings(), clientContext); + this.getUnitKindCallable = + callableFactory.createUnaryCallable( + getUnitKindTransportSettings, settings.getUnitKindSettings(), clientContext); + this.createUnitKindCallable = + callableFactory.createUnaryCallable( + createUnitKindTransportSettings, settings.createUnitKindSettings(), clientContext); + this.updateUnitKindCallable = + callableFactory.createUnaryCallable( + updateUnitKindTransportSettings, settings.updateUnitKindSettings(), clientContext); + this.deleteUnitKindCallable = + callableFactory.createUnaryCallable( + deleteUnitKindTransportSettings, settings.deleteUnitKindSettings(), clientContext); + this.listUnitsCallable = + callableFactory.createUnaryCallable( + listUnitsTransportSettings, settings.listUnitsSettings(), clientContext); + this.listUnitsPagedCallable = + callableFactory.createPagedCallable( + listUnitsTransportSettings, settings.listUnitsSettings(), clientContext); + this.getUnitCallable = + callableFactory.createUnaryCallable( + getUnitTransportSettings, settings.getUnitSettings(), clientContext); + this.createUnitCallable = + callableFactory.createUnaryCallable( + createUnitTransportSettings, settings.createUnitSettings(), clientContext); + this.updateUnitCallable = + callableFactory.createUnaryCallable( + updateUnitTransportSettings, settings.updateUnitSettings(), clientContext); + this.deleteUnitCallable = + callableFactory.createUnaryCallable( + deleteUnitTransportSettings, settings.deleteUnitSettings(), clientContext); + this.listUnitOperationsCallable = + callableFactory.createUnaryCallable( + listUnitOperationsTransportSettings, + settings.listUnitOperationsSettings(), + clientContext); + this.listUnitOperationsPagedCallable = + callableFactory.createPagedCallable( + listUnitOperationsTransportSettings, + settings.listUnitOperationsSettings(), + clientContext); + this.getUnitOperationCallable = + callableFactory.createUnaryCallable( + getUnitOperationTransportSettings, settings.getUnitOperationSettings(), clientContext); + this.createUnitOperationCallable = + callableFactory.createUnaryCallable( + createUnitOperationTransportSettings, + settings.createUnitOperationSettings(), + clientContext); + this.updateUnitOperationCallable = + callableFactory.createUnaryCallable( + updateUnitOperationTransportSettings, + settings.updateUnitOperationSettings(), + clientContext); + this.deleteUnitOperationCallable = + callableFactory.createUnaryCallable( + deleteUnitOperationTransportSettings, + settings.deleteUnitOperationSettings(), + clientContext); + this.listReleasesCallable = + callableFactory.createUnaryCallable( + listReleasesTransportSettings, settings.listReleasesSettings(), clientContext); + this.listReleasesPagedCallable = + callableFactory.createPagedCallable( + listReleasesTransportSettings, settings.listReleasesSettings(), clientContext); + this.getReleaseCallable = + callableFactory.createUnaryCallable( + getReleaseTransportSettings, settings.getReleaseSettings(), clientContext); + this.createReleaseCallable = + callableFactory.createUnaryCallable( + createReleaseTransportSettings, settings.createReleaseSettings(), clientContext); + this.updateReleaseCallable = + callableFactory.createUnaryCallable( + updateReleaseTransportSettings, settings.updateReleaseSettings(), clientContext); + this.deleteReleaseCallable = + callableFactory.createUnaryCallable( + deleteReleaseTransportSettings, settings.deleteReleaseSettings(), clientContext); + this.listLocationsCallable = + callableFactory.createUnaryCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.listLocationsPagedCallable = + callableFactory.createPagedCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.getLocationCallable = + callableFactory.createUnaryCallable( + getLocationTransportSettings, settings.getLocationSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable listSaasCallable() { + return listSaasCallable; + } + + @Override + public UnaryCallable listSaasPagedCallable() { + return listSaasPagedCallable; + } + + @Override + public UnaryCallable getSaasCallable() { + return getSaasCallable; + } + + @Override + public UnaryCallable createSaasCallable() { + return createSaasCallable; + } + + @Override + public UnaryCallable updateSaasCallable() { + return updateSaasCallable; + } + + @Override + public UnaryCallable deleteSaasCallable() { + return deleteSaasCallable; + } + + @Override + public UnaryCallable listTenantsCallable() { + return listTenantsCallable; + } + + @Override + public UnaryCallable listTenantsPagedCallable() { + return listTenantsPagedCallable; + } + + @Override + public UnaryCallable getTenantCallable() { + return getTenantCallable; + } + + @Override + public UnaryCallable createTenantCallable() { + return createTenantCallable; + } + + @Override + public UnaryCallable updateTenantCallable() { + return updateTenantCallable; + } + + @Override + public UnaryCallable deleteTenantCallable() { + return deleteTenantCallable; + } + + @Override + public UnaryCallable listUnitKindsCallable() { + return listUnitKindsCallable; + } + + @Override + public UnaryCallable + listUnitKindsPagedCallable() { + return listUnitKindsPagedCallable; + } + + @Override + public UnaryCallable getUnitKindCallable() { + return getUnitKindCallable; + } + + @Override + public UnaryCallable createUnitKindCallable() { + return createUnitKindCallable; + } + + @Override + public UnaryCallable updateUnitKindCallable() { + return updateUnitKindCallable; + } + + @Override + public UnaryCallable deleteUnitKindCallable() { + return deleteUnitKindCallable; + } + + @Override + public UnaryCallable listUnitsCallable() { + return listUnitsCallable; + } + + @Override + public UnaryCallable listUnitsPagedCallable() { + return listUnitsPagedCallable; + } + + @Override + public UnaryCallable getUnitCallable() { + return getUnitCallable; + } + + @Override + public UnaryCallable createUnitCallable() { + return createUnitCallable; + } + + @Override + public UnaryCallable updateUnitCallable() { + return updateUnitCallable; + } + + @Override + public UnaryCallable deleteUnitCallable() { + return deleteUnitCallable; + } + + @Override + public UnaryCallable + listUnitOperationsCallable() { + return listUnitOperationsCallable; + } + + @Override + public UnaryCallable + listUnitOperationsPagedCallable() { + return listUnitOperationsPagedCallable; + } + + @Override + public UnaryCallable getUnitOperationCallable() { + return getUnitOperationCallable; + } + + @Override + public UnaryCallable createUnitOperationCallable() { + return createUnitOperationCallable; + } + + @Override + public UnaryCallable updateUnitOperationCallable() { + return updateUnitOperationCallable; + } + + @Override + public UnaryCallable deleteUnitOperationCallable() { + return deleteUnitOperationCallable; + } + + @Override + public UnaryCallable listReleasesCallable() { + return listReleasesCallable; + } + + @Override + public UnaryCallable listReleasesPagedCallable() { + return listReleasesPagedCallable; + } + + @Override + public UnaryCallable getReleaseCallable() { + return getReleaseCallable; + } + + @Override + public UnaryCallable createReleaseCallable() { + return createReleaseCallable; + } + + @Override + public UnaryCallable updateReleaseCallable() { + return updateReleaseCallable; + } + + @Override + public UnaryCallable deleteReleaseCallable() { + return deleteReleaseCallable; + } + + @Override + public UnaryCallable listLocationsCallable() { + return listLocationsCallable; + } + + @Override + public UnaryCallable + listLocationsPagedCallable() { + return listLocationsPagedCallable; + } + + @Override + public UnaryCallable getLocationCallable() { + return getLocationCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @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/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/stub/GrpcSaasRolloutsCallableFactory.java b/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/stub/GrpcSaasRolloutsCallableFactory.java new file mode 100644 index 000000000000..b549c864b636 --- /dev/null +++ b/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/stub/GrpcSaasRolloutsCallableFactory.java @@ -0,0 +1,115 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.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.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the SaasRollouts service API. + * + *

This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcSaasRolloutsCallableFactory 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 callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/stub/GrpcSaasRolloutsStub.java b/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/stub/GrpcSaasRolloutsStub.java new file mode 100644 index 000000000000..310afe1feab8 --- /dev/null +++ b/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/stub/GrpcSaasRolloutsStub.java @@ -0,0 +1,550 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.stub; + +import static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsClient.ListLocationsPagedResponse; +import static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsClient.ListRolloutKindsPagedResponse; +import static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsClient.ListRolloutsPagedResponse; + +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.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutKindRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutKindRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutKindRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsResponse; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsResponse; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutKindRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutRequest; +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.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the SaasRollouts service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcSaasRolloutsStub extends SaasRolloutsStub { + private static final MethodDescriptor + listRolloutsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRollouts/ListRollouts") + .setRequestMarshaller(ProtoUtils.marshaller(ListRolloutsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListRolloutsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor getRolloutMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRollouts/GetRollout") + .setRequestMarshaller(ProtoUtils.marshaller(GetRolloutRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Rollout.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createRolloutMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRollouts/CreateRollout") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateRolloutRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Rollout.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateRolloutMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRollouts/UpdateRollout") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateRolloutRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Rollout.getDefaultInstance())) + .build(); + + private static final MethodDescriptor deleteRolloutMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRollouts/DeleteRollout") + .setRequestMarshaller(ProtoUtils.marshaller(DeleteRolloutRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listRolloutKindsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRollouts/ListRolloutKinds") + .setRequestMarshaller( + ProtoUtils.marshaller(ListRolloutKindsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListRolloutKindsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getRolloutKindMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRollouts/GetRolloutKind") + .setRequestMarshaller( + ProtoUtils.marshaller(GetRolloutKindRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(RolloutKind.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createRolloutKindMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRollouts/CreateRolloutKind") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateRolloutKindRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(RolloutKind.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateRolloutKindMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRollouts/UpdateRolloutKind") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateRolloutKindRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(RolloutKind.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteRolloutKindMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRollouts/DeleteRolloutKind") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteRolloutKindRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listLocationsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.location.Locations/ListLocations") + .setRequestMarshaller( + ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor getLocationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.location.Locations/GetLocation") + .setRequestMarshaller(ProtoUtils.marshaller(GetLocationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Location.getDefaultInstance())) + .build(); + + private final UnaryCallable listRolloutsCallable; + private final UnaryCallable + listRolloutsPagedCallable; + private final UnaryCallable getRolloutCallable; + private final UnaryCallable createRolloutCallable; + private final UnaryCallable updateRolloutCallable; + private final UnaryCallable deleteRolloutCallable; + private final UnaryCallable + listRolloutKindsCallable; + private final UnaryCallable + listRolloutKindsPagedCallable; + private final UnaryCallable getRolloutKindCallable; + private final UnaryCallable createRolloutKindCallable; + private final UnaryCallable updateRolloutKindCallable; + private final UnaryCallable deleteRolloutKindCallable; + private final UnaryCallable listLocationsCallable; + private final UnaryCallable + listLocationsPagedCallable; + private final UnaryCallable getLocationCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcSaasRolloutsStub create(SaasRolloutsStubSettings settings) + throws IOException { + return new GrpcSaasRolloutsStub(settings, ClientContext.create(settings)); + } + + public static final GrpcSaasRolloutsStub create(ClientContext clientContext) throws IOException { + return new GrpcSaasRolloutsStub(SaasRolloutsStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcSaasRolloutsStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcSaasRolloutsStub( + SaasRolloutsStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcSaasRolloutsStub, 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 GrpcSaasRolloutsStub(SaasRolloutsStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new GrpcSaasRolloutsCallableFactory()); + } + + /** + * Constructs an instance of GrpcSaasRolloutsStub, 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 GrpcSaasRolloutsStub( + SaasRolloutsStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings listRolloutsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listRolloutsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings getRolloutTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getRolloutMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings createRolloutTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createRolloutMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings updateRolloutTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateRolloutMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("rollout.name", String.valueOf(request.getRollout().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteRolloutTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteRolloutMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listRolloutKindsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listRolloutKindsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings getRolloutKindTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getRolloutKindMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings createRolloutKindTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createRolloutKindMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings updateRolloutKindTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateRolloutKindMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "rollout_kind.name", String.valueOf(request.getRolloutKind().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteRolloutKindTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteRolloutKindMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings listLocationsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listLocationsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings getLocationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getLocationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + + this.listRolloutsCallable = + callableFactory.createUnaryCallable( + listRolloutsTransportSettings, settings.listRolloutsSettings(), clientContext); + this.listRolloutsPagedCallable = + callableFactory.createPagedCallable( + listRolloutsTransportSettings, settings.listRolloutsSettings(), clientContext); + this.getRolloutCallable = + callableFactory.createUnaryCallable( + getRolloutTransportSettings, settings.getRolloutSettings(), clientContext); + this.createRolloutCallable = + callableFactory.createUnaryCallable( + createRolloutTransportSettings, settings.createRolloutSettings(), clientContext); + this.updateRolloutCallable = + callableFactory.createUnaryCallable( + updateRolloutTransportSettings, settings.updateRolloutSettings(), clientContext); + this.deleteRolloutCallable = + callableFactory.createUnaryCallable( + deleteRolloutTransportSettings, settings.deleteRolloutSettings(), clientContext); + this.listRolloutKindsCallable = + callableFactory.createUnaryCallable( + listRolloutKindsTransportSettings, settings.listRolloutKindsSettings(), clientContext); + this.listRolloutKindsPagedCallable = + callableFactory.createPagedCallable( + listRolloutKindsTransportSettings, settings.listRolloutKindsSettings(), clientContext); + this.getRolloutKindCallable = + callableFactory.createUnaryCallable( + getRolloutKindTransportSettings, settings.getRolloutKindSettings(), clientContext); + this.createRolloutKindCallable = + callableFactory.createUnaryCallable( + createRolloutKindTransportSettings, + settings.createRolloutKindSettings(), + clientContext); + this.updateRolloutKindCallable = + callableFactory.createUnaryCallable( + updateRolloutKindTransportSettings, + settings.updateRolloutKindSettings(), + clientContext); + this.deleteRolloutKindCallable = + callableFactory.createUnaryCallable( + deleteRolloutKindTransportSettings, + settings.deleteRolloutKindSettings(), + clientContext); + this.listLocationsCallable = + callableFactory.createUnaryCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.listLocationsPagedCallable = + callableFactory.createPagedCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.getLocationCallable = + callableFactory.createUnaryCallable( + getLocationTransportSettings, settings.getLocationSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable listRolloutsCallable() { + return listRolloutsCallable; + } + + @Override + public UnaryCallable listRolloutsPagedCallable() { + return listRolloutsPagedCallable; + } + + @Override + public UnaryCallable getRolloutCallable() { + return getRolloutCallable; + } + + @Override + public UnaryCallable createRolloutCallable() { + return createRolloutCallable; + } + + @Override + public UnaryCallable updateRolloutCallable() { + return updateRolloutCallable; + } + + @Override + public UnaryCallable deleteRolloutCallable() { + return deleteRolloutCallable; + } + + @Override + public UnaryCallable + listRolloutKindsCallable() { + return listRolloutKindsCallable; + } + + @Override + public UnaryCallable + listRolloutKindsPagedCallable() { + return listRolloutKindsPagedCallable; + } + + @Override + public UnaryCallable getRolloutKindCallable() { + return getRolloutKindCallable; + } + + @Override + public UnaryCallable createRolloutKindCallable() { + return createRolloutKindCallable; + } + + @Override + public UnaryCallable updateRolloutKindCallable() { + return updateRolloutKindCallable; + } + + @Override + public UnaryCallable deleteRolloutKindCallable() { + return deleteRolloutKindCallable; + } + + @Override + public UnaryCallable listLocationsCallable() { + return listLocationsCallable; + } + + @Override + public UnaryCallable + listLocationsPagedCallable() { + return listLocationsPagedCallable; + } + + @Override + public UnaryCallable getLocationCallable() { + return getLocationCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @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/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/stub/HttpJsonSaasDeploymentsCallableFactory.java b/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/stub/HttpJsonSaasDeploymentsCallableFactory.java new file mode 100644 index 000000000000..65a123232414 --- /dev/null +++ b/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/stub/HttpJsonSaasDeploymentsCallableFactory.java @@ -0,0 +1,103 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +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.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the SaasDeployments service API. + * + *

This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonSaasDeploymentsCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/stub/HttpJsonSaasDeploymentsStub.java b/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/stub/HttpJsonSaasDeploymentsStub.java new file mode 100644 index 000000000000..db8f5fc5b379 --- /dev/null +++ b/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/stub/HttpJsonSaasDeploymentsStub.java @@ -0,0 +1,2196 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.stub; + +import static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient.ListLocationsPagedResponse; +import static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient.ListReleasesPagedResponse; +import static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient.ListSaasPagedResponse; +import static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient.ListTenantsPagedResponse; +import static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient.ListUnitKindsPagedResponse; +import static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient.ListUnitOperationsPagedResponse; +import static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient.ListUnitsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateReleaseRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateSaasRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateTenantRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitKindRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitOperationRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteReleaseRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteSaasRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteTenantRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitKindRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitOperationRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetReleaseRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetSaasRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetTenantRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitKindRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitOperationRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesResponse; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasResponse; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsResponse; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsResponse; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsResponse; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsResponse; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateReleaseRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateSaasRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateTenantRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitKindRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitOperationRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitRequest; +import com.google.protobuf.Empty; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the SaasDeployments service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonSaasDeploymentsStub extends SaasDeploymentsStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor + listSaasMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments/ListSaas") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{parent=projects/*/locations/*}/saas", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListSaasResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor getSaasMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments/GetSaas") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{name=projects/*/locations/*/saas/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Saas.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor createSaasMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments/CreateSaas") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{parent=projects/*/locations/*}/saas", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "saasId", request.getSaasId()); + serializer.putQueryParam(fields, "validateOnly", request.getValidateOnly()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create().toBody("saas", request.getSaas(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Saas.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor updateSaasMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments/UpdateSaas") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{saas.name=projects/*/locations/*/saas/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "saas.name", request.getSaas().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "validateOnly", request.getValidateOnly()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create().toBody("saas", request.getSaas(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Saas.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor deleteSaasMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments/DeleteSaas") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{name=projects/*/locations/*/saas/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "etag", request.getEtag()); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "validateOnly", request.getValidateOnly()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listTenantsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments/ListTenants") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{parent=projects/*/locations/*}/tenants", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListTenantsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor getTenantMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments/GetTenant") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{name=projects/*/locations/*/tenants/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Tenant.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createTenantMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments/CreateTenant") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{parent=projects/*/locations/*}/tenants", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "tenantId", request.getTenantId()); + serializer.putQueryParam( + fields, "validateOnly", request.getValidateOnly()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("tenant", request.getTenant(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Tenant.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateTenantMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments/UpdateTenant") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{tenant.name=projects/*/locations/*/tenants/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "tenant.name", request.getTenant().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam( + fields, "validateOnly", request.getValidateOnly()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("tenant", request.getTenant(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Tenant.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteTenantMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments/DeleteTenant") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{name=projects/*/locations/*/tenants/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "etag", request.getEtag()); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam( + fields, "validateOnly", request.getValidateOnly()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listUnitKindsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments/ListUnitKinds") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{parent=projects/*/locations/*}/unitKinds", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListUnitKindsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getUnitKindMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments/GetUnitKind") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{name=projects/*/locations/*/unitKinds/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(UnitKind.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createUnitKindMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments/CreateUnitKind") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{parent=projects/*/locations/*}/unitKinds", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "unitKindId", request.getUnitKindId()); + serializer.putQueryParam( + fields, "validateOnly", request.getValidateOnly()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("unitKind", request.getUnitKind(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(UnitKind.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateUnitKindMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments/UpdateUnitKind") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{unitKind.name=projects/*/locations/*/unitKinds/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "unitKind.name", request.getUnitKind().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam( + fields, "validateOnly", request.getValidateOnly()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("unitKind", request.getUnitKind(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(UnitKind.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteUnitKindMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments/DeleteUnitKind") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{name=projects/*/locations/*/unitKinds/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "etag", request.getEtag()); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam( + fields, "validateOnly", request.getValidateOnly()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listUnitsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments/ListUnits") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{parent=projects/*/locations/*}/units", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListUnitsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor getUnitMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments/GetUnit") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{name=projects/*/locations/*/units/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Unit.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor createUnitMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments/CreateUnit") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{parent=projects/*/locations/*}/units", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "unitId", request.getUnitId()); + serializer.putQueryParam(fields, "validateOnly", request.getValidateOnly()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create().toBody("unit", request.getUnit(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Unit.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor updateUnitMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments/UpdateUnit") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{unit.name=projects/*/locations/*/units/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "unit.name", request.getUnit().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "validateOnly", request.getValidateOnly()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create().toBody("unit", request.getUnit(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Unit.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor deleteUnitMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments/DeleteUnit") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{name=projects/*/locations/*/units/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "etag", request.getEtag()); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "validateOnly", request.getValidateOnly()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listUnitOperationsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments/ListUnitOperations") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{parent=projects/*/locations/*}/unitOperations", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListUnitOperationsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getUnitOperationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments/GetUnitOperation") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{name=projects/*/locations/*/unitOperations/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(UnitOperation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createUnitOperationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments/CreateUnitOperation") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{parent=projects/*/locations/*}/unitOperations", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam( + fields, "unitOperationId", request.getUnitOperationId()); + serializer.putQueryParam( + fields, "validateOnly", request.getValidateOnly()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("unitOperation", request.getUnitOperation(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(UnitOperation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateUnitOperationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments/UpdateUnitOperation") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{unitOperation.name=projects/*/locations/*/unitOperations/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "unitOperation.name", request.getUnitOperation().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam( + fields, "validateOnly", request.getValidateOnly()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("unitOperation", request.getUnitOperation(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(UnitOperation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteUnitOperationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments/DeleteUnitOperation") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{name=projects/*/locations/*/unitOperations/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "etag", request.getEtag()); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam( + fields, "validateOnly", request.getValidateOnly()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listReleasesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments/ListReleases") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{parent=projects/*/locations/*}/releases", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListReleasesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor getReleaseMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments/GetRelease") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{name=projects/*/locations/*/releases/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Release.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createReleaseMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments/CreateRelease") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{parent=projects/*/locations/*}/releases", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "releaseId", request.getReleaseId()); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam( + fields, "validateOnly", request.getValidateOnly()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("release", request.getRelease(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Release.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateReleaseMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments/UpdateRelease") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{release.name=projects/*/locations/*/releases/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "release.name", request.getRelease().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam( + fields, "validateOnly", request.getValidateOnly()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("release", request.getRelease(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Release.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteReleaseMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments/DeleteRelease") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{name=projects/*/locations/*/releases/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "etag", request.getEtag()); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam( + fields, "validateOnly", request.getValidateOnly()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listLocationsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.location.Locations/ListLocations") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{name=projects/*}/locations", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListLocationsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getLocationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.location.Locations/GetLocation") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{name=projects/*/locations/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Location.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable listSaasCallable; + private final UnaryCallable listSaasPagedCallable; + private final UnaryCallable getSaasCallable; + private final UnaryCallable createSaasCallable; + private final UnaryCallable updateSaasCallable; + private final UnaryCallable deleteSaasCallable; + private final UnaryCallable listTenantsCallable; + private final UnaryCallable + listTenantsPagedCallable; + private final UnaryCallable getTenantCallable; + private final UnaryCallable createTenantCallable; + private final UnaryCallable updateTenantCallable; + private final UnaryCallable deleteTenantCallable; + private final UnaryCallable listUnitKindsCallable; + private final UnaryCallable + listUnitKindsPagedCallable; + private final UnaryCallable getUnitKindCallable; + private final UnaryCallable createUnitKindCallable; + private final UnaryCallable updateUnitKindCallable; + private final UnaryCallable deleteUnitKindCallable; + private final UnaryCallable listUnitsCallable; + private final UnaryCallable listUnitsPagedCallable; + private final UnaryCallable getUnitCallable; + private final UnaryCallable createUnitCallable; + private final UnaryCallable updateUnitCallable; + private final UnaryCallable deleteUnitCallable; + private final UnaryCallable + listUnitOperationsCallable; + private final UnaryCallable + listUnitOperationsPagedCallable; + private final UnaryCallable getUnitOperationCallable; + private final UnaryCallable + createUnitOperationCallable; + private final UnaryCallable + updateUnitOperationCallable; + private final UnaryCallable deleteUnitOperationCallable; + private final UnaryCallable listReleasesCallable; + private final UnaryCallable + listReleasesPagedCallable; + private final UnaryCallable getReleaseCallable; + private final UnaryCallable createReleaseCallable; + private final UnaryCallable updateReleaseCallable; + private final UnaryCallable deleteReleaseCallable; + private final UnaryCallable listLocationsCallable; + private final UnaryCallable + listLocationsPagedCallable; + private final UnaryCallable getLocationCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonSaasDeploymentsStub create(SaasDeploymentsStubSettings settings) + throws IOException { + return new HttpJsonSaasDeploymentsStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonSaasDeploymentsStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonSaasDeploymentsStub( + SaasDeploymentsStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonSaasDeploymentsStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonSaasDeploymentsStub( + SaasDeploymentsStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonSaasDeploymentsStub, 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 HttpJsonSaasDeploymentsStub( + SaasDeploymentsStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonSaasDeploymentsCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonSaasDeploymentsStub, 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 HttpJsonSaasDeploymentsStub( + SaasDeploymentsStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings listSaasTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listSaasMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getSaasTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getSaasMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings createSaasTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createSaasMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings updateSaasTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateSaasMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("saas.name", String.valueOf(request.getSaas().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings deleteSaasTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteSaasMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings listTenantsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listTenantsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getTenantTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getTenantMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings createTenantTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createTenantMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings updateTenantTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateTenantMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("tenant.name", String.valueOf(request.getTenant().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings deleteTenantTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteTenantMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listUnitKindsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listUnitKindsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getUnitKindTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getUnitKindMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings createUnitKindTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createUnitKindMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings updateUnitKindTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateUnitKindMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("unit_kind.name", String.valueOf(request.getUnitKind().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings deleteUnitKindTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteUnitKindMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings listUnitsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listUnitsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getUnitTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getUnitMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings createUnitTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createUnitMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings updateUnitTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateUnitMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("unit.name", String.valueOf(request.getUnit().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings deleteUnitTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteUnitMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listUnitOperationsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listUnitOperationsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getUnitOperationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getUnitOperationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + createUnitOperationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createUnitOperationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + updateUnitOperationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateUnitOperationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "unit_operation.name", + String.valueOf(request.getUnitOperation().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings deleteUnitOperationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteUnitOperationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings listReleasesTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listReleasesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getReleaseTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getReleaseMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings createReleaseTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createReleaseMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings updateReleaseTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateReleaseMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("release.name", String.valueOf(request.getRelease().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings deleteReleaseTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteReleaseMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listLocationsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listLocationsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getLocationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getLocationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + + this.listSaasCallable = + callableFactory.createUnaryCallable( + listSaasTransportSettings, settings.listSaasSettings(), clientContext); + this.listSaasPagedCallable = + callableFactory.createPagedCallable( + listSaasTransportSettings, settings.listSaasSettings(), clientContext); + this.getSaasCallable = + callableFactory.createUnaryCallable( + getSaasTransportSettings, settings.getSaasSettings(), clientContext); + this.createSaasCallable = + callableFactory.createUnaryCallable( + createSaasTransportSettings, settings.createSaasSettings(), clientContext); + this.updateSaasCallable = + callableFactory.createUnaryCallable( + updateSaasTransportSettings, settings.updateSaasSettings(), clientContext); + this.deleteSaasCallable = + callableFactory.createUnaryCallable( + deleteSaasTransportSettings, settings.deleteSaasSettings(), clientContext); + this.listTenantsCallable = + callableFactory.createUnaryCallable( + listTenantsTransportSettings, settings.listTenantsSettings(), clientContext); + this.listTenantsPagedCallable = + callableFactory.createPagedCallable( + listTenantsTransportSettings, settings.listTenantsSettings(), clientContext); + this.getTenantCallable = + callableFactory.createUnaryCallable( + getTenantTransportSettings, settings.getTenantSettings(), clientContext); + this.createTenantCallable = + callableFactory.createUnaryCallable( + createTenantTransportSettings, settings.createTenantSettings(), clientContext); + this.updateTenantCallable = + callableFactory.createUnaryCallable( + updateTenantTransportSettings, settings.updateTenantSettings(), clientContext); + this.deleteTenantCallable = + callableFactory.createUnaryCallable( + deleteTenantTransportSettings, settings.deleteTenantSettings(), clientContext); + this.listUnitKindsCallable = + callableFactory.createUnaryCallable( + listUnitKindsTransportSettings, settings.listUnitKindsSettings(), clientContext); + this.listUnitKindsPagedCallable = + callableFactory.createPagedCallable( + listUnitKindsTransportSettings, settings.listUnitKindsSettings(), clientContext); + this.getUnitKindCallable = + callableFactory.createUnaryCallable( + getUnitKindTransportSettings, settings.getUnitKindSettings(), clientContext); + this.createUnitKindCallable = + callableFactory.createUnaryCallable( + createUnitKindTransportSettings, settings.createUnitKindSettings(), clientContext); + this.updateUnitKindCallable = + callableFactory.createUnaryCallable( + updateUnitKindTransportSettings, settings.updateUnitKindSettings(), clientContext); + this.deleteUnitKindCallable = + callableFactory.createUnaryCallable( + deleteUnitKindTransportSettings, settings.deleteUnitKindSettings(), clientContext); + this.listUnitsCallable = + callableFactory.createUnaryCallable( + listUnitsTransportSettings, settings.listUnitsSettings(), clientContext); + this.listUnitsPagedCallable = + callableFactory.createPagedCallable( + listUnitsTransportSettings, settings.listUnitsSettings(), clientContext); + this.getUnitCallable = + callableFactory.createUnaryCallable( + getUnitTransportSettings, settings.getUnitSettings(), clientContext); + this.createUnitCallable = + callableFactory.createUnaryCallable( + createUnitTransportSettings, settings.createUnitSettings(), clientContext); + this.updateUnitCallable = + callableFactory.createUnaryCallable( + updateUnitTransportSettings, settings.updateUnitSettings(), clientContext); + this.deleteUnitCallable = + callableFactory.createUnaryCallable( + deleteUnitTransportSettings, settings.deleteUnitSettings(), clientContext); + this.listUnitOperationsCallable = + callableFactory.createUnaryCallable( + listUnitOperationsTransportSettings, + settings.listUnitOperationsSettings(), + clientContext); + this.listUnitOperationsPagedCallable = + callableFactory.createPagedCallable( + listUnitOperationsTransportSettings, + settings.listUnitOperationsSettings(), + clientContext); + this.getUnitOperationCallable = + callableFactory.createUnaryCallable( + getUnitOperationTransportSettings, settings.getUnitOperationSettings(), clientContext); + this.createUnitOperationCallable = + callableFactory.createUnaryCallable( + createUnitOperationTransportSettings, + settings.createUnitOperationSettings(), + clientContext); + this.updateUnitOperationCallable = + callableFactory.createUnaryCallable( + updateUnitOperationTransportSettings, + settings.updateUnitOperationSettings(), + clientContext); + this.deleteUnitOperationCallable = + callableFactory.createUnaryCallable( + deleteUnitOperationTransportSettings, + settings.deleteUnitOperationSettings(), + clientContext); + this.listReleasesCallable = + callableFactory.createUnaryCallable( + listReleasesTransportSettings, settings.listReleasesSettings(), clientContext); + this.listReleasesPagedCallable = + callableFactory.createPagedCallable( + listReleasesTransportSettings, settings.listReleasesSettings(), clientContext); + this.getReleaseCallable = + callableFactory.createUnaryCallable( + getReleaseTransportSettings, settings.getReleaseSettings(), clientContext); + this.createReleaseCallable = + callableFactory.createUnaryCallable( + createReleaseTransportSettings, settings.createReleaseSettings(), clientContext); + this.updateReleaseCallable = + callableFactory.createUnaryCallable( + updateReleaseTransportSettings, settings.updateReleaseSettings(), clientContext); + this.deleteReleaseCallable = + callableFactory.createUnaryCallable( + deleteReleaseTransportSettings, settings.deleteReleaseSettings(), clientContext); + this.listLocationsCallable = + callableFactory.createUnaryCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.listLocationsPagedCallable = + callableFactory.createPagedCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.getLocationCallable = + callableFactory.createUnaryCallable( + getLocationTransportSettings, settings.getLocationSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(listSaasMethodDescriptor); + methodDescriptors.add(getSaasMethodDescriptor); + methodDescriptors.add(createSaasMethodDescriptor); + methodDescriptors.add(updateSaasMethodDescriptor); + methodDescriptors.add(deleteSaasMethodDescriptor); + methodDescriptors.add(listTenantsMethodDescriptor); + methodDescriptors.add(getTenantMethodDescriptor); + methodDescriptors.add(createTenantMethodDescriptor); + methodDescriptors.add(updateTenantMethodDescriptor); + methodDescriptors.add(deleteTenantMethodDescriptor); + methodDescriptors.add(listUnitKindsMethodDescriptor); + methodDescriptors.add(getUnitKindMethodDescriptor); + methodDescriptors.add(createUnitKindMethodDescriptor); + methodDescriptors.add(updateUnitKindMethodDescriptor); + methodDescriptors.add(deleteUnitKindMethodDescriptor); + methodDescriptors.add(listUnitsMethodDescriptor); + methodDescriptors.add(getUnitMethodDescriptor); + methodDescriptors.add(createUnitMethodDescriptor); + methodDescriptors.add(updateUnitMethodDescriptor); + methodDescriptors.add(deleteUnitMethodDescriptor); + methodDescriptors.add(listUnitOperationsMethodDescriptor); + methodDescriptors.add(getUnitOperationMethodDescriptor); + methodDescriptors.add(createUnitOperationMethodDescriptor); + methodDescriptors.add(updateUnitOperationMethodDescriptor); + methodDescriptors.add(deleteUnitOperationMethodDescriptor); + methodDescriptors.add(listReleasesMethodDescriptor); + methodDescriptors.add(getReleaseMethodDescriptor); + methodDescriptors.add(createReleaseMethodDescriptor); + methodDescriptors.add(updateReleaseMethodDescriptor); + methodDescriptors.add(deleteReleaseMethodDescriptor); + methodDescriptors.add(listLocationsMethodDescriptor); + methodDescriptors.add(getLocationMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable listSaasCallable() { + return listSaasCallable; + } + + @Override + public UnaryCallable listSaasPagedCallable() { + return listSaasPagedCallable; + } + + @Override + public UnaryCallable getSaasCallable() { + return getSaasCallable; + } + + @Override + public UnaryCallable createSaasCallable() { + return createSaasCallable; + } + + @Override + public UnaryCallable updateSaasCallable() { + return updateSaasCallable; + } + + @Override + public UnaryCallable deleteSaasCallable() { + return deleteSaasCallable; + } + + @Override + public UnaryCallable listTenantsCallable() { + return listTenantsCallable; + } + + @Override + public UnaryCallable listTenantsPagedCallable() { + return listTenantsPagedCallable; + } + + @Override + public UnaryCallable getTenantCallable() { + return getTenantCallable; + } + + @Override + public UnaryCallable createTenantCallable() { + return createTenantCallable; + } + + @Override + public UnaryCallable updateTenantCallable() { + return updateTenantCallable; + } + + @Override + public UnaryCallable deleteTenantCallable() { + return deleteTenantCallable; + } + + @Override + public UnaryCallable listUnitKindsCallable() { + return listUnitKindsCallable; + } + + @Override + public UnaryCallable + listUnitKindsPagedCallable() { + return listUnitKindsPagedCallable; + } + + @Override + public UnaryCallable getUnitKindCallable() { + return getUnitKindCallable; + } + + @Override + public UnaryCallable createUnitKindCallable() { + return createUnitKindCallable; + } + + @Override + public UnaryCallable updateUnitKindCallable() { + return updateUnitKindCallable; + } + + @Override + public UnaryCallable deleteUnitKindCallable() { + return deleteUnitKindCallable; + } + + @Override + public UnaryCallable listUnitsCallable() { + return listUnitsCallable; + } + + @Override + public UnaryCallable listUnitsPagedCallable() { + return listUnitsPagedCallable; + } + + @Override + public UnaryCallable getUnitCallable() { + return getUnitCallable; + } + + @Override + public UnaryCallable createUnitCallable() { + return createUnitCallable; + } + + @Override + public UnaryCallable updateUnitCallable() { + return updateUnitCallable; + } + + @Override + public UnaryCallable deleteUnitCallable() { + return deleteUnitCallable; + } + + @Override + public UnaryCallable + listUnitOperationsCallable() { + return listUnitOperationsCallable; + } + + @Override + public UnaryCallable + listUnitOperationsPagedCallable() { + return listUnitOperationsPagedCallable; + } + + @Override + public UnaryCallable getUnitOperationCallable() { + return getUnitOperationCallable; + } + + @Override + public UnaryCallable createUnitOperationCallable() { + return createUnitOperationCallable; + } + + @Override + public UnaryCallable updateUnitOperationCallable() { + return updateUnitOperationCallable; + } + + @Override + public UnaryCallable deleteUnitOperationCallable() { + return deleteUnitOperationCallable; + } + + @Override + public UnaryCallable listReleasesCallable() { + return listReleasesCallable; + } + + @Override + public UnaryCallable listReleasesPagedCallable() { + return listReleasesPagedCallable; + } + + @Override + public UnaryCallable getReleaseCallable() { + return getReleaseCallable; + } + + @Override + public UnaryCallable createReleaseCallable() { + return createReleaseCallable; + } + + @Override + public UnaryCallable updateReleaseCallable() { + return updateReleaseCallable; + } + + @Override + public UnaryCallable deleteReleaseCallable() { + return deleteReleaseCallable; + } + + @Override + public UnaryCallable listLocationsCallable() { + return listLocationsCallable; + } + + @Override + public UnaryCallable + listLocationsPagedCallable() { + return listLocationsPagedCallable; + } + + @Override + public UnaryCallable getLocationCallable() { + return getLocationCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @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/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/stub/HttpJsonSaasRolloutsCallableFactory.java b/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/stub/HttpJsonSaasRolloutsCallableFactory.java new file mode 100644 index 000000000000..3eee3d4b69d4 --- /dev/null +++ b/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/stub/HttpJsonSaasRolloutsCallableFactory.java @@ -0,0 +1,103 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +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.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the SaasRollouts service API. + * + *

This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonSaasRolloutsCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/stub/HttpJsonSaasRolloutsStub.java b/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/stub/HttpJsonSaasRolloutsStub.java new file mode 100644 index 000000000000..2736f687a35d --- /dev/null +++ b/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/stub/HttpJsonSaasRolloutsStub.java @@ -0,0 +1,924 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.stub; + +import static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsClient.ListLocationsPagedResponse; +import static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsClient.ListRolloutKindsPagedResponse; +import static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsClient.ListRolloutsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutKindRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutKindRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutKindRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsResponse; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsResponse; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutKindRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutRequest; +import com.google.protobuf.Empty; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the SaasRollouts service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonSaasRolloutsStub extends SaasRolloutsStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor + listRolloutsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRollouts/ListRollouts") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{parent=projects/*/locations/*}/rollouts", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListRolloutsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor getRolloutMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRollouts/GetRollout") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{name=projects/*/locations/*/rollouts/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Rollout.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createRolloutMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRollouts/CreateRollout") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{parent=projects/*/locations/*}/rollouts", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "rolloutId", request.getRolloutId()); + serializer.putQueryParam( + fields, "validateOnly", request.getValidateOnly()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("rollout", request.getRollout(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Rollout.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateRolloutMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRollouts/UpdateRollout") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{rollout.name=projects/*/locations/*/rollouts/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "rollout.name", request.getRollout().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam( + fields, "validateOnly", request.getValidateOnly()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("rollout", request.getRollout(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Rollout.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteRolloutMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRollouts/DeleteRollout") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{name=projects/*/locations/*/rollouts/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "etag", request.getEtag()); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam( + fields, "validateOnly", request.getValidateOnly()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listRolloutKindsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRollouts/ListRolloutKinds") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{parent=projects/*/locations/*}/rolloutKinds", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListRolloutKindsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getRolloutKindMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRollouts/GetRolloutKind") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{name=projects/*/locations/*/rolloutKinds/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(RolloutKind.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createRolloutKindMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRollouts/CreateRolloutKind") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{parent=projects/*/locations/*}/rolloutKinds", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam( + fields, "rolloutKindId", request.getRolloutKindId()); + serializer.putQueryParam( + fields, "validateOnly", request.getValidateOnly()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("rolloutKind", request.getRolloutKind(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(RolloutKind.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateRolloutKindMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRollouts/UpdateRolloutKind") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{rolloutKind.name=projects/*/locations/*/rolloutKinds/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "rolloutKind.name", request.getRolloutKind().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam( + fields, "validateOnly", request.getValidateOnly()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("rolloutKind", request.getRolloutKind(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(RolloutKind.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteRolloutKindMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRollouts/DeleteRolloutKind") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{name=projects/*/locations/*/rolloutKinds/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "etag", request.getEtag()); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam( + fields, "validateOnly", request.getValidateOnly()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listLocationsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.location.Locations/ListLocations") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{name=projects/*}/locations", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListLocationsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getLocationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.location.Locations/GetLocation") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{name=projects/*/locations/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Location.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable listRolloutsCallable; + private final UnaryCallable + listRolloutsPagedCallable; + private final UnaryCallable getRolloutCallable; + private final UnaryCallable createRolloutCallable; + private final UnaryCallable updateRolloutCallable; + private final UnaryCallable deleteRolloutCallable; + private final UnaryCallable + listRolloutKindsCallable; + private final UnaryCallable + listRolloutKindsPagedCallable; + private final UnaryCallable getRolloutKindCallable; + private final UnaryCallable createRolloutKindCallable; + private final UnaryCallable updateRolloutKindCallable; + private final UnaryCallable deleteRolloutKindCallable; + private final UnaryCallable listLocationsCallable; + private final UnaryCallable + listLocationsPagedCallable; + private final UnaryCallable getLocationCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonSaasRolloutsStub create(SaasRolloutsStubSettings settings) + throws IOException { + return new HttpJsonSaasRolloutsStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonSaasRolloutsStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonSaasRolloutsStub( + SaasRolloutsStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonSaasRolloutsStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonSaasRolloutsStub( + SaasRolloutsStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonSaasRolloutsStub, 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 HttpJsonSaasRolloutsStub(SaasRolloutsStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new HttpJsonSaasRolloutsCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonSaasRolloutsStub, 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 HttpJsonSaasRolloutsStub( + SaasRolloutsStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings listRolloutsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listRolloutsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getRolloutTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getRolloutMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings createRolloutTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createRolloutMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings updateRolloutTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateRolloutMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("rollout.name", String.valueOf(request.getRollout().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings deleteRolloutTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteRolloutMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listRolloutKindsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listRolloutKindsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getRolloutKindTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getRolloutKindMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings createRolloutKindTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createRolloutKindMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings updateRolloutKindTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateRolloutKindMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "rollout_kind.name", String.valueOf(request.getRolloutKind().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings deleteRolloutKindTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteRolloutKindMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listLocationsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listLocationsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getLocationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getLocationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + + this.listRolloutsCallable = + callableFactory.createUnaryCallable( + listRolloutsTransportSettings, settings.listRolloutsSettings(), clientContext); + this.listRolloutsPagedCallable = + callableFactory.createPagedCallable( + listRolloutsTransportSettings, settings.listRolloutsSettings(), clientContext); + this.getRolloutCallable = + callableFactory.createUnaryCallable( + getRolloutTransportSettings, settings.getRolloutSettings(), clientContext); + this.createRolloutCallable = + callableFactory.createUnaryCallable( + createRolloutTransportSettings, settings.createRolloutSettings(), clientContext); + this.updateRolloutCallable = + callableFactory.createUnaryCallable( + updateRolloutTransportSettings, settings.updateRolloutSettings(), clientContext); + this.deleteRolloutCallable = + callableFactory.createUnaryCallable( + deleteRolloutTransportSettings, settings.deleteRolloutSettings(), clientContext); + this.listRolloutKindsCallable = + callableFactory.createUnaryCallable( + listRolloutKindsTransportSettings, settings.listRolloutKindsSettings(), clientContext); + this.listRolloutKindsPagedCallable = + callableFactory.createPagedCallable( + listRolloutKindsTransportSettings, settings.listRolloutKindsSettings(), clientContext); + this.getRolloutKindCallable = + callableFactory.createUnaryCallable( + getRolloutKindTransportSettings, settings.getRolloutKindSettings(), clientContext); + this.createRolloutKindCallable = + callableFactory.createUnaryCallable( + createRolloutKindTransportSettings, + settings.createRolloutKindSettings(), + clientContext); + this.updateRolloutKindCallable = + callableFactory.createUnaryCallable( + updateRolloutKindTransportSettings, + settings.updateRolloutKindSettings(), + clientContext); + this.deleteRolloutKindCallable = + callableFactory.createUnaryCallable( + deleteRolloutKindTransportSettings, + settings.deleteRolloutKindSettings(), + clientContext); + this.listLocationsCallable = + callableFactory.createUnaryCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.listLocationsPagedCallable = + callableFactory.createPagedCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.getLocationCallable = + callableFactory.createUnaryCallable( + getLocationTransportSettings, settings.getLocationSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(listRolloutsMethodDescriptor); + methodDescriptors.add(getRolloutMethodDescriptor); + methodDescriptors.add(createRolloutMethodDescriptor); + methodDescriptors.add(updateRolloutMethodDescriptor); + methodDescriptors.add(deleteRolloutMethodDescriptor); + methodDescriptors.add(listRolloutKindsMethodDescriptor); + methodDescriptors.add(getRolloutKindMethodDescriptor); + methodDescriptors.add(createRolloutKindMethodDescriptor); + methodDescriptors.add(updateRolloutKindMethodDescriptor); + methodDescriptors.add(deleteRolloutKindMethodDescriptor); + methodDescriptors.add(listLocationsMethodDescriptor); + methodDescriptors.add(getLocationMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable listRolloutsCallable() { + return listRolloutsCallable; + } + + @Override + public UnaryCallable listRolloutsPagedCallable() { + return listRolloutsPagedCallable; + } + + @Override + public UnaryCallable getRolloutCallable() { + return getRolloutCallable; + } + + @Override + public UnaryCallable createRolloutCallable() { + return createRolloutCallable; + } + + @Override + public UnaryCallable updateRolloutCallable() { + return updateRolloutCallable; + } + + @Override + public UnaryCallable deleteRolloutCallable() { + return deleteRolloutCallable; + } + + @Override + public UnaryCallable + listRolloutKindsCallable() { + return listRolloutKindsCallable; + } + + @Override + public UnaryCallable + listRolloutKindsPagedCallable() { + return listRolloutKindsPagedCallable; + } + + @Override + public UnaryCallable getRolloutKindCallable() { + return getRolloutKindCallable; + } + + @Override + public UnaryCallable createRolloutKindCallable() { + return createRolloutKindCallable; + } + + @Override + public UnaryCallable updateRolloutKindCallable() { + return updateRolloutKindCallable; + } + + @Override + public UnaryCallable deleteRolloutKindCallable() { + return deleteRolloutKindCallable; + } + + @Override + public UnaryCallable listLocationsCallable() { + return listLocationsCallable; + } + + @Override + public UnaryCallable + listLocationsPagedCallable() { + return listLocationsPagedCallable; + } + + @Override + public UnaryCallable getLocationCallable() { + return getLocationCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @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/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/stub/SaasDeploymentsStub.java b/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/stub/SaasDeploymentsStub.java new file mode 100644 index 000000000000..d7a673e9d284 --- /dev/null +++ b/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/stub/SaasDeploymentsStub.java @@ -0,0 +1,251 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.stub; + +import static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient.ListLocationsPagedResponse; +import static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient.ListReleasesPagedResponse; +import static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient.ListSaasPagedResponse; +import static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient.ListTenantsPagedResponse; +import static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient.ListUnitKindsPagedResponse; +import static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient.ListUnitOperationsPagedResponse; +import static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient.ListUnitsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateReleaseRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateSaasRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateTenantRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitKindRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitOperationRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteReleaseRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteSaasRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteTenantRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitKindRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitOperationRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetReleaseRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetSaasRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetTenantRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitKindRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitOperationRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesResponse; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasResponse; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsResponse; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsResponse; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsResponse; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsResponse; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateReleaseRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateSaasRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateTenantRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitKindRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitOperationRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitRequest; +import com.google.protobuf.Empty; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the SaasDeployments service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public abstract class SaasDeploymentsStub implements BackgroundResource { + + public UnaryCallable listSaasPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listSaasPagedCallable()"); + } + + public UnaryCallable listSaasCallable() { + throw new UnsupportedOperationException("Not implemented: listSaasCallable()"); + } + + public UnaryCallable getSaasCallable() { + throw new UnsupportedOperationException("Not implemented: getSaasCallable()"); + } + + public UnaryCallable createSaasCallable() { + throw new UnsupportedOperationException("Not implemented: createSaasCallable()"); + } + + public UnaryCallable updateSaasCallable() { + throw new UnsupportedOperationException("Not implemented: updateSaasCallable()"); + } + + public UnaryCallable deleteSaasCallable() { + throw new UnsupportedOperationException("Not implemented: deleteSaasCallable()"); + } + + public UnaryCallable listTenantsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listTenantsPagedCallable()"); + } + + public UnaryCallable listTenantsCallable() { + throw new UnsupportedOperationException("Not implemented: listTenantsCallable()"); + } + + public UnaryCallable getTenantCallable() { + throw new UnsupportedOperationException("Not implemented: getTenantCallable()"); + } + + public UnaryCallable createTenantCallable() { + throw new UnsupportedOperationException("Not implemented: createTenantCallable()"); + } + + public UnaryCallable updateTenantCallable() { + throw new UnsupportedOperationException("Not implemented: updateTenantCallable()"); + } + + public UnaryCallable deleteTenantCallable() { + throw new UnsupportedOperationException("Not implemented: deleteTenantCallable()"); + } + + public UnaryCallable + listUnitKindsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listUnitKindsPagedCallable()"); + } + + public UnaryCallable listUnitKindsCallable() { + throw new UnsupportedOperationException("Not implemented: listUnitKindsCallable()"); + } + + public UnaryCallable getUnitKindCallable() { + throw new UnsupportedOperationException("Not implemented: getUnitKindCallable()"); + } + + public UnaryCallable createUnitKindCallable() { + throw new UnsupportedOperationException("Not implemented: createUnitKindCallable()"); + } + + public UnaryCallable updateUnitKindCallable() { + throw new UnsupportedOperationException("Not implemented: updateUnitKindCallable()"); + } + + public UnaryCallable deleteUnitKindCallable() { + throw new UnsupportedOperationException("Not implemented: deleteUnitKindCallable()"); + } + + public UnaryCallable listUnitsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listUnitsPagedCallable()"); + } + + public UnaryCallable listUnitsCallable() { + throw new UnsupportedOperationException("Not implemented: listUnitsCallable()"); + } + + public UnaryCallable getUnitCallable() { + throw new UnsupportedOperationException("Not implemented: getUnitCallable()"); + } + + public UnaryCallable createUnitCallable() { + throw new UnsupportedOperationException("Not implemented: createUnitCallable()"); + } + + public UnaryCallable updateUnitCallable() { + throw new UnsupportedOperationException("Not implemented: updateUnitCallable()"); + } + + public UnaryCallable deleteUnitCallable() { + throw new UnsupportedOperationException("Not implemented: deleteUnitCallable()"); + } + + public UnaryCallable + listUnitOperationsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listUnitOperationsPagedCallable()"); + } + + public UnaryCallable + listUnitOperationsCallable() { + throw new UnsupportedOperationException("Not implemented: listUnitOperationsCallable()"); + } + + public UnaryCallable getUnitOperationCallable() { + throw new UnsupportedOperationException("Not implemented: getUnitOperationCallable()"); + } + + public UnaryCallable createUnitOperationCallable() { + throw new UnsupportedOperationException("Not implemented: createUnitOperationCallable()"); + } + + public UnaryCallable updateUnitOperationCallable() { + throw new UnsupportedOperationException("Not implemented: updateUnitOperationCallable()"); + } + + public UnaryCallable deleteUnitOperationCallable() { + throw new UnsupportedOperationException("Not implemented: deleteUnitOperationCallable()"); + } + + public UnaryCallable listReleasesPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listReleasesPagedCallable()"); + } + + public UnaryCallable listReleasesCallable() { + throw new UnsupportedOperationException("Not implemented: listReleasesCallable()"); + } + + public UnaryCallable getReleaseCallable() { + throw new UnsupportedOperationException("Not implemented: getReleaseCallable()"); + } + + public UnaryCallable createReleaseCallable() { + throw new UnsupportedOperationException("Not implemented: createReleaseCallable()"); + } + + public UnaryCallable updateReleaseCallable() { + throw new UnsupportedOperationException("Not implemented: updateReleaseCallable()"); + } + + public UnaryCallable deleteReleaseCallable() { + throw new UnsupportedOperationException("Not implemented: deleteReleaseCallable()"); + } + + public UnaryCallable + listLocationsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); + } + + public UnaryCallable listLocationsCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsCallable()"); + } + + public UnaryCallable getLocationCallable() { + throw new UnsupportedOperationException("Not implemented: getLocationCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/stub/SaasDeploymentsStubSettings.java b/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/stub/SaasDeploymentsStubSettings.java new file mode 100644 index 000000000000..92ac605ed431 --- /dev/null +++ b/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/stub/SaasDeploymentsStubSettings.java @@ -0,0 +1,1546 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.stub; + +import static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient.ListLocationsPagedResponse; +import static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient.ListReleasesPagedResponse; +import static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient.ListSaasPagedResponse; +import static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient.ListTenantsPagedResponse; +import static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient.ListUnitKindsPagedResponse; +import static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient.ListUnitOperationsPagedResponse; +import static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient.ListUnitsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.BetaApi; +import com.google.api.core.ObsoleteApi; +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.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +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.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.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateReleaseRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateSaasRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateTenantRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitKindRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitOperationRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteReleaseRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteSaasRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteTenantRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitKindRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitOperationRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetReleaseRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetSaasRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetTenantRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitKindRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitOperationRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesResponse; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasResponse; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsResponse; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsResponse; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsResponse; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsResponse; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateReleaseRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateSaasRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateTenantRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitKindRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitOperationRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitRequest; +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.protobuf.Empty; +import java.io.IOException; +import java.time.Duration; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link SaasDeploymentsStub}. + * + *

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

    + *
  • The default service address (saasservicemgmt.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 + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getSaas: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * SaasDeploymentsStubSettings.Builder saasDeploymentsSettingsBuilder =
+ *     SaasDeploymentsStubSettings.newBuilder();
+ * saasDeploymentsSettingsBuilder
+ *     .getSaasSettings()
+ *     .setRetrySettings(
+ *         saasDeploymentsSettingsBuilder
+ *             .getSaasSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ *             .setMaxAttempts(5)
+ *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ *             .setRetryDelayMultiplier(1.3)
+ *             .setRpcTimeoutMultiplier(1.5)
+ *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ *             .build());
+ * SaasDeploymentsStubSettings saasDeploymentsSettings = saasDeploymentsSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class SaasDeploymentsStubSettings 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 + listSaasSettings; + private final UnaryCallSettings getSaasSettings; + private final UnaryCallSettings createSaasSettings; + private final UnaryCallSettings updateSaasSettings; + private final UnaryCallSettings deleteSaasSettings; + private final PagedCallSettings + listTenantsSettings; + private final UnaryCallSettings getTenantSettings; + private final UnaryCallSettings createTenantSettings; + private final UnaryCallSettings updateTenantSettings; + private final UnaryCallSettings deleteTenantSettings; + private final PagedCallSettings< + ListUnitKindsRequest, ListUnitKindsResponse, ListUnitKindsPagedResponse> + listUnitKindsSettings; + private final UnaryCallSettings getUnitKindSettings; + private final UnaryCallSettings createUnitKindSettings; + private final UnaryCallSettings updateUnitKindSettings; + private final UnaryCallSettings deleteUnitKindSettings; + private final PagedCallSettings + listUnitsSettings; + private final UnaryCallSettings getUnitSettings; + private final UnaryCallSettings createUnitSettings; + private final UnaryCallSettings updateUnitSettings; + private final UnaryCallSettings deleteUnitSettings; + private final PagedCallSettings< + ListUnitOperationsRequest, ListUnitOperationsResponse, ListUnitOperationsPagedResponse> + listUnitOperationsSettings; + private final UnaryCallSettings getUnitOperationSettings; + private final UnaryCallSettings + createUnitOperationSettings; + private final UnaryCallSettings + updateUnitOperationSettings; + private final UnaryCallSettings deleteUnitOperationSettings; + private final PagedCallSettings< + ListReleasesRequest, ListReleasesResponse, ListReleasesPagedResponse> + listReleasesSettings; + private final UnaryCallSettings getReleaseSettings; + private final UnaryCallSettings createReleaseSettings; + private final UnaryCallSettings updateReleaseSettings; + private final UnaryCallSettings deleteReleaseSettings; + private final PagedCallSettings< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; + private final UnaryCallSettings getLocationSettings; + + private static final PagedListDescriptor + LIST_SAAS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListSaasRequest injectToken(ListSaasRequest payload, String token) { + return ListSaasRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListSaasRequest injectPageSize(ListSaasRequest payload, int pageSize) { + return ListSaasRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListSaasRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListSaasResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListSaasResponse payload) { + return payload.getSaasList(); + } + }; + + private static final PagedListDescriptor + LIST_TENANTS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListTenantsRequest injectToken(ListTenantsRequest payload, String token) { + return ListTenantsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListTenantsRequest injectPageSize(ListTenantsRequest payload, int pageSize) { + return ListTenantsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListTenantsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListTenantsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListTenantsResponse payload) { + return payload.getTenantsList(); + } + }; + + private static final PagedListDescriptor + LIST_UNIT_KINDS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListUnitKindsRequest injectToken(ListUnitKindsRequest payload, String token) { + return ListUnitKindsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListUnitKindsRequest injectPageSize(ListUnitKindsRequest payload, int pageSize) { + return ListUnitKindsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListUnitKindsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListUnitKindsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListUnitKindsResponse payload) { + return payload.getUnitKindsList(); + } + }; + + private static final PagedListDescriptor + LIST_UNITS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListUnitsRequest injectToken(ListUnitsRequest payload, String token) { + return ListUnitsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListUnitsRequest injectPageSize(ListUnitsRequest payload, int pageSize) { + return ListUnitsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListUnitsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListUnitsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListUnitsResponse payload) { + return payload.getUnitsList(); + } + }; + + private static final PagedListDescriptor< + ListUnitOperationsRequest, ListUnitOperationsResponse, UnitOperation> + LIST_UNIT_OPERATIONS_PAGE_STR_DESC = + new PagedListDescriptor< + ListUnitOperationsRequest, ListUnitOperationsResponse, UnitOperation>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListUnitOperationsRequest injectToken( + ListUnitOperationsRequest payload, String token) { + return ListUnitOperationsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListUnitOperationsRequest injectPageSize( + ListUnitOperationsRequest payload, int pageSize) { + return ListUnitOperationsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListUnitOperationsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListUnitOperationsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListUnitOperationsResponse payload) { + return payload.getUnitOperationsList(); + } + }; + + private static final PagedListDescriptor + LIST_RELEASES_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListReleasesRequest injectToken(ListReleasesRequest payload, String token) { + return ListReleasesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListReleasesRequest injectPageSize(ListReleasesRequest payload, int pageSize) { + return ListReleasesRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListReleasesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListReleasesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListReleasesResponse payload) { + return payload.getReleasesList(); + } + }; + + private static final PagedListDescriptor + LIST_LOCATIONS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListLocationsRequest injectToken(ListLocationsRequest payload, String token) { + return ListLocationsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListLocationsRequest injectPageSize(ListLocationsRequest payload, int pageSize) { + return ListLocationsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListLocationsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListLocationsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListLocationsResponse payload) { + return payload.getLocationsList(); + } + }; + + private static final PagedListResponseFactory< + ListSaasRequest, ListSaasResponse, ListSaasPagedResponse> + LIST_SAAS_PAGE_STR_FACT = + new PagedListResponseFactory() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListSaasRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_SAAS_PAGE_STR_DESC, request, context); + return ListSaasPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListTenantsRequest, ListTenantsResponse, ListTenantsPagedResponse> + LIST_TENANTS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListTenantsRequest, ListTenantsResponse, ListTenantsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListTenantsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_TENANTS_PAGE_STR_DESC, request, context); + return ListTenantsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListUnitKindsRequest, ListUnitKindsResponse, ListUnitKindsPagedResponse> + LIST_UNIT_KINDS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListUnitKindsRequest, ListUnitKindsResponse, ListUnitKindsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListUnitKindsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_UNIT_KINDS_PAGE_STR_DESC, request, context); + return ListUnitKindsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListUnitsRequest, ListUnitsResponse, ListUnitsPagedResponse> + LIST_UNITS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListUnitsRequest, ListUnitsResponse, ListUnitsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListUnitsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_UNITS_PAGE_STR_DESC, request, context); + return ListUnitsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListUnitOperationsRequest, ListUnitOperationsResponse, ListUnitOperationsPagedResponse> + LIST_UNIT_OPERATIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListUnitOperationsRequest, + ListUnitOperationsResponse, + ListUnitOperationsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListUnitOperationsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_UNIT_OPERATIONS_PAGE_STR_DESC, request, context); + return ListUnitOperationsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListReleasesRequest, ListReleasesResponse, ListReleasesPagedResponse> + LIST_RELEASES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListReleasesRequest, ListReleasesResponse, ListReleasesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListReleasesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_RELEASES_PAGE_STR_DESC, request, context); + return ListReleasesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + LIST_LOCATIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListLocationsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_LOCATIONS_PAGE_STR_DESC, request, context); + return ListLocationsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to listSaas. */ + public PagedCallSettings + listSaasSettings() { + return listSaasSettings; + } + + /** Returns the object with the settings used for calls to getSaas. */ + public UnaryCallSettings getSaasSettings() { + return getSaasSettings; + } + + /** Returns the object with the settings used for calls to createSaas. */ + public UnaryCallSettings createSaasSettings() { + return createSaasSettings; + } + + /** Returns the object with the settings used for calls to updateSaas. */ + public UnaryCallSettings updateSaasSettings() { + return updateSaasSettings; + } + + /** Returns the object with the settings used for calls to deleteSaas. */ + public UnaryCallSettings deleteSaasSettings() { + return deleteSaasSettings; + } + + /** Returns the object with the settings used for calls to listTenants. */ + public PagedCallSettings + listTenantsSettings() { + return listTenantsSettings; + } + + /** Returns the object with the settings used for calls to getTenant. */ + public UnaryCallSettings getTenantSettings() { + return getTenantSettings; + } + + /** Returns the object with the settings used for calls to createTenant. */ + public UnaryCallSettings createTenantSettings() { + return createTenantSettings; + } + + /** Returns the object with the settings used for calls to updateTenant. */ + public UnaryCallSettings updateTenantSettings() { + return updateTenantSettings; + } + + /** Returns the object with the settings used for calls to deleteTenant. */ + public UnaryCallSettings deleteTenantSettings() { + return deleteTenantSettings; + } + + /** Returns the object with the settings used for calls to listUnitKinds. */ + public PagedCallSettings + listUnitKindsSettings() { + return listUnitKindsSettings; + } + + /** Returns the object with the settings used for calls to getUnitKind. */ + public UnaryCallSettings getUnitKindSettings() { + return getUnitKindSettings; + } + + /** Returns the object with the settings used for calls to createUnitKind. */ + public UnaryCallSettings createUnitKindSettings() { + return createUnitKindSettings; + } + + /** Returns the object with the settings used for calls to updateUnitKind. */ + public UnaryCallSettings updateUnitKindSettings() { + return updateUnitKindSettings; + } + + /** Returns the object with the settings used for calls to deleteUnitKind. */ + public UnaryCallSettings deleteUnitKindSettings() { + return deleteUnitKindSettings; + } + + /** Returns the object with the settings used for calls to listUnits. */ + public PagedCallSettings + listUnitsSettings() { + return listUnitsSettings; + } + + /** Returns the object with the settings used for calls to getUnit. */ + public UnaryCallSettings getUnitSettings() { + return getUnitSettings; + } + + /** Returns the object with the settings used for calls to createUnit. */ + public UnaryCallSettings createUnitSettings() { + return createUnitSettings; + } + + /** Returns the object with the settings used for calls to updateUnit. */ + public UnaryCallSettings updateUnitSettings() { + return updateUnitSettings; + } + + /** Returns the object with the settings used for calls to deleteUnit. */ + public UnaryCallSettings deleteUnitSettings() { + return deleteUnitSettings; + } + + /** Returns the object with the settings used for calls to listUnitOperations. */ + public PagedCallSettings< + ListUnitOperationsRequest, ListUnitOperationsResponse, ListUnitOperationsPagedResponse> + listUnitOperationsSettings() { + return listUnitOperationsSettings; + } + + /** Returns the object with the settings used for calls to getUnit. */ + public UnaryCallSettings getUnitOperationSettings() { + return getUnitOperationSettings; + } + + /** Returns the object with the settings used for calls to createUnit. */ + public UnaryCallSettings + createUnitOperationSettings() { + return createUnitOperationSettings; + } + + /** Returns the object with the settings used for calls to updateUnit. */ + public UnaryCallSettings + updateUnitOperationSettings() { + return updateUnitOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteUnit. */ + public UnaryCallSettings deleteUnitOperationSettings() { + return deleteUnitOperationSettings; + } + + /** Returns the object with the settings used for calls to listReleases. */ + public PagedCallSettings + listReleasesSettings() { + return listReleasesSettings; + } + + /** Returns the object with the settings used for calls to getRelease. */ + public UnaryCallSettings getReleaseSettings() { + return getReleaseSettings; + } + + /** Returns the object with the settings used for calls to createRelease. */ + public UnaryCallSettings createReleaseSettings() { + return createReleaseSettings; + } + + /** Returns the object with the settings used for calls to updateRelease. */ + public UnaryCallSettings updateReleaseSettings() { + return updateReleaseSettings; + } + + /** Returns the object with the settings used for calls to deleteRelease. */ + public UnaryCallSettings deleteReleaseSettings() { + return deleteReleaseSettings; + } + + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return getLocationSettings; + } + + public SaasDeploymentsStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcSaasDeploymentsStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonSaasDeploymentsStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "saasservicemgmt"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") + public static String getDefaultEndpoint() { + return "saasservicemgmt.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "saasservicemgmt.mtls.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) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(SaasDeploymentsStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(SaasDeploymentsStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return SaasDeploymentsStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** 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 SaasDeploymentsStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + listSaasSettings = settingsBuilder.listSaasSettings().build(); + getSaasSettings = settingsBuilder.getSaasSettings().build(); + createSaasSettings = settingsBuilder.createSaasSettings().build(); + updateSaasSettings = settingsBuilder.updateSaasSettings().build(); + deleteSaasSettings = settingsBuilder.deleteSaasSettings().build(); + listTenantsSettings = settingsBuilder.listTenantsSettings().build(); + getTenantSettings = settingsBuilder.getTenantSettings().build(); + createTenantSettings = settingsBuilder.createTenantSettings().build(); + updateTenantSettings = settingsBuilder.updateTenantSettings().build(); + deleteTenantSettings = settingsBuilder.deleteTenantSettings().build(); + listUnitKindsSettings = settingsBuilder.listUnitKindsSettings().build(); + getUnitKindSettings = settingsBuilder.getUnitKindSettings().build(); + createUnitKindSettings = settingsBuilder.createUnitKindSettings().build(); + updateUnitKindSettings = settingsBuilder.updateUnitKindSettings().build(); + deleteUnitKindSettings = settingsBuilder.deleteUnitKindSettings().build(); + listUnitsSettings = settingsBuilder.listUnitsSettings().build(); + getUnitSettings = settingsBuilder.getUnitSettings().build(); + createUnitSettings = settingsBuilder.createUnitSettings().build(); + updateUnitSettings = settingsBuilder.updateUnitSettings().build(); + deleteUnitSettings = settingsBuilder.deleteUnitSettings().build(); + listUnitOperationsSettings = settingsBuilder.listUnitOperationsSettings().build(); + getUnitOperationSettings = settingsBuilder.getUnitOperationSettings().build(); + createUnitOperationSettings = settingsBuilder.createUnitOperationSettings().build(); + updateUnitOperationSettings = settingsBuilder.updateUnitOperationSettings().build(); + deleteUnitOperationSettings = settingsBuilder.deleteUnitOperationSettings().build(); + listReleasesSettings = settingsBuilder.listReleasesSettings().build(); + getReleaseSettings = settingsBuilder.getReleaseSettings().build(); + createReleaseSettings = settingsBuilder.createReleaseSettings().build(); + updateReleaseSettings = settingsBuilder.updateReleaseSettings().build(); + deleteReleaseSettings = settingsBuilder.deleteReleaseSettings().build(); + listLocationsSettings = settingsBuilder.listLocationsSettings().build(); + getLocationSettings = settingsBuilder.getLocationSettings().build(); + } + + /** Builder for SaasDeploymentsStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final PagedCallSettings.Builder< + ListSaasRequest, ListSaasResponse, ListSaasPagedResponse> + listSaasSettings; + private final UnaryCallSettings.Builder getSaasSettings; + private final UnaryCallSettings.Builder createSaasSettings; + private final UnaryCallSettings.Builder updateSaasSettings; + private final UnaryCallSettings.Builder deleteSaasSettings; + private final PagedCallSettings.Builder< + ListTenantsRequest, ListTenantsResponse, ListTenantsPagedResponse> + listTenantsSettings; + private final UnaryCallSettings.Builder getTenantSettings; + private final UnaryCallSettings.Builder createTenantSettings; + private final UnaryCallSettings.Builder updateTenantSettings; + private final UnaryCallSettings.Builder deleteTenantSettings; + private final PagedCallSettings.Builder< + ListUnitKindsRequest, ListUnitKindsResponse, ListUnitKindsPagedResponse> + listUnitKindsSettings; + private final UnaryCallSettings.Builder getUnitKindSettings; + private final UnaryCallSettings.Builder createUnitKindSettings; + private final UnaryCallSettings.Builder updateUnitKindSettings; + private final UnaryCallSettings.Builder deleteUnitKindSettings; + private final PagedCallSettings.Builder< + ListUnitsRequest, ListUnitsResponse, ListUnitsPagedResponse> + listUnitsSettings; + private final UnaryCallSettings.Builder getUnitSettings; + private final UnaryCallSettings.Builder createUnitSettings; + private final UnaryCallSettings.Builder updateUnitSettings; + private final UnaryCallSettings.Builder deleteUnitSettings; + private final PagedCallSettings.Builder< + ListUnitOperationsRequest, ListUnitOperationsResponse, ListUnitOperationsPagedResponse> + listUnitOperationsSettings; + private final UnaryCallSettings.Builder + getUnitOperationSettings; + private final UnaryCallSettings.Builder + createUnitOperationSettings; + private final UnaryCallSettings.Builder + updateUnitOperationSettings; + private final UnaryCallSettings.Builder + deleteUnitOperationSettings; + private final PagedCallSettings.Builder< + ListReleasesRequest, ListReleasesResponse, ListReleasesPagedResponse> + listReleasesSettings; + private final UnaryCallSettings.Builder getReleaseSettings; + private final UnaryCallSettings.Builder createReleaseSettings; + private final UnaryCallSettings.Builder updateReleaseSettings; + private final UnaryCallSettings.Builder deleteReleaseSettings; + private final PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; + private final UnaryCallSettings.Builder getLocationSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "retry_policy_1_codes", + ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); + definitions.put( + "retry_policy_0_codes", + ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); + definitions.put( + "no_retry_4_codes", ImmutableSet.copyOf(Lists.newArrayList())); + definitions.put( + "no_retry_5_codes", ImmutableSet.copyOf(Lists.newArrayList())); + definitions.put("no_retry_codes", 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() + .setInitialRetryDelayDuration(Duration.ofMillis(1000L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelayDuration(Duration.ofMillis(10000L)) + .setInitialRpcTimeoutDuration(Duration.ofMillis(80000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ofMillis(80000L)) + .setTotalTimeoutDuration(Duration.ofMillis(80000L)) + .build(); + definitions.put("retry_policy_1_params", settings); + settings = + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(1000L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelayDuration(Duration.ofMillis(10000L)) + .setInitialRpcTimeoutDuration(Duration.ofMillis(30000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ofMillis(30000L)) + .setTotalTimeoutDuration(Duration.ofMillis(30000L)) + .build(); + definitions.put("retry_policy_0_params", settings); + settings = + RetrySettings.newBuilder() + .setInitialRpcTimeoutDuration(Duration.ofMillis(30000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ofMillis(30000L)) + .setTotalTimeoutDuration(Duration.ofMillis(30000L)) + .build(); + definitions.put("no_retry_4_params", settings); + settings = + RetrySettings.newBuilder() + .setInitialRpcTimeoutDuration(Duration.ofMillis(80000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ofMillis(80000L)) + .setTotalTimeoutDuration(Duration.ofMillis(80000L)) + .build(); + definitions.put("no_retry_5_params", settings); + settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); + definitions.put("no_retry_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + listSaasSettings = PagedCallSettings.newBuilder(LIST_SAAS_PAGE_STR_FACT); + getSaasSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createSaasSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateSaasSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteSaasSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listTenantsSettings = PagedCallSettings.newBuilder(LIST_TENANTS_PAGE_STR_FACT); + getTenantSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createTenantSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateTenantSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteTenantSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listUnitKindsSettings = PagedCallSettings.newBuilder(LIST_UNIT_KINDS_PAGE_STR_FACT); + getUnitKindSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createUnitKindSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateUnitKindSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteUnitKindSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listUnitsSettings = PagedCallSettings.newBuilder(LIST_UNITS_PAGE_STR_FACT); + getUnitSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createUnitSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateUnitSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteUnitSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listUnitOperationsSettings = PagedCallSettings.newBuilder(LIST_UNIT_OPERATIONS_PAGE_STR_FACT); + getUnitOperationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createUnitOperationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateUnitOperationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteUnitOperationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listReleasesSettings = PagedCallSettings.newBuilder(LIST_RELEASES_PAGE_STR_FACT); + getReleaseSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createReleaseSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateReleaseSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteReleaseSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); + getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + listSaasSettings, + getSaasSettings, + createSaasSettings, + updateSaasSettings, + deleteSaasSettings, + listTenantsSettings, + getTenantSettings, + createTenantSettings, + updateTenantSettings, + deleteTenantSettings, + listUnitKindsSettings, + getUnitKindSettings, + createUnitKindSettings, + updateUnitKindSettings, + deleteUnitKindSettings, + listUnitsSettings, + getUnitSettings, + createUnitSettings, + updateUnitSettings, + deleteUnitSettings, + listUnitOperationsSettings, + getUnitOperationSettings, + createUnitOperationSettings, + updateUnitOperationSettings, + deleteUnitOperationSettings, + listReleasesSettings, + getReleaseSettings, + createReleaseSettings, + updateReleaseSettings, + deleteReleaseSettings, + listLocationsSettings, + getLocationSettings); + initDefaults(this); + } + + protected Builder(SaasDeploymentsStubSettings settings) { + super(settings); + + listSaasSettings = settings.listSaasSettings.toBuilder(); + getSaasSettings = settings.getSaasSettings.toBuilder(); + createSaasSettings = settings.createSaasSettings.toBuilder(); + updateSaasSettings = settings.updateSaasSettings.toBuilder(); + deleteSaasSettings = settings.deleteSaasSettings.toBuilder(); + listTenantsSettings = settings.listTenantsSettings.toBuilder(); + getTenantSettings = settings.getTenantSettings.toBuilder(); + createTenantSettings = settings.createTenantSettings.toBuilder(); + updateTenantSettings = settings.updateTenantSettings.toBuilder(); + deleteTenantSettings = settings.deleteTenantSettings.toBuilder(); + listUnitKindsSettings = settings.listUnitKindsSettings.toBuilder(); + getUnitKindSettings = settings.getUnitKindSettings.toBuilder(); + createUnitKindSettings = settings.createUnitKindSettings.toBuilder(); + updateUnitKindSettings = settings.updateUnitKindSettings.toBuilder(); + deleteUnitKindSettings = settings.deleteUnitKindSettings.toBuilder(); + listUnitsSettings = settings.listUnitsSettings.toBuilder(); + getUnitSettings = settings.getUnitSettings.toBuilder(); + createUnitSettings = settings.createUnitSettings.toBuilder(); + updateUnitSettings = settings.updateUnitSettings.toBuilder(); + deleteUnitSettings = settings.deleteUnitSettings.toBuilder(); + listUnitOperationsSettings = settings.listUnitOperationsSettings.toBuilder(); + getUnitOperationSettings = settings.getUnitOperationSettings.toBuilder(); + createUnitOperationSettings = settings.createUnitOperationSettings.toBuilder(); + updateUnitOperationSettings = settings.updateUnitOperationSettings.toBuilder(); + deleteUnitOperationSettings = settings.deleteUnitOperationSettings.toBuilder(); + listReleasesSettings = settings.listReleasesSettings.toBuilder(); + getReleaseSettings = settings.getReleaseSettings.toBuilder(); + createReleaseSettings = settings.createReleaseSettings.toBuilder(); + updateReleaseSettings = settings.updateReleaseSettings.toBuilder(); + deleteReleaseSettings = settings.deleteReleaseSettings.toBuilder(); + listLocationsSettings = settings.listLocationsSettings.toBuilder(); + getLocationSettings = settings.getLocationSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + listSaasSettings, + getSaasSettings, + createSaasSettings, + updateSaasSettings, + deleteSaasSettings, + listTenantsSettings, + getTenantSettings, + createTenantSettings, + updateTenantSettings, + deleteTenantSettings, + listUnitKindsSettings, + getUnitKindSettings, + createUnitKindSettings, + updateUnitKindSettings, + deleteUnitKindSettings, + listUnitsSettings, + getUnitSettings, + createUnitSettings, + updateUnitSettings, + deleteUnitSettings, + listUnitOperationsSettings, + getUnitOperationSettings, + createUnitOperationSettings, + updateUnitOperationSettings, + deleteUnitOperationSettings, + listReleasesSettings, + getReleaseSettings, + createReleaseSettings, + updateReleaseSettings, + deleteReleaseSettings, + listLocationsSettings, + getLocationSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .listSaasSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + + builder + .getSaasSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createSaasSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_4_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_4_params")); + + builder + .updateSaasSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_4_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_4_params")); + + builder + .deleteSaasSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listTenantsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + + builder + .getTenantSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createTenantSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_4_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_4_params")); + + builder + .updateTenantSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_4_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_4_params")); + + builder + .deleteTenantSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listUnitKindsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + + builder + .getUnitKindSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createUnitKindSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_4_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_4_params")); + + builder + .updateUnitKindSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_5_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_5_params")); + + builder + .deleteUnitKindSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + + builder + .listUnitsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + + builder + .getUnitSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createUnitSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_4_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_4_params")); + + builder + .updateUnitSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_4_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_4_params")); + + builder + .deleteUnitSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listUnitOperationsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + + builder + .getUnitOperationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createUnitOperationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_4_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_4_params")); + + builder + .updateUnitOperationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_4_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_4_params")); + + builder + .deleteUnitOperationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listReleasesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + + builder + .getReleaseSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createReleaseSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_4_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_4_params")); + + builder + .updateReleaseSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_4_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_4_params")); + + builder + .deleteReleaseSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listLocationsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getLocationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + return builder; + } + + /** + * 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) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to listSaas. */ + public PagedCallSettings.Builder + listSaasSettings() { + return listSaasSettings; + } + + /** Returns the builder for the settings used for calls to getSaas. */ + public UnaryCallSettings.Builder getSaasSettings() { + return getSaasSettings; + } + + /** Returns the builder for the settings used for calls to createSaas. */ + public UnaryCallSettings.Builder createSaasSettings() { + return createSaasSettings; + } + + /** Returns the builder for the settings used for calls to updateSaas. */ + public UnaryCallSettings.Builder updateSaasSettings() { + return updateSaasSettings; + } + + /** Returns the builder for the settings used for calls to deleteSaas. */ + public UnaryCallSettings.Builder deleteSaasSettings() { + return deleteSaasSettings; + } + + /** Returns the builder for the settings used for calls to listTenants. */ + public PagedCallSettings.Builder< + ListTenantsRequest, ListTenantsResponse, ListTenantsPagedResponse> + listTenantsSettings() { + return listTenantsSettings; + } + + /** Returns the builder for the settings used for calls to getTenant. */ + public UnaryCallSettings.Builder getTenantSettings() { + return getTenantSettings; + } + + /** Returns the builder for the settings used for calls to createTenant. */ + public UnaryCallSettings.Builder createTenantSettings() { + return createTenantSettings; + } + + /** Returns the builder for the settings used for calls to updateTenant. */ + public UnaryCallSettings.Builder updateTenantSettings() { + return updateTenantSettings; + } + + /** Returns the builder for the settings used for calls to deleteTenant. */ + public UnaryCallSettings.Builder deleteTenantSettings() { + return deleteTenantSettings; + } + + /** Returns the builder for the settings used for calls to listUnitKinds. */ + public PagedCallSettings.Builder< + ListUnitKindsRequest, ListUnitKindsResponse, ListUnitKindsPagedResponse> + listUnitKindsSettings() { + return listUnitKindsSettings; + } + + /** Returns the builder for the settings used for calls to getUnitKind. */ + public UnaryCallSettings.Builder getUnitKindSettings() { + return getUnitKindSettings; + } + + /** Returns the builder for the settings used for calls to createUnitKind. */ + public UnaryCallSettings.Builder createUnitKindSettings() { + return createUnitKindSettings; + } + + /** Returns the builder for the settings used for calls to updateUnitKind. */ + public UnaryCallSettings.Builder updateUnitKindSettings() { + return updateUnitKindSettings; + } + + /** Returns the builder for the settings used for calls to deleteUnitKind. */ + public UnaryCallSettings.Builder deleteUnitKindSettings() { + return deleteUnitKindSettings; + } + + /** Returns the builder for the settings used for calls to listUnits. */ + public PagedCallSettings.Builder + listUnitsSettings() { + return listUnitsSettings; + } + + /** Returns the builder for the settings used for calls to getUnit. */ + public UnaryCallSettings.Builder getUnitSettings() { + return getUnitSettings; + } + + /** Returns the builder for the settings used for calls to createUnit. */ + public UnaryCallSettings.Builder createUnitSettings() { + return createUnitSettings; + } + + /** Returns the builder for the settings used for calls to updateUnit. */ + public UnaryCallSettings.Builder updateUnitSettings() { + return updateUnitSettings; + } + + /** Returns the builder for the settings used for calls to deleteUnit. */ + public UnaryCallSettings.Builder deleteUnitSettings() { + return deleteUnitSettings; + } + + /** Returns the builder for the settings used for calls to listUnitOperations. */ + public PagedCallSettings.Builder< + ListUnitOperationsRequest, ListUnitOperationsResponse, ListUnitOperationsPagedResponse> + listUnitOperationsSettings() { + return listUnitOperationsSettings; + } + + /** Returns the builder for the settings used for calls to getUnit. */ + public UnaryCallSettings.Builder + getUnitOperationSettings() { + return getUnitOperationSettings; + } + + /** Returns the builder for the settings used for calls to createUnit. */ + public UnaryCallSettings.Builder + createUnitOperationSettings() { + return createUnitOperationSettings; + } + + /** Returns the builder for the settings used for calls to updateUnit. */ + public UnaryCallSettings.Builder + updateUnitOperationSettings() { + return updateUnitOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteUnit. */ + public UnaryCallSettings.Builder + deleteUnitOperationSettings() { + return deleteUnitOperationSettings; + } + + /** Returns the builder for the settings used for calls to listReleases. */ + public PagedCallSettings.Builder< + ListReleasesRequest, ListReleasesResponse, ListReleasesPagedResponse> + listReleasesSettings() { + return listReleasesSettings; + } + + /** Returns the builder for the settings used for calls to getRelease. */ + public UnaryCallSettings.Builder getReleaseSettings() { + return getReleaseSettings; + } + + /** Returns the builder for the settings used for calls to createRelease. */ + public UnaryCallSettings.Builder createReleaseSettings() { + return createReleaseSettings; + } + + /** Returns the builder for the settings used for calls to updateRelease. */ + public UnaryCallSettings.Builder updateReleaseSettings() { + return updateReleaseSettings; + } + + /** Returns the builder for the settings used for calls to deleteRelease. */ + public UnaryCallSettings.Builder deleteReleaseSettings() { + return deleteReleaseSettings; + } + + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the builder for the settings used for calls to getLocation. */ + public UnaryCallSettings.Builder getLocationSettings() { + return getLocationSettings; + } + + @Override + public SaasDeploymentsStubSettings build() throws IOException { + return new SaasDeploymentsStubSettings(this); + } + } +} diff --git a/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/stub/SaasRolloutsStub.java b/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/stub/SaasRolloutsStub.java new file mode 100644 index 000000000000..a772120dafc4 --- /dev/null +++ b/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/stub/SaasRolloutsStub.java @@ -0,0 +1,122 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.stub; + +import static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsClient.ListLocationsPagedResponse; +import static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsClient.ListRolloutKindsPagedResponse; +import static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsClient.ListRolloutsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutKindRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutKindRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutKindRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsResponse; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsResponse; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutKindRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutRequest; +import com.google.protobuf.Empty; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the SaasRollouts service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public abstract class SaasRolloutsStub implements BackgroundResource { + + public UnaryCallable listRolloutsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listRolloutsPagedCallable()"); + } + + public UnaryCallable listRolloutsCallable() { + throw new UnsupportedOperationException("Not implemented: listRolloutsCallable()"); + } + + public UnaryCallable getRolloutCallable() { + throw new UnsupportedOperationException("Not implemented: getRolloutCallable()"); + } + + public UnaryCallable createRolloutCallable() { + throw new UnsupportedOperationException("Not implemented: createRolloutCallable()"); + } + + public UnaryCallable updateRolloutCallable() { + throw new UnsupportedOperationException("Not implemented: updateRolloutCallable()"); + } + + public UnaryCallable deleteRolloutCallable() { + throw new UnsupportedOperationException("Not implemented: deleteRolloutCallable()"); + } + + public UnaryCallable + listRolloutKindsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listRolloutKindsPagedCallable()"); + } + + public UnaryCallable + listRolloutKindsCallable() { + throw new UnsupportedOperationException("Not implemented: listRolloutKindsCallable()"); + } + + public UnaryCallable getRolloutKindCallable() { + throw new UnsupportedOperationException("Not implemented: getRolloutKindCallable()"); + } + + public UnaryCallable createRolloutKindCallable() { + throw new UnsupportedOperationException("Not implemented: createRolloutKindCallable()"); + } + + public UnaryCallable updateRolloutKindCallable() { + throw new UnsupportedOperationException("Not implemented: updateRolloutKindCallable()"); + } + + public UnaryCallable deleteRolloutKindCallable() { + throw new UnsupportedOperationException("Not implemented: deleteRolloutKindCallable()"); + } + + public UnaryCallable + listLocationsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); + } + + public UnaryCallable listLocationsCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsCallable()"); + } + + public UnaryCallable getLocationCallable() { + throw new UnsupportedOperationException("Not implemented: getLocationCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/stub/SaasRolloutsStubSettings.java b/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/stub/SaasRolloutsStubSettings.java new file mode 100644 index 000000000000..94bd890e1a53 --- /dev/null +++ b/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/stub/SaasRolloutsStubSettings.java @@ -0,0 +1,830 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.stub; + +import static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsClient.ListLocationsPagedResponse; +import static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsClient.ListRolloutKindsPagedResponse; +import static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsClient.ListRolloutsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.BetaApi; +import com.google.api.core.ObsoleteApi; +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.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +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.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.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutKindRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutKindRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutKindRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsResponse; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsResponse; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutKindRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutRequest; +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.protobuf.Empty; +import java.io.IOException; +import java.time.Duration; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link SaasRolloutsStub}. + * + *

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

    + *
  • The default service address (saasservicemgmt.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 + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getRollout: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * SaasRolloutsStubSettings.Builder saasRolloutsSettingsBuilder =
+ *     SaasRolloutsStubSettings.newBuilder();
+ * saasRolloutsSettingsBuilder
+ *     .getRolloutSettings()
+ *     .setRetrySettings(
+ *         saasRolloutsSettingsBuilder
+ *             .getRolloutSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ *             .setMaxAttempts(5)
+ *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ *             .setRetryDelayMultiplier(1.3)
+ *             .setRpcTimeoutMultiplier(1.5)
+ *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ *             .build());
+ * SaasRolloutsStubSettings saasRolloutsSettings = saasRolloutsSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class SaasRolloutsStubSettings 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< + ListRolloutsRequest, ListRolloutsResponse, ListRolloutsPagedResponse> + listRolloutsSettings; + private final UnaryCallSettings getRolloutSettings; + private final UnaryCallSettings createRolloutSettings; + private final UnaryCallSettings updateRolloutSettings; + private final UnaryCallSettings deleteRolloutSettings; + private final PagedCallSettings< + ListRolloutKindsRequest, ListRolloutKindsResponse, ListRolloutKindsPagedResponse> + listRolloutKindsSettings; + private final UnaryCallSettings getRolloutKindSettings; + private final UnaryCallSettings createRolloutKindSettings; + private final UnaryCallSettings updateRolloutKindSettings; + private final UnaryCallSettings deleteRolloutKindSettings; + private final PagedCallSettings< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; + private final UnaryCallSettings getLocationSettings; + + private static final PagedListDescriptor + LIST_ROLLOUTS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListRolloutsRequest injectToken(ListRolloutsRequest payload, String token) { + return ListRolloutsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListRolloutsRequest injectPageSize(ListRolloutsRequest payload, int pageSize) { + return ListRolloutsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListRolloutsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListRolloutsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListRolloutsResponse payload) { + return payload.getRolloutsList(); + } + }; + + private static final PagedListDescriptor< + ListRolloutKindsRequest, ListRolloutKindsResponse, RolloutKind> + LIST_ROLLOUT_KINDS_PAGE_STR_DESC = + new PagedListDescriptor< + ListRolloutKindsRequest, ListRolloutKindsResponse, RolloutKind>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListRolloutKindsRequest injectToken( + ListRolloutKindsRequest payload, String token) { + return ListRolloutKindsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListRolloutKindsRequest injectPageSize( + ListRolloutKindsRequest payload, int pageSize) { + return ListRolloutKindsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListRolloutKindsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListRolloutKindsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListRolloutKindsResponse payload) { + return payload.getRolloutKindsList(); + } + }; + + private static final PagedListDescriptor + LIST_LOCATIONS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListLocationsRequest injectToken(ListLocationsRequest payload, String token) { + return ListLocationsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListLocationsRequest injectPageSize(ListLocationsRequest payload, int pageSize) { + return ListLocationsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListLocationsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListLocationsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListLocationsResponse payload) { + return payload.getLocationsList(); + } + }; + + private static final PagedListResponseFactory< + ListRolloutsRequest, ListRolloutsResponse, ListRolloutsPagedResponse> + LIST_ROLLOUTS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListRolloutsRequest, ListRolloutsResponse, ListRolloutsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListRolloutsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_ROLLOUTS_PAGE_STR_DESC, request, context); + return ListRolloutsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListRolloutKindsRequest, ListRolloutKindsResponse, ListRolloutKindsPagedResponse> + LIST_ROLLOUT_KINDS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListRolloutKindsRequest, ListRolloutKindsResponse, ListRolloutKindsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListRolloutKindsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_ROLLOUT_KINDS_PAGE_STR_DESC, request, context); + return ListRolloutKindsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + LIST_LOCATIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListLocationsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_LOCATIONS_PAGE_STR_DESC, request, context); + return ListLocationsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to listRollouts. */ + public PagedCallSettings + listRolloutsSettings() { + return listRolloutsSettings; + } + + /** Returns the object with the settings used for calls to getRollout. */ + public UnaryCallSettings getRolloutSettings() { + return getRolloutSettings; + } + + /** Returns the object with the settings used for calls to createRollout. */ + public UnaryCallSettings createRolloutSettings() { + return createRolloutSettings; + } + + /** Returns the object with the settings used for calls to updateRollout. */ + public UnaryCallSettings updateRolloutSettings() { + return updateRolloutSettings; + } + + /** Returns the object with the settings used for calls to deleteRollout. */ + public UnaryCallSettings deleteRolloutSettings() { + return deleteRolloutSettings; + } + + /** Returns the object with the settings used for calls to listRolloutKinds. */ + public PagedCallSettings< + ListRolloutKindsRequest, ListRolloutKindsResponse, ListRolloutKindsPagedResponse> + listRolloutKindsSettings() { + return listRolloutKindsSettings; + } + + /** Returns the object with the settings used for calls to getRolloutKind. */ + public UnaryCallSettings getRolloutKindSettings() { + return getRolloutKindSettings; + } + + /** Returns the object with the settings used for calls to createRolloutKind. */ + public UnaryCallSettings createRolloutKindSettings() { + return createRolloutKindSettings; + } + + /** Returns the object with the settings used for calls to updateRolloutKind. */ + public UnaryCallSettings updateRolloutKindSettings() { + return updateRolloutKindSettings; + } + + /** Returns the object with the settings used for calls to deleteRolloutKind. */ + public UnaryCallSettings deleteRolloutKindSettings() { + return deleteRolloutKindSettings; + } + + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return getLocationSettings; + } + + public SaasRolloutsStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcSaasRolloutsStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonSaasRolloutsStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "saasservicemgmt"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") + public static String getDefaultEndpoint() { + return "saasservicemgmt.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "saasservicemgmt.mtls.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) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(SaasRolloutsStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(SaasRolloutsStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return SaasRolloutsStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** 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 SaasRolloutsStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + listRolloutsSettings = settingsBuilder.listRolloutsSettings().build(); + getRolloutSettings = settingsBuilder.getRolloutSettings().build(); + createRolloutSettings = settingsBuilder.createRolloutSettings().build(); + updateRolloutSettings = settingsBuilder.updateRolloutSettings().build(); + deleteRolloutSettings = settingsBuilder.deleteRolloutSettings().build(); + listRolloutKindsSettings = settingsBuilder.listRolloutKindsSettings().build(); + getRolloutKindSettings = settingsBuilder.getRolloutKindSettings().build(); + createRolloutKindSettings = settingsBuilder.createRolloutKindSettings().build(); + updateRolloutKindSettings = settingsBuilder.updateRolloutKindSettings().build(); + deleteRolloutKindSettings = settingsBuilder.deleteRolloutKindSettings().build(); + listLocationsSettings = settingsBuilder.listLocationsSettings().build(); + getLocationSettings = settingsBuilder.getLocationSettings().build(); + } + + /** Builder for SaasRolloutsStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final PagedCallSettings.Builder< + ListRolloutsRequest, ListRolloutsResponse, ListRolloutsPagedResponse> + listRolloutsSettings; + private final UnaryCallSettings.Builder getRolloutSettings; + private final UnaryCallSettings.Builder createRolloutSettings; + private final UnaryCallSettings.Builder updateRolloutSettings; + private final UnaryCallSettings.Builder deleteRolloutSettings; + private final PagedCallSettings.Builder< + ListRolloutKindsRequest, ListRolloutKindsResponse, ListRolloutKindsPagedResponse> + listRolloutKindsSettings; + private final UnaryCallSettings.Builder + getRolloutKindSettings; + private final UnaryCallSettings.Builder + createRolloutKindSettings; + private final UnaryCallSettings.Builder + updateRolloutKindSettings; + private final UnaryCallSettings.Builder + deleteRolloutKindSettings; + private final PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; + private final UnaryCallSettings.Builder getLocationSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "retry_policy_2_codes", + ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); + definitions.put( + "no_retry_6_codes", ImmutableSet.copyOf(Lists.newArrayList())); + definitions.put( + "retry_policy_3_codes", + ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); + definitions.put("no_retry_codes", 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() + .setInitialRetryDelayDuration(Duration.ofMillis(1000L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelayDuration(Duration.ofMillis(10000L)) + .setInitialRpcTimeoutDuration(Duration.ofMillis(60000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ofMillis(60000L)) + .setTotalTimeoutDuration(Duration.ofMillis(60000L)) + .build(); + definitions.put("retry_policy_2_params", settings); + settings = + RetrySettings.newBuilder() + .setInitialRpcTimeoutDuration(Duration.ofMillis(60000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ofMillis(60000L)) + .setTotalTimeoutDuration(Duration.ofMillis(60000L)) + .build(); + definitions.put("no_retry_6_params", settings); + settings = + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(1000L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelayDuration(Duration.ofMillis(10000L)) + .setInitialRpcTimeoutDuration(Duration.ofMillis(540000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ofMillis(540000L)) + .setTotalTimeoutDuration(Duration.ofMillis(540000L)) + .build(); + definitions.put("retry_policy_3_params", settings); + settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); + definitions.put("no_retry_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + listRolloutsSettings = PagedCallSettings.newBuilder(LIST_ROLLOUTS_PAGE_STR_FACT); + getRolloutSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createRolloutSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateRolloutSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteRolloutSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listRolloutKindsSettings = PagedCallSettings.newBuilder(LIST_ROLLOUT_KINDS_PAGE_STR_FACT); + getRolloutKindSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createRolloutKindSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateRolloutKindSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteRolloutKindSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); + getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + listRolloutsSettings, + getRolloutSettings, + createRolloutSettings, + updateRolloutSettings, + deleteRolloutSettings, + listRolloutKindsSettings, + getRolloutKindSettings, + createRolloutKindSettings, + updateRolloutKindSettings, + deleteRolloutKindSettings, + listLocationsSettings, + getLocationSettings); + initDefaults(this); + } + + protected Builder(SaasRolloutsStubSettings settings) { + super(settings); + + listRolloutsSettings = settings.listRolloutsSettings.toBuilder(); + getRolloutSettings = settings.getRolloutSettings.toBuilder(); + createRolloutSettings = settings.createRolloutSettings.toBuilder(); + updateRolloutSettings = settings.updateRolloutSettings.toBuilder(); + deleteRolloutSettings = settings.deleteRolloutSettings.toBuilder(); + listRolloutKindsSettings = settings.listRolloutKindsSettings.toBuilder(); + getRolloutKindSettings = settings.getRolloutKindSettings.toBuilder(); + createRolloutKindSettings = settings.createRolloutKindSettings.toBuilder(); + updateRolloutKindSettings = settings.updateRolloutKindSettings.toBuilder(); + deleteRolloutKindSettings = settings.deleteRolloutKindSettings.toBuilder(); + listLocationsSettings = settings.listLocationsSettings.toBuilder(); + getLocationSettings = settings.getLocationSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + listRolloutsSettings, + getRolloutSettings, + createRolloutSettings, + updateRolloutSettings, + deleteRolloutSettings, + listRolloutKindsSettings, + getRolloutKindSettings, + createRolloutKindSettings, + updateRolloutKindSettings, + deleteRolloutKindSettings, + listLocationsSettings, + getLocationSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .listRolloutsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_2_params")); + + builder + .getRolloutSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_2_params")); + + builder + .createRolloutSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_6_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_6_params")); + + builder + .updateRolloutSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_6_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_6_params")); + + builder + .deleteRolloutSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_3_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_3_params")); + + builder + .listRolloutKindsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_2_params")); + + builder + .getRolloutKindSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_2_params")); + + builder + .createRolloutKindSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_6_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_6_params")); + + builder + .updateRolloutKindSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_6_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_6_params")); + + builder + .deleteRolloutKindSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_2_params")); + + builder + .listLocationsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getLocationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + return builder; + } + + /** + * 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) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to listRollouts. */ + public PagedCallSettings.Builder< + ListRolloutsRequest, ListRolloutsResponse, ListRolloutsPagedResponse> + listRolloutsSettings() { + return listRolloutsSettings; + } + + /** Returns the builder for the settings used for calls to getRollout. */ + public UnaryCallSettings.Builder getRolloutSettings() { + return getRolloutSettings; + } + + /** Returns the builder for the settings used for calls to createRollout. */ + public UnaryCallSettings.Builder createRolloutSettings() { + return createRolloutSettings; + } + + /** Returns the builder for the settings used for calls to updateRollout. */ + public UnaryCallSettings.Builder updateRolloutSettings() { + return updateRolloutSettings; + } + + /** Returns the builder for the settings used for calls to deleteRollout. */ + public UnaryCallSettings.Builder deleteRolloutSettings() { + return deleteRolloutSettings; + } + + /** Returns the builder for the settings used for calls to listRolloutKinds. */ + public PagedCallSettings.Builder< + ListRolloutKindsRequest, ListRolloutKindsResponse, ListRolloutKindsPagedResponse> + listRolloutKindsSettings() { + return listRolloutKindsSettings; + } + + /** Returns the builder for the settings used for calls to getRolloutKind. */ + public UnaryCallSettings.Builder getRolloutKindSettings() { + return getRolloutKindSettings; + } + + /** Returns the builder for the settings used for calls to createRolloutKind. */ + public UnaryCallSettings.Builder + createRolloutKindSettings() { + return createRolloutKindSettings; + } + + /** Returns the builder for the settings used for calls to updateRolloutKind. */ + public UnaryCallSettings.Builder + updateRolloutKindSettings() { + return updateRolloutKindSettings; + } + + /** Returns the builder for the settings used for calls to deleteRolloutKind. */ + public UnaryCallSettings.Builder deleteRolloutKindSettings() { + return deleteRolloutKindSettings; + } + + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the builder for the settings used for calls to getLocation. */ + public UnaryCallSettings.Builder getLocationSettings() { + return getLocationSettings; + } + + @Override + public SaasRolloutsStubSettings build() throws IOException { + return new SaasRolloutsStubSettings(this); + } + } +} diff --git a/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/resources/META-INF/native-image/com.google.cloud.saasplatform.saasservicemgmt.v1beta1/reflect-config.json b/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/resources/META-INF/native-image/com.google.cloud.saasplatform.saasservicemgmt.v1beta1/reflect-config.json new file mode 100644 index 000000000000..99bf06f00c79 --- /dev/null +++ b/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/resources/META-INF/native-image/com.google.cloud.saasplatform.saasservicemgmt.v1beta1/reflect-config.json @@ -0,0 +1,2855 @@ +[ + { + "name": "com.google.api.ClientLibraryDestination", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ClientLibraryOrganization", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ClientLibrarySettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ClientLibrarySettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CommonLanguageSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CommonLanguageSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CppSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CppSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CustomHttpPattern", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CustomHttpPattern$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.DotnetSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.DotnetSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.FieldBehavior", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.FieldInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.FieldInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.FieldInfo$Format", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.GoSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.GoSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Http", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Http$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.HttpRule", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.HttpRule$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.JavaSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.JavaSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.LaunchStage", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings$LongRunning", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings$LongRunning$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.NodeSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.NodeSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PhpSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PhpSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Publishing", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Publishing$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PythonSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PythonSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PythonSettings$ExperimentalFeatures", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PythonSettings$ExperimentalFeatures$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor$History", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor$Style", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceReference", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceReference$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.RubySettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.RubySettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.TypeReference", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.TypeReference$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.GetLocationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.GetLocationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.ListLocationsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.ListLocationsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.ListLocationsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.ListLocationsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.Location", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.Location$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Aggregate", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Aggregate$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Blueprint", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Blueprint$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateReleaseRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateReleaseRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutKindRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutKindRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateSaasRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateSaasRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateTenantRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateTenantRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitKindRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitKindRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteReleaseRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteReleaseRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutKindRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutKindRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteSaasRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteSaasRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteTenantRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteTenantRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitKindRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitKindRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Dependency", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Dependency$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Deprovision", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Deprovision$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ErrorBudget", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ErrorBudget$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.FromMapping", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.FromMapping$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetReleaseRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetReleaseRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutKindRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutKindRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetSaasRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetSaasRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetTenantRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetTenantRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitKindRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitKindRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Location", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Location$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Provision", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Provision$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release$ReleaseRequirements", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release$ReleaseRequirements$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout$RolloutState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutAction", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl$RunRolloutActionParams", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl$RunRolloutActionParams$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind$UpdateUnitKindStrategy", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutStats", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutStats$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Schedule", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Schedule$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ToMapping", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ToMapping$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit$MaintenanceSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit$MaintenanceSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit$ManagementMode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit$SystemManagedState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit$UnitState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition$Status", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition$Type", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation$UnitOperationState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition$Status", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition$Type", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationErrorCategory", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable$Type", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateReleaseRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateReleaseRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutKindRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutKindRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateSaasRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateSaasRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateTenantRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateTenantRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitKindRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitKindRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Upgrade", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Upgrade$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Any", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Any$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ExtensionRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ExtensionRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ReservedRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ReservedRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$Edition", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$EnumReservedRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$EnumReservedRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Declaration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Declaration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$VerificationState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$EnumType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$FieldPresence", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$JsonFormat", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$MessageEncoding", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$RepeatedFieldEncoding", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$Utf8Validation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults$FeatureSetEditionDefault", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults$FeatureSetEditionDefault$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Label", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Type", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$CType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$EditionDefault", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$EditionDefault$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$JSType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$OptionRetention", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$OptionTargetType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorSet", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorSet$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileOptions$OptimizeMode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation$Semantic", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MessageOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MessageOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodOptions$IdempotencyLevel", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Location", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Location$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$NamePart", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$NamePart$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Duration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Duration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Empty", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Empty$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.FieldMask", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.FieldMask$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Timestamp", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Timestamp$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + } +] \ No newline at end of file diff --git a/java-saasservicemgmt/google-cloud-saasservicemgmt/src/test/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/MockLocations.java b/java-saasservicemgmt/google-cloud-saasservicemgmt/src/test/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/MockLocations.java new file mode 100644 index 000000000000..08f3fd4dccb7 --- /dev/null +++ b/java-saasservicemgmt/google-cloud-saasservicemgmt/src/test/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/MockLocations.java @@ -0,0 +1,59 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1; + +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; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockLocations implements MockGrpcService { + private final MockLocationsImpl serviceImpl; + + public MockLocations() { + serviceImpl = new MockLocationsImpl(); + } + + @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/java-saasservicemgmt/google-cloud-saasservicemgmt/src/test/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/MockLocationsImpl.java b/java-saasservicemgmt/google-cloud-saasservicemgmt/src/test/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/MockLocationsImpl.java new file mode 100644 index 000000000000..34f8b6d018ef --- /dev/null +++ b/java-saasservicemgmt/google-cloud-saasservicemgmt/src/test/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/MockLocationsImpl.java @@ -0,0 +1,105 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1; + +import com.google.api.core.BetaApi; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.location.LocationsGrpc.LocationsImplBase; +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; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockLocationsImpl extends LocationsImplBase { + private List requests; + private Queue responses; + + public MockLocationsImpl() { + 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 listLocations( + ListLocationsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListLocationsResponse) { + requests.add(request); + responseObserver.onNext(((ListLocationsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListLocations, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListLocationsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getLocation(GetLocationRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Location) { + requests.add(request); + responseObserver.onNext(((Location) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetLocation, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Location.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-saasservicemgmt/google-cloud-saasservicemgmt/src/test/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/MockSaasDeployments.java b/java-saasservicemgmt/google-cloud-saasservicemgmt/src/test/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/MockSaasDeployments.java new file mode 100644 index 000000000000..631af7641e47 --- /dev/null +++ b/java-saasservicemgmt/google-cloud-saasservicemgmt/src/test/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/MockSaasDeployments.java @@ -0,0 +1,59 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1; + +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; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockSaasDeployments implements MockGrpcService { + private final MockSaasDeploymentsImpl serviceImpl; + + public MockSaasDeployments() { + serviceImpl = new MockSaasDeploymentsImpl(); + } + + @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/java-saasservicemgmt/google-cloud-saasservicemgmt/src/test/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/MockSaasDeploymentsImpl.java b/java-saasservicemgmt/google-cloud-saasservicemgmt/src/test/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/MockSaasDeploymentsImpl.java new file mode 100644 index 000000000000..3debb2ed7e85 --- /dev/null +++ b/java-saasservicemgmt/google-cloud-saasservicemgmt/src/test/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/MockSaasDeploymentsImpl.java @@ -0,0 +1,676 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1; + +import com.google.api.core.BetaApi; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsGrpc.SaasDeploymentsImplBase; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Empty; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockSaasDeploymentsImpl extends SaasDeploymentsImplBase { + private List requests; + private Queue responses; + + public MockSaasDeploymentsImpl() { + 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 listSaas(ListSaasRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListSaasResponse) { + requests.add(request); + responseObserver.onNext(((ListSaasResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListSaas, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListSaasResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getSaas(GetSaasRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Saas) { + requests.add(request); + responseObserver.onNext(((Saas) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetSaas, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Saas.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createSaas(CreateSaasRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Saas) { + requests.add(request); + responseObserver.onNext(((Saas) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateSaas, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Saas.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateSaas(UpdateSaasRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Saas) { + requests.add(request); + responseObserver.onNext(((Saas) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateSaas, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Saas.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteSaas(DeleteSaasRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteSaas, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listTenants( + ListTenantsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListTenantsResponse) { + requests.add(request); + responseObserver.onNext(((ListTenantsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListTenants, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListTenantsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getTenant(GetTenantRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Tenant) { + requests.add(request); + responseObserver.onNext(((Tenant) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetTenant, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Tenant.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createTenant(CreateTenantRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Tenant) { + requests.add(request); + responseObserver.onNext(((Tenant) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateTenant, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Tenant.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateTenant(UpdateTenantRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Tenant) { + requests.add(request); + responseObserver.onNext(((Tenant) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateTenant, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Tenant.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteTenant(DeleteTenantRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteTenant, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listUnitKinds( + ListUnitKindsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListUnitKindsResponse) { + requests.add(request); + responseObserver.onNext(((ListUnitKindsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListUnitKinds, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListUnitKindsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getUnitKind(GetUnitKindRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof UnitKind) { + requests.add(request); + responseObserver.onNext(((UnitKind) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetUnitKind, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + UnitKind.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createUnitKind( + CreateUnitKindRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof UnitKind) { + requests.add(request); + responseObserver.onNext(((UnitKind) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateUnitKind, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + UnitKind.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateUnitKind( + UpdateUnitKindRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof UnitKind) { + requests.add(request); + responseObserver.onNext(((UnitKind) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateUnitKind, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + UnitKind.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteUnitKind( + DeleteUnitKindRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteUnitKind, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listUnits( + ListUnitsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListUnitsResponse) { + requests.add(request); + responseObserver.onNext(((ListUnitsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListUnits, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListUnitsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getUnit(GetUnitRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Unit) { + requests.add(request); + responseObserver.onNext(((Unit) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetUnit, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Unit.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createUnit(CreateUnitRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Unit) { + requests.add(request); + responseObserver.onNext(((Unit) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateUnit, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Unit.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateUnit(UpdateUnitRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Unit) { + requests.add(request); + responseObserver.onNext(((Unit) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateUnit, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Unit.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteUnit(DeleteUnitRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteUnit, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listUnitOperations( + ListUnitOperationsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListUnitOperationsResponse) { + requests.add(request); + responseObserver.onNext(((ListUnitOperationsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListUnitOperations, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListUnitOperationsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getUnitOperation( + GetUnitOperationRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof UnitOperation) { + requests.add(request); + responseObserver.onNext(((UnitOperation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetUnitOperation, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + UnitOperation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createUnitOperation( + CreateUnitOperationRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof UnitOperation) { + requests.add(request); + responseObserver.onNext(((UnitOperation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateUnitOperation, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + UnitOperation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateUnitOperation( + UpdateUnitOperationRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof UnitOperation) { + requests.add(request); + responseObserver.onNext(((UnitOperation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateUnitOperation, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + UnitOperation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteUnitOperation( + DeleteUnitOperationRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteUnitOperation, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listReleases( + ListReleasesRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListReleasesResponse) { + requests.add(request); + responseObserver.onNext(((ListReleasesResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListReleases, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListReleasesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getRelease(GetReleaseRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Release) { + requests.add(request); + responseObserver.onNext(((Release) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetRelease, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Release.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createRelease( + CreateReleaseRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Release) { + requests.add(request); + responseObserver.onNext(((Release) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateRelease, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Release.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateRelease( + UpdateReleaseRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Release) { + requests.add(request); + responseObserver.onNext(((Release) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateRelease, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Release.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteRelease(DeleteReleaseRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteRelease, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-saasservicemgmt/google-cloud-saasservicemgmt/src/test/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/MockSaasRollouts.java b/java-saasservicemgmt/google-cloud-saasservicemgmt/src/test/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/MockSaasRollouts.java new file mode 100644 index 000000000000..062a8119a0bc --- /dev/null +++ b/java-saasservicemgmt/google-cloud-saasservicemgmt/src/test/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/MockSaasRollouts.java @@ -0,0 +1,59 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1; + +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; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockSaasRollouts implements MockGrpcService { + private final MockSaasRolloutsImpl serviceImpl; + + public MockSaasRollouts() { + serviceImpl = new MockSaasRolloutsImpl(); + } + + @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/java-saasservicemgmt/google-cloud-saasservicemgmt/src/test/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/MockSaasRolloutsImpl.java b/java-saasservicemgmt/google-cloud-saasservicemgmt/src/test/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/MockSaasRolloutsImpl.java new file mode 100644 index 000000000000..3f555065bdb9 --- /dev/null +++ b/java-saasservicemgmt/google-cloud-saasservicemgmt/src/test/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/MockSaasRolloutsImpl.java @@ -0,0 +1,269 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1; + +import com.google.api.core.BetaApi; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsGrpc.SaasRolloutsImplBase; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Empty; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockSaasRolloutsImpl extends SaasRolloutsImplBase { + private List requests; + private Queue responses; + + public MockSaasRolloutsImpl() { + 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 listRollouts( + ListRolloutsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListRolloutsResponse) { + requests.add(request); + responseObserver.onNext(((ListRolloutsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListRollouts, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListRolloutsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getRollout(GetRolloutRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Rollout) { + requests.add(request); + responseObserver.onNext(((Rollout) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetRollout, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Rollout.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createRollout( + CreateRolloutRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Rollout) { + requests.add(request); + responseObserver.onNext(((Rollout) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateRollout, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Rollout.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateRollout( + UpdateRolloutRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Rollout) { + requests.add(request); + responseObserver.onNext(((Rollout) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateRollout, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Rollout.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteRollout(DeleteRolloutRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteRollout, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listRolloutKinds( + ListRolloutKindsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListRolloutKindsResponse) { + requests.add(request); + responseObserver.onNext(((ListRolloutKindsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListRolloutKinds, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListRolloutKindsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getRolloutKind( + GetRolloutKindRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof RolloutKind) { + requests.add(request); + responseObserver.onNext(((RolloutKind) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetRolloutKind, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + RolloutKind.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createRolloutKind( + CreateRolloutKindRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof RolloutKind) { + requests.add(request); + responseObserver.onNext(((RolloutKind) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateRolloutKind, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + RolloutKind.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateRolloutKind( + UpdateRolloutKindRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof RolloutKind) { + requests.add(request); + responseObserver.onNext(((RolloutKind) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateRolloutKind, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + RolloutKind.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteRolloutKind( + DeleteRolloutKindRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteRolloutKind, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-saasservicemgmt/google-cloud-saasservicemgmt/src/test/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/SaasDeploymentsClientHttpJsonTest.java b/java-saasservicemgmt/google-cloud-saasservicemgmt/src/test/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/SaasDeploymentsClientHttpJsonTest.java new file mode 100644 index 000000000000..413ca9e78bdb --- /dev/null +++ b/java-saasservicemgmt/google-cloud-saasservicemgmt/src/test/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/SaasDeploymentsClientHttpJsonTest.java @@ -0,0 +1,3221 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1; + +import static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient.ListLocationsPagedResponse; +import static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient.ListReleasesPagedResponse; +import static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient.ListSaasPagedResponse; +import static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient.ListTenantsPagedResponse; +import static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient.ListUnitKindsPagedResponse; +import static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient.ListUnitOperationsPagedResponse; +import static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient.ListUnitsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.stub.HttpJsonSaasDeploymentsStub; +import com.google.common.collect.Lists; +import com.google.protobuf.Any; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class SaasDeploymentsClientHttpJsonTest { + private static MockHttpService mockService; + private static SaasDeploymentsClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonSaasDeploymentsStub.getMethodDescriptors(), + SaasDeploymentsSettings.getDefaultEndpoint()); + SaasDeploymentsSettings settings = + SaasDeploymentsSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + SaasDeploymentsSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = SaasDeploymentsClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void listSaasTest() throws Exception { + Saas responsesElement = Saas.newBuilder().build(); + ListSaasResponse expectedResponse = + ListSaasResponse.newBuilder() + .setNextPageToken("") + .addAllSaas(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListSaasPagedResponse pagedListResponse = client.listSaas(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSaasList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listSaasExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listSaas(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSaasTest2() throws Exception { + Saas responsesElement = Saas.newBuilder().build(); + ListSaasResponse expectedResponse = + ListSaasResponse.newBuilder() + .setNextPageToken("") + .addAllSaas(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListSaasPagedResponse pagedListResponse = client.listSaas(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSaasList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listSaasExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + client.listSaas(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSaasTest() throws Exception { + Saas expectedResponse = + Saas.newBuilder() + .setName(SaasName.of("[PROJECT]", "[LOCATION]", "[SAAS]").toString()) + .addAllLocations( + new ArrayList()) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setUid("uid115792") + .setEtag("etag3123477") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + SaasName name = SaasName.of("[PROJECT]", "[LOCATION]", "[SAAS]"); + + Saas actualResponse = client.getSaas(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getSaasExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SaasName name = SaasName.of("[PROJECT]", "[LOCATION]", "[SAAS]"); + client.getSaas(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSaasTest2() throws Exception { + Saas expectedResponse = + Saas.newBuilder() + .setName(SaasName.of("[PROJECT]", "[LOCATION]", "[SAAS]").toString()) + .addAllLocations( + new ArrayList()) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setUid("uid115792") + .setEtag("etag3123477") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-32/locations/location-32/saas/saa-32"; + + Saas actualResponse = client.getSaas(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getSaasExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-32/locations/location-32/saas/saa-32"; + client.getSaas(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createSaasTest() throws Exception { + Saas expectedResponse = + Saas.newBuilder() + .setName(SaasName.of("[PROJECT]", "[LOCATION]", "[SAAS]").toString()) + .addAllLocations( + new ArrayList()) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setUid("uid115792") + .setEtag("etag3123477") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Saas saas = Saas.newBuilder().build(); + String saasId = "saasId-910030789"; + + Saas actualResponse = client.createSaas(parent, saas, saasId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createSaasExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Saas saas = Saas.newBuilder().build(); + String saasId = "saasId-910030789"; + client.createSaas(parent, saas, saasId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createSaasTest2() throws Exception { + Saas expectedResponse = + Saas.newBuilder() + .setName(SaasName.of("[PROJECT]", "[LOCATION]", "[SAAS]").toString()) + .addAllLocations( + new ArrayList()) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setUid("uid115792") + .setEtag("etag3123477") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + Saas saas = Saas.newBuilder().build(); + String saasId = "saasId-910030789"; + + Saas actualResponse = client.createSaas(parent, saas, saasId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createSaasExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + Saas saas = Saas.newBuilder().build(); + String saasId = "saasId-910030789"; + client.createSaas(parent, saas, saasId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateSaasTest() throws Exception { + Saas expectedResponse = + Saas.newBuilder() + .setName(SaasName.of("[PROJECT]", "[LOCATION]", "[SAAS]").toString()) + .addAllLocations( + new ArrayList()) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setUid("uid115792") + .setEtag("etag3123477") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + Saas saas = + Saas.newBuilder() + .setName(SaasName.of("[PROJECT]", "[LOCATION]", "[SAAS]").toString()) + .addAllLocations( + new ArrayList()) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setUid("uid115792") + .setEtag("etag3123477") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Saas actualResponse = client.updateSaas(saas, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateSaasExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Saas saas = + Saas.newBuilder() + .setName(SaasName.of("[PROJECT]", "[LOCATION]", "[SAAS]").toString()) + .addAllLocations( + new ArrayList()) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setUid("uid115792") + .setEtag("etag3123477") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateSaas(saas, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteSaasTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + SaasName name = SaasName.of("[PROJECT]", "[LOCATION]", "[SAAS]"); + + client.deleteSaas(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteSaasExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SaasName name = SaasName.of("[PROJECT]", "[LOCATION]", "[SAAS]"); + client.deleteSaas(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteSaasTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-32/locations/location-32/saas/saa-32"; + + client.deleteSaas(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteSaasExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-32/locations/location-32/saas/saa-32"; + client.deleteSaas(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listTenantsTest() throws Exception { + Tenant responsesElement = Tenant.newBuilder().build(); + ListTenantsResponse expectedResponse = + ListTenantsResponse.newBuilder() + .setNextPageToken("") + .addAllTenants(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListTenantsPagedResponse pagedListResponse = client.listTenants(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getTenantsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listTenantsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listTenants(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listTenantsTest2() throws Exception { + Tenant responsesElement = Tenant.newBuilder().build(); + ListTenantsResponse expectedResponse = + ListTenantsResponse.newBuilder() + .setNextPageToken("") + .addAllTenants(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListTenantsPagedResponse pagedListResponse = client.listTenants(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getTenantsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listTenantsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + client.listTenants(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getTenantTest() throws Exception { + Tenant expectedResponse = + Tenant.newBuilder() + .setName(TenantName.of("[PROJECT]", "[LOCATION]", "[TENANT]").toString()) + .setConsumerResource("consumerResource-1539418588") + .setSaas(SaasName.of("[PROJECT]", "[LOCATION]", "[SAAS]").toString()) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setUid("uid115792") + .setEtag("etag3123477") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + TenantName name = TenantName.of("[PROJECT]", "[LOCATION]", "[TENANT]"); + + Tenant actualResponse = client.getTenant(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getTenantExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + TenantName name = TenantName.of("[PROJECT]", "[LOCATION]", "[TENANT]"); + client.getTenant(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getTenantTest2() throws Exception { + Tenant expectedResponse = + Tenant.newBuilder() + .setName(TenantName.of("[PROJECT]", "[LOCATION]", "[TENANT]").toString()) + .setConsumerResource("consumerResource-1539418588") + .setSaas(SaasName.of("[PROJECT]", "[LOCATION]", "[SAAS]").toString()) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setUid("uid115792") + .setEtag("etag3123477") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-2001/locations/location-2001/tenants/tenant-2001"; + + Tenant actualResponse = client.getTenant(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getTenantExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-2001/locations/location-2001/tenants/tenant-2001"; + client.getTenant(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createTenantTest() throws Exception { + Tenant expectedResponse = + Tenant.newBuilder() + .setName(TenantName.of("[PROJECT]", "[LOCATION]", "[TENANT]").toString()) + .setConsumerResource("consumerResource-1539418588") + .setSaas(SaasName.of("[PROJECT]", "[LOCATION]", "[SAAS]").toString()) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setUid("uid115792") + .setEtag("etag3123477") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Tenant tenant = Tenant.newBuilder().build(); + String tenantId = "tenantId-1306693787"; + + Tenant actualResponse = client.createTenant(parent, tenant, tenantId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createTenantExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Tenant tenant = Tenant.newBuilder().build(); + String tenantId = "tenantId-1306693787"; + client.createTenant(parent, tenant, tenantId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createTenantTest2() throws Exception { + Tenant expectedResponse = + Tenant.newBuilder() + .setName(TenantName.of("[PROJECT]", "[LOCATION]", "[TENANT]").toString()) + .setConsumerResource("consumerResource-1539418588") + .setSaas(SaasName.of("[PROJECT]", "[LOCATION]", "[SAAS]").toString()) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setUid("uid115792") + .setEtag("etag3123477") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + Tenant tenant = Tenant.newBuilder().build(); + String tenantId = "tenantId-1306693787"; + + Tenant actualResponse = client.createTenant(parent, tenant, tenantId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createTenantExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + Tenant tenant = Tenant.newBuilder().build(); + String tenantId = "tenantId-1306693787"; + client.createTenant(parent, tenant, tenantId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateTenantTest() throws Exception { + Tenant expectedResponse = + Tenant.newBuilder() + .setName(TenantName.of("[PROJECT]", "[LOCATION]", "[TENANT]").toString()) + .setConsumerResource("consumerResource-1539418588") + .setSaas(SaasName.of("[PROJECT]", "[LOCATION]", "[SAAS]").toString()) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setUid("uid115792") + .setEtag("etag3123477") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + Tenant tenant = + Tenant.newBuilder() + .setName(TenantName.of("[PROJECT]", "[LOCATION]", "[TENANT]").toString()) + .setConsumerResource("consumerResource-1539418588") + .setSaas(SaasName.of("[PROJECT]", "[LOCATION]", "[SAAS]").toString()) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setUid("uid115792") + .setEtag("etag3123477") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Tenant actualResponse = client.updateTenant(tenant, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateTenantExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Tenant tenant = + Tenant.newBuilder() + .setName(TenantName.of("[PROJECT]", "[LOCATION]", "[TENANT]").toString()) + .setConsumerResource("consumerResource-1539418588") + .setSaas(SaasName.of("[PROJECT]", "[LOCATION]", "[SAAS]").toString()) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setUid("uid115792") + .setEtag("etag3123477") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateTenant(tenant, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteTenantTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + TenantName name = TenantName.of("[PROJECT]", "[LOCATION]", "[TENANT]"); + + client.deleteTenant(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteTenantExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + TenantName name = TenantName.of("[PROJECT]", "[LOCATION]", "[TENANT]"); + client.deleteTenant(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteTenantTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-2001/locations/location-2001/tenants/tenant-2001"; + + client.deleteTenant(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteTenantExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-2001/locations/location-2001/tenants/tenant-2001"; + client.deleteTenant(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listUnitKindsTest() throws Exception { + UnitKind responsesElement = UnitKind.newBuilder().build(); + ListUnitKindsResponse expectedResponse = + ListUnitKindsResponse.newBuilder() + .setNextPageToken("") + .addAllUnitKinds(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListUnitKindsPagedResponse pagedListResponse = client.listUnitKinds(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getUnitKindsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listUnitKindsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listUnitKinds(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listUnitKindsTest2() throws Exception { + UnitKind responsesElement = UnitKind.newBuilder().build(); + ListUnitKindsResponse expectedResponse = + ListUnitKindsResponse.newBuilder() + .setNextPageToken("") + .addAllUnitKinds(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListUnitKindsPagedResponse pagedListResponse = client.listUnitKinds(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getUnitKindsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listUnitKindsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + client.listUnitKinds(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getUnitKindTest() throws Exception { + UnitKind expectedResponse = + UnitKind.newBuilder() + .setName(UnitKindName.of("[PROJECT]", "[LOCATION]", "[UNITKIND]").toString()) + .setDefaultRelease(ReleaseName.of("[PROJECT]", "[LOCATION]", "[RELEASE]").toString()) + .addAllDependencies(new ArrayList()) + .addAllInputVariableMappings(new ArrayList()) + .addAllOutputVariableMappings(new ArrayList()) + .setSaas(SaasName.of("[PROJECT]", "[LOCATION]", "[SAAS]").toString()) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setUid("uid115792") + .setEtag("etag3123477") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + UnitKindName name = UnitKindName.of("[PROJECT]", "[LOCATION]", "[UNITKIND]"); + + UnitKind actualResponse = client.getUnitKind(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getUnitKindExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + UnitKindName name = UnitKindName.of("[PROJECT]", "[LOCATION]", "[UNITKIND]"); + client.getUnitKind(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getUnitKindTest2() throws Exception { + UnitKind expectedResponse = + UnitKind.newBuilder() + .setName(UnitKindName.of("[PROJECT]", "[LOCATION]", "[UNITKIND]").toString()) + .setDefaultRelease(ReleaseName.of("[PROJECT]", "[LOCATION]", "[RELEASE]").toString()) + .addAllDependencies(new ArrayList()) + .addAllInputVariableMappings(new ArrayList()) + .addAllOutputVariableMappings(new ArrayList()) + .setSaas(SaasName.of("[PROJECT]", "[LOCATION]", "[SAAS]").toString()) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setUid("uid115792") + .setEtag("etag3123477") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-3583/locations/location-3583/unitKinds/unitKind-3583"; + + UnitKind actualResponse = client.getUnitKind(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getUnitKindExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-3583/locations/location-3583/unitKinds/unitKind-3583"; + client.getUnitKind(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createUnitKindTest() throws Exception { + UnitKind expectedResponse = + UnitKind.newBuilder() + .setName(UnitKindName.of("[PROJECT]", "[LOCATION]", "[UNITKIND]").toString()) + .setDefaultRelease(ReleaseName.of("[PROJECT]", "[LOCATION]", "[RELEASE]").toString()) + .addAllDependencies(new ArrayList()) + .addAllInputVariableMappings(new ArrayList()) + .addAllOutputVariableMappings(new ArrayList()) + .setSaas(SaasName.of("[PROJECT]", "[LOCATION]", "[SAAS]").toString()) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setUid("uid115792") + .setEtag("etag3123477") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + UnitKind unitKind = UnitKind.newBuilder().build(); + String unitKindId = "unitKindId1956463219"; + + UnitKind actualResponse = client.createUnitKind(parent, unitKind, unitKindId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createUnitKindExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + UnitKind unitKind = UnitKind.newBuilder().build(); + String unitKindId = "unitKindId1956463219"; + client.createUnitKind(parent, unitKind, unitKindId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createUnitKindTest2() throws Exception { + UnitKind expectedResponse = + UnitKind.newBuilder() + .setName(UnitKindName.of("[PROJECT]", "[LOCATION]", "[UNITKIND]").toString()) + .setDefaultRelease(ReleaseName.of("[PROJECT]", "[LOCATION]", "[RELEASE]").toString()) + .addAllDependencies(new ArrayList()) + .addAllInputVariableMappings(new ArrayList()) + .addAllOutputVariableMappings(new ArrayList()) + .setSaas(SaasName.of("[PROJECT]", "[LOCATION]", "[SAAS]").toString()) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setUid("uid115792") + .setEtag("etag3123477") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + UnitKind unitKind = UnitKind.newBuilder().build(); + String unitKindId = "unitKindId1956463219"; + + UnitKind actualResponse = client.createUnitKind(parent, unitKind, unitKindId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createUnitKindExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + UnitKind unitKind = UnitKind.newBuilder().build(); + String unitKindId = "unitKindId1956463219"; + client.createUnitKind(parent, unitKind, unitKindId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateUnitKindTest() throws Exception { + UnitKind expectedResponse = + UnitKind.newBuilder() + .setName(UnitKindName.of("[PROJECT]", "[LOCATION]", "[UNITKIND]").toString()) + .setDefaultRelease(ReleaseName.of("[PROJECT]", "[LOCATION]", "[RELEASE]").toString()) + .addAllDependencies(new ArrayList()) + .addAllInputVariableMappings(new ArrayList()) + .addAllOutputVariableMappings(new ArrayList()) + .setSaas(SaasName.of("[PROJECT]", "[LOCATION]", "[SAAS]").toString()) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setUid("uid115792") + .setEtag("etag3123477") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + UnitKind unitKind = + UnitKind.newBuilder() + .setName(UnitKindName.of("[PROJECT]", "[LOCATION]", "[UNITKIND]").toString()) + .setDefaultRelease(ReleaseName.of("[PROJECT]", "[LOCATION]", "[RELEASE]").toString()) + .addAllDependencies(new ArrayList()) + .addAllInputVariableMappings(new ArrayList()) + .addAllOutputVariableMappings(new ArrayList()) + .setSaas(SaasName.of("[PROJECT]", "[LOCATION]", "[SAAS]").toString()) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setUid("uid115792") + .setEtag("etag3123477") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + UnitKind actualResponse = client.updateUnitKind(unitKind, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateUnitKindExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + UnitKind unitKind = + UnitKind.newBuilder() + .setName(UnitKindName.of("[PROJECT]", "[LOCATION]", "[UNITKIND]").toString()) + .setDefaultRelease(ReleaseName.of("[PROJECT]", "[LOCATION]", "[RELEASE]").toString()) + .addAllDependencies(new ArrayList()) + .addAllInputVariableMappings(new ArrayList()) + .addAllOutputVariableMappings(new ArrayList()) + .setSaas(SaasName.of("[PROJECT]", "[LOCATION]", "[SAAS]").toString()) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setUid("uid115792") + .setEtag("etag3123477") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateUnitKind(unitKind, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteUnitKindTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + UnitKindName name = UnitKindName.of("[PROJECT]", "[LOCATION]", "[UNITKIND]"); + + client.deleteUnitKind(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteUnitKindExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + UnitKindName name = UnitKindName.of("[PROJECT]", "[LOCATION]", "[UNITKIND]"); + client.deleteUnitKind(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteUnitKindTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-3583/locations/location-3583/unitKinds/unitKind-3583"; + + client.deleteUnitKind(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteUnitKindExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-3583/locations/location-3583/unitKinds/unitKind-3583"; + client.deleteUnitKind(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listUnitsTest() throws Exception { + Unit responsesElement = Unit.newBuilder().build(); + ListUnitsResponse expectedResponse = + ListUnitsResponse.newBuilder() + .setNextPageToken("") + .addAllUnits(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListUnitsPagedResponse pagedListResponse = client.listUnits(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getUnitsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listUnitsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listUnits(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listUnitsTest2() throws Exception { + Unit responsesElement = Unit.newBuilder().build(); + ListUnitsResponse expectedResponse = + ListUnitsResponse.newBuilder() + .setNextPageToken("") + .addAllUnits(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListUnitsPagedResponse pagedListResponse = client.listUnits(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getUnitsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listUnitsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + client.listUnits(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getUnitTest() throws Exception { + Unit expectedResponse = + Unit.newBuilder() + .setName(UnitName.of("[PROJECT]", "[LOCATION]", "[UNIT]").toString()) + .setUnitKind(UnitKindName.of("[PROJECT]", "[LOCATION]", "[UNITKIND]").toString()) + .setRelease(ReleaseName.of("[PROJECT]", "[LOCATION]", "[RELEASE]").toString()) + .setTenant(TenantName.of("[PROJECT]", "[LOCATION]", "[TENANT]").toString()) + .addAllOngoingOperations(new ArrayList()) + .addAllPendingOperations(new ArrayList()) + .addAllScheduledOperations(new ArrayList()) + .addAllDependents(new ArrayList()) + .addAllDependencies(new ArrayList()) + .addAllInputVariables(new ArrayList()) + .addAllOutputVariables(new ArrayList()) + .setMaintenance(Unit.MaintenanceSettings.newBuilder().build()) + .addAllConditions(new ArrayList()) + .setSystemCleanupAt(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setUid("uid115792") + .setEtag("etag3123477") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + UnitName name = UnitName.of("[PROJECT]", "[LOCATION]", "[UNIT]"); + + Unit actualResponse = client.getUnit(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getUnitExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + UnitName name = UnitName.of("[PROJECT]", "[LOCATION]", "[UNIT]"); + client.getUnit(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getUnitTest2() throws Exception { + Unit expectedResponse = + Unit.newBuilder() + .setName(UnitName.of("[PROJECT]", "[LOCATION]", "[UNIT]").toString()) + .setUnitKind(UnitKindName.of("[PROJECT]", "[LOCATION]", "[UNITKIND]").toString()) + .setRelease(ReleaseName.of("[PROJECT]", "[LOCATION]", "[RELEASE]").toString()) + .setTenant(TenantName.of("[PROJECT]", "[LOCATION]", "[TENANT]").toString()) + .addAllOngoingOperations(new ArrayList()) + .addAllPendingOperations(new ArrayList()) + .addAllScheduledOperations(new ArrayList()) + .addAllDependents(new ArrayList()) + .addAllDependencies(new ArrayList()) + .addAllInputVariables(new ArrayList()) + .addAllOutputVariables(new ArrayList()) + .setMaintenance(Unit.MaintenanceSettings.newBuilder().build()) + .addAllConditions(new ArrayList()) + .setSystemCleanupAt(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setUid("uid115792") + .setEtag("etag3123477") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-1797/locations/location-1797/units/unit-1797"; + + Unit actualResponse = client.getUnit(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getUnitExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-1797/locations/location-1797/units/unit-1797"; + client.getUnit(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createUnitTest() throws Exception { + Unit expectedResponse = + Unit.newBuilder() + .setName(UnitName.of("[PROJECT]", "[LOCATION]", "[UNIT]").toString()) + .setUnitKind(UnitKindName.of("[PROJECT]", "[LOCATION]", "[UNITKIND]").toString()) + .setRelease(ReleaseName.of("[PROJECT]", "[LOCATION]", "[RELEASE]").toString()) + .setTenant(TenantName.of("[PROJECT]", "[LOCATION]", "[TENANT]").toString()) + .addAllOngoingOperations(new ArrayList()) + .addAllPendingOperations(new ArrayList()) + .addAllScheduledOperations(new ArrayList()) + .addAllDependents(new ArrayList()) + .addAllDependencies(new ArrayList()) + .addAllInputVariables(new ArrayList()) + .addAllOutputVariables(new ArrayList()) + .setMaintenance(Unit.MaintenanceSettings.newBuilder().build()) + .addAllConditions(new ArrayList()) + .setSystemCleanupAt(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setUid("uid115792") + .setEtag("etag3123477") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Unit unit = Unit.newBuilder().build(); + String unitId = "unitId-840527425"; + + Unit actualResponse = client.createUnit(parent, unit, unitId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createUnitExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Unit unit = Unit.newBuilder().build(); + String unitId = "unitId-840527425"; + client.createUnit(parent, unit, unitId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createUnitTest2() throws Exception { + Unit expectedResponse = + Unit.newBuilder() + .setName(UnitName.of("[PROJECT]", "[LOCATION]", "[UNIT]").toString()) + .setUnitKind(UnitKindName.of("[PROJECT]", "[LOCATION]", "[UNITKIND]").toString()) + .setRelease(ReleaseName.of("[PROJECT]", "[LOCATION]", "[RELEASE]").toString()) + .setTenant(TenantName.of("[PROJECT]", "[LOCATION]", "[TENANT]").toString()) + .addAllOngoingOperations(new ArrayList()) + .addAllPendingOperations(new ArrayList()) + .addAllScheduledOperations(new ArrayList()) + .addAllDependents(new ArrayList()) + .addAllDependencies(new ArrayList()) + .addAllInputVariables(new ArrayList()) + .addAllOutputVariables(new ArrayList()) + .setMaintenance(Unit.MaintenanceSettings.newBuilder().build()) + .addAllConditions(new ArrayList()) + .setSystemCleanupAt(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setUid("uid115792") + .setEtag("etag3123477") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + Unit unit = Unit.newBuilder().build(); + String unitId = "unitId-840527425"; + + Unit actualResponse = client.createUnit(parent, unit, unitId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createUnitExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + Unit unit = Unit.newBuilder().build(); + String unitId = "unitId-840527425"; + client.createUnit(parent, unit, unitId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateUnitTest() throws Exception { + Unit expectedResponse = + Unit.newBuilder() + .setName(UnitName.of("[PROJECT]", "[LOCATION]", "[UNIT]").toString()) + .setUnitKind(UnitKindName.of("[PROJECT]", "[LOCATION]", "[UNITKIND]").toString()) + .setRelease(ReleaseName.of("[PROJECT]", "[LOCATION]", "[RELEASE]").toString()) + .setTenant(TenantName.of("[PROJECT]", "[LOCATION]", "[TENANT]").toString()) + .addAllOngoingOperations(new ArrayList()) + .addAllPendingOperations(new ArrayList()) + .addAllScheduledOperations(new ArrayList()) + .addAllDependents(new ArrayList()) + .addAllDependencies(new ArrayList()) + .addAllInputVariables(new ArrayList()) + .addAllOutputVariables(new ArrayList()) + .setMaintenance(Unit.MaintenanceSettings.newBuilder().build()) + .addAllConditions(new ArrayList()) + .setSystemCleanupAt(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setUid("uid115792") + .setEtag("etag3123477") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + Unit unit = + Unit.newBuilder() + .setName(UnitName.of("[PROJECT]", "[LOCATION]", "[UNIT]").toString()) + .setUnitKind(UnitKindName.of("[PROJECT]", "[LOCATION]", "[UNITKIND]").toString()) + .setRelease(ReleaseName.of("[PROJECT]", "[LOCATION]", "[RELEASE]").toString()) + .setTenant(TenantName.of("[PROJECT]", "[LOCATION]", "[TENANT]").toString()) + .addAllOngoingOperations(new ArrayList()) + .addAllPendingOperations(new ArrayList()) + .addAllScheduledOperations(new ArrayList()) + .addAllDependents(new ArrayList()) + .addAllDependencies(new ArrayList()) + .addAllInputVariables(new ArrayList()) + .addAllOutputVariables(new ArrayList()) + .setMaintenance(Unit.MaintenanceSettings.newBuilder().build()) + .addAllConditions(new ArrayList()) + .setSystemCleanupAt(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setUid("uid115792") + .setEtag("etag3123477") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Unit actualResponse = client.updateUnit(unit, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateUnitExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Unit unit = + Unit.newBuilder() + .setName(UnitName.of("[PROJECT]", "[LOCATION]", "[UNIT]").toString()) + .setUnitKind(UnitKindName.of("[PROJECT]", "[LOCATION]", "[UNITKIND]").toString()) + .setRelease(ReleaseName.of("[PROJECT]", "[LOCATION]", "[RELEASE]").toString()) + .setTenant(TenantName.of("[PROJECT]", "[LOCATION]", "[TENANT]").toString()) + .addAllOngoingOperations(new ArrayList()) + .addAllPendingOperations(new ArrayList()) + .addAllScheduledOperations(new ArrayList()) + .addAllDependents(new ArrayList()) + .addAllDependencies(new ArrayList()) + .addAllInputVariables(new ArrayList()) + .addAllOutputVariables(new ArrayList()) + .setMaintenance(Unit.MaintenanceSettings.newBuilder().build()) + .addAllConditions(new ArrayList()) + .setSystemCleanupAt(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setUid("uid115792") + .setEtag("etag3123477") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateUnit(unit, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteUnitTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + UnitName name = UnitName.of("[PROJECT]", "[LOCATION]", "[UNIT]"); + + client.deleteUnit(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteUnitExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + UnitName name = UnitName.of("[PROJECT]", "[LOCATION]", "[UNIT]"); + client.deleteUnit(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteUnitTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-1797/locations/location-1797/units/unit-1797"; + + client.deleteUnit(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteUnitExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-1797/locations/location-1797/units/unit-1797"; + client.deleteUnit(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listUnitOperationsTest() throws Exception { + UnitOperation responsesElement = UnitOperation.newBuilder().build(); + ListUnitOperationsResponse expectedResponse = + ListUnitOperationsResponse.newBuilder() + .setNextPageToken("") + .addAllUnitOperations(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListUnitOperationsPagedResponse pagedListResponse = client.listUnitOperations(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getUnitOperationsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listUnitOperationsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listUnitOperations(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listUnitOperationsTest2() throws Exception { + UnitOperation responsesElement = UnitOperation.newBuilder().build(); + ListUnitOperationsResponse expectedResponse = + ListUnitOperationsResponse.newBuilder() + .setNextPageToken("") + .addAllUnitOperations(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListUnitOperationsPagedResponse pagedListResponse = client.listUnitOperations(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getUnitOperationsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listUnitOperationsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + client.listUnitOperations(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getUnitOperationTest() throws Exception { + UnitOperation expectedResponse = + UnitOperation.newBuilder() + .setName(UnitOperationName.of("[PROJECT]", "[LOCATION]", "[UNITOPERATION]").toString()) + .setUnit(UnitName.of("[PROJECT]", "[LOCATION]", "[UNIT]").toString()) + .setParentUnitOperation( + UnitOperationName.of("[PROJECT]", "[LOCATION]", "[UNITOPERATION]").toString()) + .setRollout(RolloutName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_ID]").toString()) + .setCancel(true) + .addAllConditions(new ArrayList()) + .setSchedule(Schedule.newBuilder().build()) + .setEngineState("engineState1690039151") + .setErrorCategory(UnitOperationErrorCategory.forNumber(0)) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setUid("uid115792") + .setEtag("etag3123477") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + UnitOperationName name = UnitOperationName.of("[PROJECT]", "[LOCATION]", "[UNITOPERATION]"); + + UnitOperation actualResponse = client.getUnitOperation(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getUnitOperationExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + UnitOperationName name = UnitOperationName.of("[PROJECT]", "[LOCATION]", "[UNITOPERATION]"); + client.getUnitOperation(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getUnitOperationTest2() throws Exception { + UnitOperation expectedResponse = + UnitOperation.newBuilder() + .setName(UnitOperationName.of("[PROJECT]", "[LOCATION]", "[UNITOPERATION]").toString()) + .setUnit(UnitName.of("[PROJECT]", "[LOCATION]", "[UNIT]").toString()) + .setParentUnitOperation( + UnitOperationName.of("[PROJECT]", "[LOCATION]", "[UNITOPERATION]").toString()) + .setRollout(RolloutName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_ID]").toString()) + .setCancel(true) + .addAllConditions(new ArrayList()) + .setSchedule(Schedule.newBuilder().build()) + .setEngineState("engineState1690039151") + .setErrorCategory(UnitOperationErrorCategory.forNumber(0)) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setUid("uid115792") + .setEtag("etag3123477") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-1088/locations/location-1088/unitOperations/unitOperation-1088"; + + UnitOperation actualResponse = client.getUnitOperation(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getUnitOperationExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-1088/locations/location-1088/unitOperations/unitOperation-1088"; + client.getUnitOperation(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createUnitOperationTest() throws Exception { + UnitOperation expectedResponse = + UnitOperation.newBuilder() + .setName(UnitOperationName.of("[PROJECT]", "[LOCATION]", "[UNITOPERATION]").toString()) + .setUnit(UnitName.of("[PROJECT]", "[LOCATION]", "[UNIT]").toString()) + .setParentUnitOperation( + UnitOperationName.of("[PROJECT]", "[LOCATION]", "[UNITOPERATION]").toString()) + .setRollout(RolloutName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_ID]").toString()) + .setCancel(true) + .addAllConditions(new ArrayList()) + .setSchedule(Schedule.newBuilder().build()) + .setEngineState("engineState1690039151") + .setErrorCategory(UnitOperationErrorCategory.forNumber(0)) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setUid("uid115792") + .setEtag("etag3123477") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + UnitOperation unitOperation = UnitOperation.newBuilder().build(); + String unitOperationId = "unitOperationId-638217026"; + + UnitOperation actualResponse = + client.createUnitOperation(parent, unitOperation, unitOperationId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createUnitOperationExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + UnitOperation unitOperation = UnitOperation.newBuilder().build(); + String unitOperationId = "unitOperationId-638217026"; + client.createUnitOperation(parent, unitOperation, unitOperationId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createUnitOperationTest2() throws Exception { + UnitOperation expectedResponse = + UnitOperation.newBuilder() + .setName(UnitOperationName.of("[PROJECT]", "[LOCATION]", "[UNITOPERATION]").toString()) + .setUnit(UnitName.of("[PROJECT]", "[LOCATION]", "[UNIT]").toString()) + .setParentUnitOperation( + UnitOperationName.of("[PROJECT]", "[LOCATION]", "[UNITOPERATION]").toString()) + .setRollout(RolloutName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_ID]").toString()) + .setCancel(true) + .addAllConditions(new ArrayList()) + .setSchedule(Schedule.newBuilder().build()) + .setEngineState("engineState1690039151") + .setErrorCategory(UnitOperationErrorCategory.forNumber(0)) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setUid("uid115792") + .setEtag("etag3123477") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + UnitOperation unitOperation = UnitOperation.newBuilder().build(); + String unitOperationId = "unitOperationId-638217026"; + + UnitOperation actualResponse = + client.createUnitOperation(parent, unitOperation, unitOperationId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createUnitOperationExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + UnitOperation unitOperation = UnitOperation.newBuilder().build(); + String unitOperationId = "unitOperationId-638217026"; + client.createUnitOperation(parent, unitOperation, unitOperationId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateUnitOperationTest() throws Exception { + UnitOperation expectedResponse = + UnitOperation.newBuilder() + .setName(UnitOperationName.of("[PROJECT]", "[LOCATION]", "[UNITOPERATION]").toString()) + .setUnit(UnitName.of("[PROJECT]", "[LOCATION]", "[UNIT]").toString()) + .setParentUnitOperation( + UnitOperationName.of("[PROJECT]", "[LOCATION]", "[UNITOPERATION]").toString()) + .setRollout(RolloutName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_ID]").toString()) + .setCancel(true) + .addAllConditions(new ArrayList()) + .setSchedule(Schedule.newBuilder().build()) + .setEngineState("engineState1690039151") + .setErrorCategory(UnitOperationErrorCategory.forNumber(0)) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setUid("uid115792") + .setEtag("etag3123477") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + UnitOperation unitOperation = + UnitOperation.newBuilder() + .setName(UnitOperationName.of("[PROJECT]", "[LOCATION]", "[UNITOPERATION]").toString()) + .setUnit(UnitName.of("[PROJECT]", "[LOCATION]", "[UNIT]").toString()) + .setParentUnitOperation( + UnitOperationName.of("[PROJECT]", "[LOCATION]", "[UNITOPERATION]").toString()) + .setRollout(RolloutName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_ID]").toString()) + .setCancel(true) + .addAllConditions(new ArrayList()) + .setSchedule(Schedule.newBuilder().build()) + .setEngineState("engineState1690039151") + .setErrorCategory(UnitOperationErrorCategory.forNumber(0)) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setUid("uid115792") + .setEtag("etag3123477") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + UnitOperation actualResponse = client.updateUnitOperation(unitOperation, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateUnitOperationExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + UnitOperation unitOperation = + UnitOperation.newBuilder() + .setName( + UnitOperationName.of("[PROJECT]", "[LOCATION]", "[UNITOPERATION]").toString()) + .setUnit(UnitName.of("[PROJECT]", "[LOCATION]", "[UNIT]").toString()) + .setParentUnitOperation( + UnitOperationName.of("[PROJECT]", "[LOCATION]", "[UNITOPERATION]").toString()) + .setRollout(RolloutName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_ID]").toString()) + .setCancel(true) + .addAllConditions(new ArrayList()) + .setSchedule(Schedule.newBuilder().build()) + .setEngineState("engineState1690039151") + .setErrorCategory(UnitOperationErrorCategory.forNumber(0)) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setUid("uid115792") + .setEtag("etag3123477") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateUnitOperation(unitOperation, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteUnitOperationTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + UnitOperationName name = UnitOperationName.of("[PROJECT]", "[LOCATION]", "[UNITOPERATION]"); + + client.deleteUnitOperation(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteUnitOperationExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + UnitOperationName name = UnitOperationName.of("[PROJECT]", "[LOCATION]", "[UNITOPERATION]"); + client.deleteUnitOperation(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteUnitOperationTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-1088/locations/location-1088/unitOperations/unitOperation-1088"; + + client.deleteUnitOperation(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteUnitOperationExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-1088/locations/location-1088/unitOperations/unitOperation-1088"; + client.deleteUnitOperation(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listReleasesTest() throws Exception { + Release responsesElement = Release.newBuilder().build(); + ListReleasesResponse expectedResponse = + ListReleasesResponse.newBuilder() + .setNextPageToken("") + .addAllReleases(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListReleasesPagedResponse pagedListResponse = client.listReleases(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getReleasesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listReleasesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listReleases(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listReleasesTest2() throws Exception { + Release responsesElement = Release.newBuilder().build(); + ListReleasesResponse expectedResponse = + ListReleasesResponse.newBuilder() + .setNextPageToken("") + .addAllReleases(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListReleasesPagedResponse pagedListResponse = client.listReleases(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getReleasesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listReleasesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + client.listReleases(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getReleaseTest() throws Exception { + Release expectedResponse = + Release.newBuilder() + .setName(ReleaseName.of("[PROJECT]", "[LOCATION]", "[RELEASE]").toString()) + .setUnitKind(UnitKindName.of("[PROJECT]", "[LOCATION]", "[UNITKIND]").toString()) + .setBlueprint(Blueprint.newBuilder().build()) + .setReleaseRequirements(Release.ReleaseRequirements.newBuilder().build()) + .addAllInputVariables(new ArrayList()) + .addAllOutputVariables(new ArrayList()) + .addAllInputVariableDefaults(new ArrayList()) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setUid("uid115792") + .setEtag("etag3123477") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + ReleaseName name = ReleaseName.of("[PROJECT]", "[LOCATION]", "[RELEASE]"); + + Release actualResponse = client.getRelease(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getReleaseExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ReleaseName name = ReleaseName.of("[PROJECT]", "[LOCATION]", "[RELEASE]"); + client.getRelease(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getReleaseTest2() throws Exception { + Release expectedResponse = + Release.newBuilder() + .setName(ReleaseName.of("[PROJECT]", "[LOCATION]", "[RELEASE]").toString()) + .setUnitKind(UnitKindName.of("[PROJECT]", "[LOCATION]", "[UNITKIND]").toString()) + .setBlueprint(Blueprint.newBuilder().build()) + .setReleaseRequirements(Release.ReleaseRequirements.newBuilder().build()) + .addAllInputVariables(new ArrayList()) + .addAllOutputVariables(new ArrayList()) + .addAllInputVariableDefaults(new ArrayList()) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setUid("uid115792") + .setEtag("etag3123477") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-2020/locations/location-2020/releases/release-2020"; + + Release actualResponse = client.getRelease(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getReleaseExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-2020/locations/location-2020/releases/release-2020"; + client.getRelease(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createReleaseTest() throws Exception { + Release expectedResponse = + Release.newBuilder() + .setName(ReleaseName.of("[PROJECT]", "[LOCATION]", "[RELEASE]").toString()) + .setUnitKind(UnitKindName.of("[PROJECT]", "[LOCATION]", "[UNITKIND]").toString()) + .setBlueprint(Blueprint.newBuilder().build()) + .setReleaseRequirements(Release.ReleaseRequirements.newBuilder().build()) + .addAllInputVariables(new ArrayList()) + .addAllOutputVariables(new ArrayList()) + .addAllInputVariableDefaults(new ArrayList()) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setUid("uid115792") + .setEtag("etag3123477") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Release release = Release.newBuilder().build(); + String releaseId = "releaseId89607042"; + + Release actualResponse = client.createRelease(parent, release, releaseId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createReleaseExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Release release = Release.newBuilder().build(); + String releaseId = "releaseId89607042"; + client.createRelease(parent, release, releaseId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createReleaseTest2() throws Exception { + Release expectedResponse = + Release.newBuilder() + .setName(ReleaseName.of("[PROJECT]", "[LOCATION]", "[RELEASE]").toString()) + .setUnitKind(UnitKindName.of("[PROJECT]", "[LOCATION]", "[UNITKIND]").toString()) + .setBlueprint(Blueprint.newBuilder().build()) + .setReleaseRequirements(Release.ReleaseRequirements.newBuilder().build()) + .addAllInputVariables(new ArrayList()) + .addAllOutputVariables(new ArrayList()) + .addAllInputVariableDefaults(new ArrayList()) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setUid("uid115792") + .setEtag("etag3123477") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + Release release = Release.newBuilder().build(); + String releaseId = "releaseId89607042"; + + Release actualResponse = client.createRelease(parent, release, releaseId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createReleaseExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + Release release = Release.newBuilder().build(); + String releaseId = "releaseId89607042"; + client.createRelease(parent, release, releaseId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateReleaseTest() throws Exception { + Release expectedResponse = + Release.newBuilder() + .setName(ReleaseName.of("[PROJECT]", "[LOCATION]", "[RELEASE]").toString()) + .setUnitKind(UnitKindName.of("[PROJECT]", "[LOCATION]", "[UNITKIND]").toString()) + .setBlueprint(Blueprint.newBuilder().build()) + .setReleaseRequirements(Release.ReleaseRequirements.newBuilder().build()) + .addAllInputVariables(new ArrayList()) + .addAllOutputVariables(new ArrayList()) + .addAllInputVariableDefaults(new ArrayList()) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setUid("uid115792") + .setEtag("etag3123477") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + Release release = + Release.newBuilder() + .setName(ReleaseName.of("[PROJECT]", "[LOCATION]", "[RELEASE]").toString()) + .setUnitKind(UnitKindName.of("[PROJECT]", "[LOCATION]", "[UNITKIND]").toString()) + .setBlueprint(Blueprint.newBuilder().build()) + .setReleaseRequirements(Release.ReleaseRequirements.newBuilder().build()) + .addAllInputVariables(new ArrayList()) + .addAllOutputVariables(new ArrayList()) + .addAllInputVariableDefaults(new ArrayList()) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setUid("uid115792") + .setEtag("etag3123477") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Release actualResponse = client.updateRelease(release, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateReleaseExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Release release = + Release.newBuilder() + .setName(ReleaseName.of("[PROJECT]", "[LOCATION]", "[RELEASE]").toString()) + .setUnitKind(UnitKindName.of("[PROJECT]", "[LOCATION]", "[UNITKIND]").toString()) + .setBlueprint(Blueprint.newBuilder().build()) + .setReleaseRequirements(Release.ReleaseRequirements.newBuilder().build()) + .addAllInputVariables(new ArrayList()) + .addAllOutputVariables(new ArrayList()) + .addAllInputVariableDefaults(new ArrayList()) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setUid("uid115792") + .setEtag("etag3123477") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateRelease(release, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteReleaseTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + ReleaseName name = ReleaseName.of("[PROJECT]", "[LOCATION]", "[RELEASE]"); + + client.deleteRelease(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteReleaseExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ReleaseName name = ReleaseName.of("[PROJECT]", "[LOCATION]", "[RELEASE]"); + client.deleteRelease(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteReleaseTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-2020/locations/location-2020/releases/release-2020"; + + client.deleteRelease(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteReleaseExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-2020/locations/location-2020/releases/release-2020"; + client.deleteRelease(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listLocationsTest() throws Exception { + Location responsesElement = Location.newBuilder().build(); + ListLocationsResponse expectedResponse = + ListLocationsResponse.newBuilder() + .setNextPageToken("") + .addAllLocations(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("projects/project-3664") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListLocationsPagedResponse pagedListResponse = client.listLocations(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listLocationsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("projects/project-3664") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listLocations(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLocationTest() throws Exception { + Location expectedResponse = + Location.newBuilder() + .setName("name3373707") + .setLocationId("locationId1541836720") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setMetadata(Any.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + GetLocationRequest request = + GetLocationRequest.newBuilder() + .setName("projects/project-9062/locations/location-9062") + .build(); + + Location actualResponse = client.getLocation(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getLocationExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + GetLocationRequest request = + GetLocationRequest.newBuilder() + .setName("projects/project-9062/locations/location-9062") + .build(); + client.getLocation(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-saasservicemgmt/google-cloud-saasservicemgmt/src/test/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/SaasDeploymentsClientTest.java b/java-saasservicemgmt/google-cloud-saasservicemgmt/src/test/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/SaasDeploymentsClientTest.java new file mode 100644 index 000000000000..2ab077c8c686 --- /dev/null +++ b/java-saasservicemgmt/google-cloud-saasservicemgmt/src/test/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/SaasDeploymentsClientTest.java @@ -0,0 +1,2733 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1; + +import static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient.ListLocationsPagedResponse; +import static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient.ListReleasesPagedResponse; +import static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient.ListSaasPagedResponse; +import static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient.ListTenantsPagedResponse; +import static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient.ListUnitKindsPagedResponse; +import static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient.ListUnitOperationsPagedResponse; +import static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient.ListUnitsPagedResponse; + +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.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.collect.Lists; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Any; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.UUID; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class SaasDeploymentsClientTest { + private static MockLocations mockLocations; + private static MockSaasDeployments mockSaasDeployments; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private SaasDeploymentsClient client; + + @BeforeClass + public static void startStaticServer() { + mockSaasDeployments = new MockSaasDeployments(); + mockLocations = new MockLocations(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList(mockSaasDeployments, mockLocations)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + SaasDeploymentsSettings settings = + SaasDeploymentsSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = SaasDeploymentsClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void listSaasTest() throws Exception { + Saas responsesElement = Saas.newBuilder().build(); + ListSaasResponse expectedResponse = + ListSaasResponse.newBuilder() + .setNextPageToken("") + .addAllSaas(Arrays.asList(responsesElement)) + .build(); + mockSaasDeployments.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListSaasPagedResponse pagedListResponse = client.listSaas(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSaasList().get(0), resources.get(0)); + + List actualRequests = mockSaasDeployments.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListSaasRequest actualRequest = ((ListSaasRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listSaasExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSaasDeployments.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listSaas(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listSaasTest2() throws Exception { + Saas responsesElement = Saas.newBuilder().build(); + ListSaasResponse expectedResponse = + ListSaasResponse.newBuilder() + .setNextPageToken("") + .addAllSaas(Arrays.asList(responsesElement)) + .build(); + mockSaasDeployments.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListSaasPagedResponse pagedListResponse = client.listSaas(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSaasList().get(0), resources.get(0)); + + List actualRequests = mockSaasDeployments.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListSaasRequest actualRequest = ((ListSaasRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listSaasExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSaasDeployments.addException(exception); + + try { + String parent = "parent-995424086"; + client.listSaas(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSaasTest() throws Exception { + Saas expectedResponse = + Saas.newBuilder() + .setName(SaasName.of("[PROJECT]", "[LOCATION]", "[SAAS]").toString()) + .addAllLocations( + new ArrayList()) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setUid("uid115792") + .setEtag("etag3123477") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockSaasDeployments.addResponse(expectedResponse); + + SaasName name = SaasName.of("[PROJECT]", "[LOCATION]", "[SAAS]"); + + Saas actualResponse = client.getSaas(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSaasDeployments.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetSaasRequest actualRequest = ((GetSaasRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getSaasExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSaasDeployments.addException(exception); + + try { + SaasName name = SaasName.of("[PROJECT]", "[LOCATION]", "[SAAS]"); + client.getSaas(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSaasTest2() throws Exception { + Saas expectedResponse = + Saas.newBuilder() + .setName(SaasName.of("[PROJECT]", "[LOCATION]", "[SAAS]").toString()) + .addAllLocations( + new ArrayList()) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setUid("uid115792") + .setEtag("etag3123477") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockSaasDeployments.addResponse(expectedResponse); + + String name = "name3373707"; + + Saas actualResponse = client.getSaas(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSaasDeployments.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetSaasRequest actualRequest = ((GetSaasRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getSaasExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSaasDeployments.addException(exception); + + try { + String name = "name3373707"; + client.getSaas(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createSaasTest() throws Exception { + Saas expectedResponse = + Saas.newBuilder() + .setName(SaasName.of("[PROJECT]", "[LOCATION]", "[SAAS]").toString()) + .addAllLocations( + new ArrayList()) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setUid("uid115792") + .setEtag("etag3123477") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockSaasDeployments.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Saas saas = Saas.newBuilder().build(); + String saasId = "saasId-910030789"; + + Saas actualResponse = client.createSaas(parent, saas, saasId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSaasDeployments.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateSaasRequest actualRequest = ((CreateSaasRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(saas, actualRequest.getSaas()); + Assert.assertEquals(saasId, actualRequest.getSaasId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createSaasExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSaasDeployments.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Saas saas = Saas.newBuilder().build(); + String saasId = "saasId-910030789"; + client.createSaas(parent, saas, saasId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createSaasTest2() throws Exception { + Saas expectedResponse = + Saas.newBuilder() + .setName(SaasName.of("[PROJECT]", "[LOCATION]", "[SAAS]").toString()) + .addAllLocations( + new ArrayList()) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setUid("uid115792") + .setEtag("etag3123477") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockSaasDeployments.addResponse(expectedResponse); + + String parent = "parent-995424086"; + Saas saas = Saas.newBuilder().build(); + String saasId = "saasId-910030789"; + + Saas actualResponse = client.createSaas(parent, saas, saasId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSaasDeployments.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateSaasRequest actualRequest = ((CreateSaasRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(saas, actualRequest.getSaas()); + Assert.assertEquals(saasId, actualRequest.getSaasId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createSaasExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSaasDeployments.addException(exception); + + try { + String parent = "parent-995424086"; + Saas saas = Saas.newBuilder().build(); + String saasId = "saasId-910030789"; + client.createSaas(parent, saas, saasId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateSaasTest() throws Exception { + Saas expectedResponse = + Saas.newBuilder() + .setName(SaasName.of("[PROJECT]", "[LOCATION]", "[SAAS]").toString()) + .addAllLocations( + new ArrayList()) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setUid("uid115792") + .setEtag("etag3123477") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockSaasDeployments.addResponse(expectedResponse); + + Saas saas = Saas.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Saas actualResponse = client.updateSaas(saas, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSaasDeployments.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateSaasRequest actualRequest = ((UpdateSaasRequest) actualRequests.get(0)); + + Assert.assertEquals(saas, actualRequest.getSaas()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateSaasExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSaasDeployments.addException(exception); + + try { + Saas saas = Saas.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateSaas(saas, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteSaasTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockSaasDeployments.addResponse(expectedResponse); + + SaasName name = SaasName.of("[PROJECT]", "[LOCATION]", "[SAAS]"); + + client.deleteSaas(name); + + List actualRequests = mockSaasDeployments.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteSaasRequest actualRequest = ((DeleteSaasRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteSaasExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSaasDeployments.addException(exception); + + try { + SaasName name = SaasName.of("[PROJECT]", "[LOCATION]", "[SAAS]"); + client.deleteSaas(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteSaasTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockSaasDeployments.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteSaas(name); + + List actualRequests = mockSaasDeployments.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteSaasRequest actualRequest = ((DeleteSaasRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteSaasExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSaasDeployments.addException(exception); + + try { + String name = "name3373707"; + client.deleteSaas(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listTenantsTest() throws Exception { + Tenant responsesElement = Tenant.newBuilder().build(); + ListTenantsResponse expectedResponse = + ListTenantsResponse.newBuilder() + .setNextPageToken("") + .addAllTenants(Arrays.asList(responsesElement)) + .build(); + mockSaasDeployments.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListTenantsPagedResponse pagedListResponse = client.listTenants(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getTenantsList().get(0), resources.get(0)); + + List actualRequests = mockSaasDeployments.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListTenantsRequest actualRequest = ((ListTenantsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listTenantsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSaasDeployments.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listTenants(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listTenantsTest2() throws Exception { + Tenant responsesElement = Tenant.newBuilder().build(); + ListTenantsResponse expectedResponse = + ListTenantsResponse.newBuilder() + .setNextPageToken("") + .addAllTenants(Arrays.asList(responsesElement)) + .build(); + mockSaasDeployments.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListTenantsPagedResponse pagedListResponse = client.listTenants(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getTenantsList().get(0), resources.get(0)); + + List actualRequests = mockSaasDeployments.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListTenantsRequest actualRequest = ((ListTenantsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listTenantsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSaasDeployments.addException(exception); + + try { + String parent = "parent-995424086"; + client.listTenants(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getTenantTest() throws Exception { + Tenant expectedResponse = + Tenant.newBuilder() + .setName(TenantName.of("[PROJECT]", "[LOCATION]", "[TENANT]").toString()) + .setConsumerResource("consumerResource-1539418588") + .setSaas(SaasName.of("[PROJECT]", "[LOCATION]", "[SAAS]").toString()) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setUid("uid115792") + .setEtag("etag3123477") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockSaasDeployments.addResponse(expectedResponse); + + TenantName name = TenantName.of("[PROJECT]", "[LOCATION]", "[TENANT]"); + + Tenant actualResponse = client.getTenant(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSaasDeployments.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetTenantRequest actualRequest = ((GetTenantRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getTenantExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSaasDeployments.addException(exception); + + try { + TenantName name = TenantName.of("[PROJECT]", "[LOCATION]", "[TENANT]"); + client.getTenant(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getTenantTest2() throws Exception { + Tenant expectedResponse = + Tenant.newBuilder() + .setName(TenantName.of("[PROJECT]", "[LOCATION]", "[TENANT]").toString()) + .setConsumerResource("consumerResource-1539418588") + .setSaas(SaasName.of("[PROJECT]", "[LOCATION]", "[SAAS]").toString()) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setUid("uid115792") + .setEtag("etag3123477") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockSaasDeployments.addResponse(expectedResponse); + + String name = "name3373707"; + + Tenant actualResponse = client.getTenant(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSaasDeployments.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetTenantRequest actualRequest = ((GetTenantRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getTenantExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSaasDeployments.addException(exception); + + try { + String name = "name3373707"; + client.getTenant(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createTenantTest() throws Exception { + Tenant expectedResponse = + Tenant.newBuilder() + .setName(TenantName.of("[PROJECT]", "[LOCATION]", "[TENANT]").toString()) + .setConsumerResource("consumerResource-1539418588") + .setSaas(SaasName.of("[PROJECT]", "[LOCATION]", "[SAAS]").toString()) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setUid("uid115792") + .setEtag("etag3123477") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockSaasDeployments.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Tenant tenant = Tenant.newBuilder().build(); + String tenantId = "tenantId-1306693787"; + + Tenant actualResponse = client.createTenant(parent, tenant, tenantId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSaasDeployments.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateTenantRequest actualRequest = ((CreateTenantRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(tenant, actualRequest.getTenant()); + Assert.assertEquals(tenantId, actualRequest.getTenantId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createTenantExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSaasDeployments.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Tenant tenant = Tenant.newBuilder().build(); + String tenantId = "tenantId-1306693787"; + client.createTenant(parent, tenant, tenantId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createTenantTest2() throws Exception { + Tenant expectedResponse = + Tenant.newBuilder() + .setName(TenantName.of("[PROJECT]", "[LOCATION]", "[TENANT]").toString()) + .setConsumerResource("consumerResource-1539418588") + .setSaas(SaasName.of("[PROJECT]", "[LOCATION]", "[SAAS]").toString()) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setUid("uid115792") + .setEtag("etag3123477") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockSaasDeployments.addResponse(expectedResponse); + + String parent = "parent-995424086"; + Tenant tenant = Tenant.newBuilder().build(); + String tenantId = "tenantId-1306693787"; + + Tenant actualResponse = client.createTenant(parent, tenant, tenantId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSaasDeployments.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateTenantRequest actualRequest = ((CreateTenantRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(tenant, actualRequest.getTenant()); + Assert.assertEquals(tenantId, actualRequest.getTenantId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createTenantExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSaasDeployments.addException(exception); + + try { + String parent = "parent-995424086"; + Tenant tenant = Tenant.newBuilder().build(); + String tenantId = "tenantId-1306693787"; + client.createTenant(parent, tenant, tenantId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateTenantTest() throws Exception { + Tenant expectedResponse = + Tenant.newBuilder() + .setName(TenantName.of("[PROJECT]", "[LOCATION]", "[TENANT]").toString()) + .setConsumerResource("consumerResource-1539418588") + .setSaas(SaasName.of("[PROJECT]", "[LOCATION]", "[SAAS]").toString()) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setUid("uid115792") + .setEtag("etag3123477") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockSaasDeployments.addResponse(expectedResponse); + + Tenant tenant = Tenant.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Tenant actualResponse = client.updateTenant(tenant, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSaasDeployments.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateTenantRequest actualRequest = ((UpdateTenantRequest) actualRequests.get(0)); + + Assert.assertEquals(tenant, actualRequest.getTenant()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateTenantExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSaasDeployments.addException(exception); + + try { + Tenant tenant = Tenant.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateTenant(tenant, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteTenantTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockSaasDeployments.addResponse(expectedResponse); + + TenantName name = TenantName.of("[PROJECT]", "[LOCATION]", "[TENANT]"); + + client.deleteTenant(name); + + List actualRequests = mockSaasDeployments.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteTenantRequest actualRequest = ((DeleteTenantRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteTenantExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSaasDeployments.addException(exception); + + try { + TenantName name = TenantName.of("[PROJECT]", "[LOCATION]", "[TENANT]"); + client.deleteTenant(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteTenantTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockSaasDeployments.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteTenant(name); + + List actualRequests = mockSaasDeployments.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteTenantRequest actualRequest = ((DeleteTenantRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteTenantExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSaasDeployments.addException(exception); + + try { + String name = "name3373707"; + client.deleteTenant(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listUnitKindsTest() throws Exception { + UnitKind responsesElement = UnitKind.newBuilder().build(); + ListUnitKindsResponse expectedResponse = + ListUnitKindsResponse.newBuilder() + .setNextPageToken("") + .addAllUnitKinds(Arrays.asList(responsesElement)) + .build(); + mockSaasDeployments.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListUnitKindsPagedResponse pagedListResponse = client.listUnitKinds(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getUnitKindsList().get(0), resources.get(0)); + + List actualRequests = mockSaasDeployments.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListUnitKindsRequest actualRequest = ((ListUnitKindsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listUnitKindsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSaasDeployments.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listUnitKinds(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listUnitKindsTest2() throws Exception { + UnitKind responsesElement = UnitKind.newBuilder().build(); + ListUnitKindsResponse expectedResponse = + ListUnitKindsResponse.newBuilder() + .setNextPageToken("") + .addAllUnitKinds(Arrays.asList(responsesElement)) + .build(); + mockSaasDeployments.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListUnitKindsPagedResponse pagedListResponse = client.listUnitKinds(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getUnitKindsList().get(0), resources.get(0)); + + List actualRequests = mockSaasDeployments.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListUnitKindsRequest actualRequest = ((ListUnitKindsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listUnitKindsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSaasDeployments.addException(exception); + + try { + String parent = "parent-995424086"; + client.listUnitKinds(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getUnitKindTest() throws Exception { + UnitKind expectedResponse = + UnitKind.newBuilder() + .setName(UnitKindName.of("[PROJECT]", "[LOCATION]", "[UNITKIND]").toString()) + .setDefaultRelease(ReleaseName.of("[PROJECT]", "[LOCATION]", "[RELEASE]").toString()) + .addAllDependencies(new ArrayList()) + .addAllInputVariableMappings(new ArrayList()) + .addAllOutputVariableMappings(new ArrayList()) + .setSaas(SaasName.of("[PROJECT]", "[LOCATION]", "[SAAS]").toString()) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setUid("uid115792") + .setEtag("etag3123477") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockSaasDeployments.addResponse(expectedResponse); + + UnitKindName name = UnitKindName.of("[PROJECT]", "[LOCATION]", "[UNITKIND]"); + + UnitKind actualResponse = client.getUnitKind(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSaasDeployments.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetUnitKindRequest actualRequest = ((GetUnitKindRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getUnitKindExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSaasDeployments.addException(exception); + + try { + UnitKindName name = UnitKindName.of("[PROJECT]", "[LOCATION]", "[UNITKIND]"); + client.getUnitKind(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getUnitKindTest2() throws Exception { + UnitKind expectedResponse = + UnitKind.newBuilder() + .setName(UnitKindName.of("[PROJECT]", "[LOCATION]", "[UNITKIND]").toString()) + .setDefaultRelease(ReleaseName.of("[PROJECT]", "[LOCATION]", "[RELEASE]").toString()) + .addAllDependencies(new ArrayList()) + .addAllInputVariableMappings(new ArrayList()) + .addAllOutputVariableMappings(new ArrayList()) + .setSaas(SaasName.of("[PROJECT]", "[LOCATION]", "[SAAS]").toString()) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setUid("uid115792") + .setEtag("etag3123477") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockSaasDeployments.addResponse(expectedResponse); + + String name = "name3373707"; + + UnitKind actualResponse = client.getUnitKind(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSaasDeployments.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetUnitKindRequest actualRequest = ((GetUnitKindRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getUnitKindExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSaasDeployments.addException(exception); + + try { + String name = "name3373707"; + client.getUnitKind(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createUnitKindTest() throws Exception { + UnitKind expectedResponse = + UnitKind.newBuilder() + .setName(UnitKindName.of("[PROJECT]", "[LOCATION]", "[UNITKIND]").toString()) + .setDefaultRelease(ReleaseName.of("[PROJECT]", "[LOCATION]", "[RELEASE]").toString()) + .addAllDependencies(new ArrayList()) + .addAllInputVariableMappings(new ArrayList()) + .addAllOutputVariableMappings(new ArrayList()) + .setSaas(SaasName.of("[PROJECT]", "[LOCATION]", "[SAAS]").toString()) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setUid("uid115792") + .setEtag("etag3123477") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockSaasDeployments.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + UnitKind unitKind = UnitKind.newBuilder().build(); + String unitKindId = "unitKindId1956463219"; + + UnitKind actualResponse = client.createUnitKind(parent, unitKind, unitKindId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSaasDeployments.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateUnitKindRequest actualRequest = ((CreateUnitKindRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(unitKind, actualRequest.getUnitKind()); + Assert.assertEquals(unitKindId, actualRequest.getUnitKindId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createUnitKindExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSaasDeployments.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + UnitKind unitKind = UnitKind.newBuilder().build(); + String unitKindId = "unitKindId1956463219"; + client.createUnitKind(parent, unitKind, unitKindId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createUnitKindTest2() throws Exception { + UnitKind expectedResponse = + UnitKind.newBuilder() + .setName(UnitKindName.of("[PROJECT]", "[LOCATION]", "[UNITKIND]").toString()) + .setDefaultRelease(ReleaseName.of("[PROJECT]", "[LOCATION]", "[RELEASE]").toString()) + .addAllDependencies(new ArrayList()) + .addAllInputVariableMappings(new ArrayList()) + .addAllOutputVariableMappings(new ArrayList()) + .setSaas(SaasName.of("[PROJECT]", "[LOCATION]", "[SAAS]").toString()) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setUid("uid115792") + .setEtag("etag3123477") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockSaasDeployments.addResponse(expectedResponse); + + String parent = "parent-995424086"; + UnitKind unitKind = UnitKind.newBuilder().build(); + String unitKindId = "unitKindId1956463219"; + + UnitKind actualResponse = client.createUnitKind(parent, unitKind, unitKindId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSaasDeployments.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateUnitKindRequest actualRequest = ((CreateUnitKindRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(unitKind, actualRequest.getUnitKind()); + Assert.assertEquals(unitKindId, actualRequest.getUnitKindId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createUnitKindExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSaasDeployments.addException(exception); + + try { + String parent = "parent-995424086"; + UnitKind unitKind = UnitKind.newBuilder().build(); + String unitKindId = "unitKindId1956463219"; + client.createUnitKind(parent, unitKind, unitKindId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateUnitKindTest() throws Exception { + UnitKind expectedResponse = + UnitKind.newBuilder() + .setName(UnitKindName.of("[PROJECT]", "[LOCATION]", "[UNITKIND]").toString()) + .setDefaultRelease(ReleaseName.of("[PROJECT]", "[LOCATION]", "[RELEASE]").toString()) + .addAllDependencies(new ArrayList()) + .addAllInputVariableMappings(new ArrayList()) + .addAllOutputVariableMappings(new ArrayList()) + .setSaas(SaasName.of("[PROJECT]", "[LOCATION]", "[SAAS]").toString()) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setUid("uid115792") + .setEtag("etag3123477") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockSaasDeployments.addResponse(expectedResponse); + + UnitKind unitKind = UnitKind.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + UnitKind actualResponse = client.updateUnitKind(unitKind, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSaasDeployments.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateUnitKindRequest actualRequest = ((UpdateUnitKindRequest) actualRequests.get(0)); + + Assert.assertEquals(unitKind, actualRequest.getUnitKind()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateUnitKindExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSaasDeployments.addException(exception); + + try { + UnitKind unitKind = UnitKind.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateUnitKind(unitKind, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteUnitKindTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockSaasDeployments.addResponse(expectedResponse); + + UnitKindName name = UnitKindName.of("[PROJECT]", "[LOCATION]", "[UNITKIND]"); + + client.deleteUnitKind(name); + + List actualRequests = mockSaasDeployments.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteUnitKindRequest actualRequest = ((DeleteUnitKindRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteUnitKindExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSaasDeployments.addException(exception); + + try { + UnitKindName name = UnitKindName.of("[PROJECT]", "[LOCATION]", "[UNITKIND]"); + client.deleteUnitKind(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteUnitKindTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockSaasDeployments.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteUnitKind(name); + + List actualRequests = mockSaasDeployments.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteUnitKindRequest actualRequest = ((DeleteUnitKindRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteUnitKindExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSaasDeployments.addException(exception); + + try { + String name = "name3373707"; + client.deleteUnitKind(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listUnitsTest() throws Exception { + Unit responsesElement = Unit.newBuilder().build(); + ListUnitsResponse expectedResponse = + ListUnitsResponse.newBuilder() + .setNextPageToken("") + .addAllUnits(Arrays.asList(responsesElement)) + .build(); + mockSaasDeployments.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListUnitsPagedResponse pagedListResponse = client.listUnits(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getUnitsList().get(0), resources.get(0)); + + List actualRequests = mockSaasDeployments.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListUnitsRequest actualRequest = ((ListUnitsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listUnitsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSaasDeployments.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listUnits(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listUnitsTest2() throws Exception { + Unit responsesElement = Unit.newBuilder().build(); + ListUnitsResponse expectedResponse = + ListUnitsResponse.newBuilder() + .setNextPageToken("") + .addAllUnits(Arrays.asList(responsesElement)) + .build(); + mockSaasDeployments.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListUnitsPagedResponse pagedListResponse = client.listUnits(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getUnitsList().get(0), resources.get(0)); + + List actualRequests = mockSaasDeployments.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListUnitsRequest actualRequest = ((ListUnitsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listUnitsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSaasDeployments.addException(exception); + + try { + String parent = "parent-995424086"; + client.listUnits(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getUnitTest() throws Exception { + Unit expectedResponse = + Unit.newBuilder() + .setName(UnitName.of("[PROJECT]", "[LOCATION]", "[UNIT]").toString()) + .setUnitKind(UnitKindName.of("[PROJECT]", "[LOCATION]", "[UNITKIND]").toString()) + .setRelease(ReleaseName.of("[PROJECT]", "[LOCATION]", "[RELEASE]").toString()) + .setTenant(TenantName.of("[PROJECT]", "[LOCATION]", "[TENANT]").toString()) + .addAllOngoingOperations(new ArrayList()) + .addAllPendingOperations(new ArrayList()) + .addAllScheduledOperations(new ArrayList()) + .addAllDependents(new ArrayList()) + .addAllDependencies(new ArrayList()) + .addAllInputVariables(new ArrayList()) + .addAllOutputVariables(new ArrayList()) + .setMaintenance(Unit.MaintenanceSettings.newBuilder().build()) + .addAllConditions(new ArrayList()) + .setSystemCleanupAt(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setUid("uid115792") + .setEtag("etag3123477") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockSaasDeployments.addResponse(expectedResponse); + + UnitName name = UnitName.of("[PROJECT]", "[LOCATION]", "[UNIT]"); + + Unit actualResponse = client.getUnit(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSaasDeployments.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetUnitRequest actualRequest = ((GetUnitRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getUnitExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSaasDeployments.addException(exception); + + try { + UnitName name = UnitName.of("[PROJECT]", "[LOCATION]", "[UNIT]"); + client.getUnit(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getUnitTest2() throws Exception { + Unit expectedResponse = + Unit.newBuilder() + .setName(UnitName.of("[PROJECT]", "[LOCATION]", "[UNIT]").toString()) + .setUnitKind(UnitKindName.of("[PROJECT]", "[LOCATION]", "[UNITKIND]").toString()) + .setRelease(ReleaseName.of("[PROJECT]", "[LOCATION]", "[RELEASE]").toString()) + .setTenant(TenantName.of("[PROJECT]", "[LOCATION]", "[TENANT]").toString()) + .addAllOngoingOperations(new ArrayList()) + .addAllPendingOperations(new ArrayList()) + .addAllScheduledOperations(new ArrayList()) + .addAllDependents(new ArrayList()) + .addAllDependencies(new ArrayList()) + .addAllInputVariables(new ArrayList()) + .addAllOutputVariables(new ArrayList()) + .setMaintenance(Unit.MaintenanceSettings.newBuilder().build()) + .addAllConditions(new ArrayList()) + .setSystemCleanupAt(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setUid("uid115792") + .setEtag("etag3123477") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockSaasDeployments.addResponse(expectedResponse); + + String name = "name3373707"; + + Unit actualResponse = client.getUnit(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSaasDeployments.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetUnitRequest actualRequest = ((GetUnitRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getUnitExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSaasDeployments.addException(exception); + + try { + String name = "name3373707"; + client.getUnit(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createUnitTest() throws Exception { + Unit expectedResponse = + Unit.newBuilder() + .setName(UnitName.of("[PROJECT]", "[LOCATION]", "[UNIT]").toString()) + .setUnitKind(UnitKindName.of("[PROJECT]", "[LOCATION]", "[UNITKIND]").toString()) + .setRelease(ReleaseName.of("[PROJECT]", "[LOCATION]", "[RELEASE]").toString()) + .setTenant(TenantName.of("[PROJECT]", "[LOCATION]", "[TENANT]").toString()) + .addAllOngoingOperations(new ArrayList()) + .addAllPendingOperations(new ArrayList()) + .addAllScheduledOperations(new ArrayList()) + .addAllDependents(new ArrayList()) + .addAllDependencies(new ArrayList()) + .addAllInputVariables(new ArrayList()) + .addAllOutputVariables(new ArrayList()) + .setMaintenance(Unit.MaintenanceSettings.newBuilder().build()) + .addAllConditions(new ArrayList()) + .setSystemCleanupAt(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setUid("uid115792") + .setEtag("etag3123477") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockSaasDeployments.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Unit unit = Unit.newBuilder().build(); + String unitId = "unitId-840527425"; + + Unit actualResponse = client.createUnit(parent, unit, unitId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSaasDeployments.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateUnitRequest actualRequest = ((CreateUnitRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(unit, actualRequest.getUnit()); + Assert.assertEquals(unitId, actualRequest.getUnitId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createUnitExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSaasDeployments.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Unit unit = Unit.newBuilder().build(); + String unitId = "unitId-840527425"; + client.createUnit(parent, unit, unitId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createUnitTest2() throws Exception { + Unit expectedResponse = + Unit.newBuilder() + .setName(UnitName.of("[PROJECT]", "[LOCATION]", "[UNIT]").toString()) + .setUnitKind(UnitKindName.of("[PROJECT]", "[LOCATION]", "[UNITKIND]").toString()) + .setRelease(ReleaseName.of("[PROJECT]", "[LOCATION]", "[RELEASE]").toString()) + .setTenant(TenantName.of("[PROJECT]", "[LOCATION]", "[TENANT]").toString()) + .addAllOngoingOperations(new ArrayList()) + .addAllPendingOperations(new ArrayList()) + .addAllScheduledOperations(new ArrayList()) + .addAllDependents(new ArrayList()) + .addAllDependencies(new ArrayList()) + .addAllInputVariables(new ArrayList()) + .addAllOutputVariables(new ArrayList()) + .setMaintenance(Unit.MaintenanceSettings.newBuilder().build()) + .addAllConditions(new ArrayList()) + .setSystemCleanupAt(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setUid("uid115792") + .setEtag("etag3123477") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockSaasDeployments.addResponse(expectedResponse); + + String parent = "parent-995424086"; + Unit unit = Unit.newBuilder().build(); + String unitId = "unitId-840527425"; + + Unit actualResponse = client.createUnit(parent, unit, unitId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSaasDeployments.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateUnitRequest actualRequest = ((CreateUnitRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(unit, actualRequest.getUnit()); + Assert.assertEquals(unitId, actualRequest.getUnitId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createUnitExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSaasDeployments.addException(exception); + + try { + String parent = "parent-995424086"; + Unit unit = Unit.newBuilder().build(); + String unitId = "unitId-840527425"; + client.createUnit(parent, unit, unitId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateUnitTest() throws Exception { + Unit expectedResponse = + Unit.newBuilder() + .setName(UnitName.of("[PROJECT]", "[LOCATION]", "[UNIT]").toString()) + .setUnitKind(UnitKindName.of("[PROJECT]", "[LOCATION]", "[UNITKIND]").toString()) + .setRelease(ReleaseName.of("[PROJECT]", "[LOCATION]", "[RELEASE]").toString()) + .setTenant(TenantName.of("[PROJECT]", "[LOCATION]", "[TENANT]").toString()) + .addAllOngoingOperations(new ArrayList()) + .addAllPendingOperations(new ArrayList()) + .addAllScheduledOperations(new ArrayList()) + .addAllDependents(new ArrayList()) + .addAllDependencies(new ArrayList()) + .addAllInputVariables(new ArrayList()) + .addAllOutputVariables(new ArrayList()) + .setMaintenance(Unit.MaintenanceSettings.newBuilder().build()) + .addAllConditions(new ArrayList()) + .setSystemCleanupAt(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setUid("uid115792") + .setEtag("etag3123477") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockSaasDeployments.addResponse(expectedResponse); + + Unit unit = Unit.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Unit actualResponse = client.updateUnit(unit, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSaasDeployments.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateUnitRequest actualRequest = ((UpdateUnitRequest) actualRequests.get(0)); + + Assert.assertEquals(unit, actualRequest.getUnit()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateUnitExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSaasDeployments.addException(exception); + + try { + Unit unit = Unit.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateUnit(unit, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteUnitTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockSaasDeployments.addResponse(expectedResponse); + + UnitName name = UnitName.of("[PROJECT]", "[LOCATION]", "[UNIT]"); + + client.deleteUnit(name); + + List actualRequests = mockSaasDeployments.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteUnitRequest actualRequest = ((DeleteUnitRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteUnitExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSaasDeployments.addException(exception); + + try { + UnitName name = UnitName.of("[PROJECT]", "[LOCATION]", "[UNIT]"); + client.deleteUnit(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteUnitTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockSaasDeployments.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteUnit(name); + + List actualRequests = mockSaasDeployments.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteUnitRequest actualRequest = ((DeleteUnitRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteUnitExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSaasDeployments.addException(exception); + + try { + String name = "name3373707"; + client.deleteUnit(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listUnitOperationsTest() throws Exception { + UnitOperation responsesElement = UnitOperation.newBuilder().build(); + ListUnitOperationsResponse expectedResponse = + ListUnitOperationsResponse.newBuilder() + .setNextPageToken("") + .addAllUnitOperations(Arrays.asList(responsesElement)) + .build(); + mockSaasDeployments.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListUnitOperationsPagedResponse pagedListResponse = client.listUnitOperations(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getUnitOperationsList().get(0), resources.get(0)); + + List actualRequests = mockSaasDeployments.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListUnitOperationsRequest actualRequest = ((ListUnitOperationsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listUnitOperationsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSaasDeployments.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listUnitOperations(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listUnitOperationsTest2() throws Exception { + UnitOperation responsesElement = UnitOperation.newBuilder().build(); + ListUnitOperationsResponse expectedResponse = + ListUnitOperationsResponse.newBuilder() + .setNextPageToken("") + .addAllUnitOperations(Arrays.asList(responsesElement)) + .build(); + mockSaasDeployments.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListUnitOperationsPagedResponse pagedListResponse = client.listUnitOperations(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getUnitOperationsList().get(0), resources.get(0)); + + List actualRequests = mockSaasDeployments.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListUnitOperationsRequest actualRequest = ((ListUnitOperationsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listUnitOperationsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSaasDeployments.addException(exception); + + try { + String parent = "parent-995424086"; + client.listUnitOperations(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getUnitOperationTest() throws Exception { + UnitOperation expectedResponse = + UnitOperation.newBuilder() + .setName(UnitOperationName.of("[PROJECT]", "[LOCATION]", "[UNITOPERATION]").toString()) + .setUnit(UnitName.of("[PROJECT]", "[LOCATION]", "[UNIT]").toString()) + .setParentUnitOperation( + UnitOperationName.of("[PROJECT]", "[LOCATION]", "[UNITOPERATION]").toString()) + .setRollout(RolloutName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_ID]").toString()) + .setCancel(true) + .addAllConditions(new ArrayList()) + .setSchedule(Schedule.newBuilder().build()) + .setEngineState("engineState1690039151") + .setErrorCategory(UnitOperationErrorCategory.forNumber(0)) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setUid("uid115792") + .setEtag("etag3123477") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockSaasDeployments.addResponse(expectedResponse); + + UnitOperationName name = UnitOperationName.of("[PROJECT]", "[LOCATION]", "[UNITOPERATION]"); + + UnitOperation actualResponse = client.getUnitOperation(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSaasDeployments.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetUnitOperationRequest actualRequest = ((GetUnitOperationRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getUnitOperationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSaasDeployments.addException(exception); + + try { + UnitOperationName name = UnitOperationName.of("[PROJECT]", "[LOCATION]", "[UNITOPERATION]"); + client.getUnitOperation(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getUnitOperationTest2() throws Exception { + UnitOperation expectedResponse = + UnitOperation.newBuilder() + .setName(UnitOperationName.of("[PROJECT]", "[LOCATION]", "[UNITOPERATION]").toString()) + .setUnit(UnitName.of("[PROJECT]", "[LOCATION]", "[UNIT]").toString()) + .setParentUnitOperation( + UnitOperationName.of("[PROJECT]", "[LOCATION]", "[UNITOPERATION]").toString()) + .setRollout(RolloutName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_ID]").toString()) + .setCancel(true) + .addAllConditions(new ArrayList()) + .setSchedule(Schedule.newBuilder().build()) + .setEngineState("engineState1690039151") + .setErrorCategory(UnitOperationErrorCategory.forNumber(0)) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setUid("uid115792") + .setEtag("etag3123477") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockSaasDeployments.addResponse(expectedResponse); + + String name = "name3373707"; + + UnitOperation actualResponse = client.getUnitOperation(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSaasDeployments.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetUnitOperationRequest actualRequest = ((GetUnitOperationRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getUnitOperationExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSaasDeployments.addException(exception); + + try { + String name = "name3373707"; + client.getUnitOperation(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createUnitOperationTest() throws Exception { + UnitOperation expectedResponse = + UnitOperation.newBuilder() + .setName(UnitOperationName.of("[PROJECT]", "[LOCATION]", "[UNITOPERATION]").toString()) + .setUnit(UnitName.of("[PROJECT]", "[LOCATION]", "[UNIT]").toString()) + .setParentUnitOperation( + UnitOperationName.of("[PROJECT]", "[LOCATION]", "[UNITOPERATION]").toString()) + .setRollout(RolloutName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_ID]").toString()) + .setCancel(true) + .addAllConditions(new ArrayList()) + .setSchedule(Schedule.newBuilder().build()) + .setEngineState("engineState1690039151") + .setErrorCategory(UnitOperationErrorCategory.forNumber(0)) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setUid("uid115792") + .setEtag("etag3123477") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockSaasDeployments.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + UnitOperation unitOperation = UnitOperation.newBuilder().build(); + String unitOperationId = "unitOperationId-638217026"; + + UnitOperation actualResponse = + client.createUnitOperation(parent, unitOperation, unitOperationId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSaasDeployments.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateUnitOperationRequest actualRequest = ((CreateUnitOperationRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(unitOperation, actualRequest.getUnitOperation()); + Assert.assertEquals(unitOperationId, actualRequest.getUnitOperationId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createUnitOperationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSaasDeployments.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + UnitOperation unitOperation = UnitOperation.newBuilder().build(); + String unitOperationId = "unitOperationId-638217026"; + client.createUnitOperation(parent, unitOperation, unitOperationId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createUnitOperationTest2() throws Exception { + UnitOperation expectedResponse = + UnitOperation.newBuilder() + .setName(UnitOperationName.of("[PROJECT]", "[LOCATION]", "[UNITOPERATION]").toString()) + .setUnit(UnitName.of("[PROJECT]", "[LOCATION]", "[UNIT]").toString()) + .setParentUnitOperation( + UnitOperationName.of("[PROJECT]", "[LOCATION]", "[UNITOPERATION]").toString()) + .setRollout(RolloutName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_ID]").toString()) + .setCancel(true) + .addAllConditions(new ArrayList()) + .setSchedule(Schedule.newBuilder().build()) + .setEngineState("engineState1690039151") + .setErrorCategory(UnitOperationErrorCategory.forNumber(0)) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setUid("uid115792") + .setEtag("etag3123477") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockSaasDeployments.addResponse(expectedResponse); + + String parent = "parent-995424086"; + UnitOperation unitOperation = UnitOperation.newBuilder().build(); + String unitOperationId = "unitOperationId-638217026"; + + UnitOperation actualResponse = + client.createUnitOperation(parent, unitOperation, unitOperationId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSaasDeployments.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateUnitOperationRequest actualRequest = ((CreateUnitOperationRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(unitOperation, actualRequest.getUnitOperation()); + Assert.assertEquals(unitOperationId, actualRequest.getUnitOperationId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createUnitOperationExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSaasDeployments.addException(exception); + + try { + String parent = "parent-995424086"; + UnitOperation unitOperation = UnitOperation.newBuilder().build(); + String unitOperationId = "unitOperationId-638217026"; + client.createUnitOperation(parent, unitOperation, unitOperationId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateUnitOperationTest() throws Exception { + UnitOperation expectedResponse = + UnitOperation.newBuilder() + .setName(UnitOperationName.of("[PROJECT]", "[LOCATION]", "[UNITOPERATION]").toString()) + .setUnit(UnitName.of("[PROJECT]", "[LOCATION]", "[UNIT]").toString()) + .setParentUnitOperation( + UnitOperationName.of("[PROJECT]", "[LOCATION]", "[UNITOPERATION]").toString()) + .setRollout(RolloutName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_ID]").toString()) + .setCancel(true) + .addAllConditions(new ArrayList()) + .setSchedule(Schedule.newBuilder().build()) + .setEngineState("engineState1690039151") + .setErrorCategory(UnitOperationErrorCategory.forNumber(0)) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setUid("uid115792") + .setEtag("etag3123477") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockSaasDeployments.addResponse(expectedResponse); + + UnitOperation unitOperation = UnitOperation.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + UnitOperation actualResponse = client.updateUnitOperation(unitOperation, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSaasDeployments.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateUnitOperationRequest actualRequest = ((UpdateUnitOperationRequest) actualRequests.get(0)); + + Assert.assertEquals(unitOperation, actualRequest.getUnitOperation()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateUnitOperationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSaasDeployments.addException(exception); + + try { + UnitOperation unitOperation = UnitOperation.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateUnitOperation(unitOperation, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteUnitOperationTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockSaasDeployments.addResponse(expectedResponse); + + UnitOperationName name = UnitOperationName.of("[PROJECT]", "[LOCATION]", "[UNITOPERATION]"); + + client.deleteUnitOperation(name); + + List actualRequests = mockSaasDeployments.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteUnitOperationRequest actualRequest = ((DeleteUnitOperationRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteUnitOperationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSaasDeployments.addException(exception); + + try { + UnitOperationName name = UnitOperationName.of("[PROJECT]", "[LOCATION]", "[UNITOPERATION]"); + client.deleteUnitOperation(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteUnitOperationTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockSaasDeployments.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteUnitOperation(name); + + List actualRequests = mockSaasDeployments.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteUnitOperationRequest actualRequest = ((DeleteUnitOperationRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteUnitOperationExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSaasDeployments.addException(exception); + + try { + String name = "name3373707"; + client.deleteUnitOperation(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listReleasesTest() throws Exception { + Release responsesElement = Release.newBuilder().build(); + ListReleasesResponse expectedResponse = + ListReleasesResponse.newBuilder() + .setNextPageToken("") + .addAllReleases(Arrays.asList(responsesElement)) + .build(); + mockSaasDeployments.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListReleasesPagedResponse pagedListResponse = client.listReleases(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getReleasesList().get(0), resources.get(0)); + + List actualRequests = mockSaasDeployments.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListReleasesRequest actualRequest = ((ListReleasesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listReleasesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSaasDeployments.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listReleases(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listReleasesTest2() throws Exception { + Release responsesElement = Release.newBuilder().build(); + ListReleasesResponse expectedResponse = + ListReleasesResponse.newBuilder() + .setNextPageToken("") + .addAllReleases(Arrays.asList(responsesElement)) + .build(); + mockSaasDeployments.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListReleasesPagedResponse pagedListResponse = client.listReleases(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getReleasesList().get(0), resources.get(0)); + + List actualRequests = mockSaasDeployments.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListReleasesRequest actualRequest = ((ListReleasesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listReleasesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSaasDeployments.addException(exception); + + try { + String parent = "parent-995424086"; + client.listReleases(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getReleaseTest() throws Exception { + Release expectedResponse = + Release.newBuilder() + .setName(ReleaseName.of("[PROJECT]", "[LOCATION]", "[RELEASE]").toString()) + .setUnitKind(UnitKindName.of("[PROJECT]", "[LOCATION]", "[UNITKIND]").toString()) + .setBlueprint(Blueprint.newBuilder().build()) + .setReleaseRequirements(Release.ReleaseRequirements.newBuilder().build()) + .addAllInputVariables(new ArrayList()) + .addAllOutputVariables(new ArrayList()) + .addAllInputVariableDefaults(new ArrayList()) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setUid("uid115792") + .setEtag("etag3123477") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockSaasDeployments.addResponse(expectedResponse); + + ReleaseName name = ReleaseName.of("[PROJECT]", "[LOCATION]", "[RELEASE]"); + + Release actualResponse = client.getRelease(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSaasDeployments.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetReleaseRequest actualRequest = ((GetReleaseRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getReleaseExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSaasDeployments.addException(exception); + + try { + ReleaseName name = ReleaseName.of("[PROJECT]", "[LOCATION]", "[RELEASE]"); + client.getRelease(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getReleaseTest2() throws Exception { + Release expectedResponse = + Release.newBuilder() + .setName(ReleaseName.of("[PROJECT]", "[LOCATION]", "[RELEASE]").toString()) + .setUnitKind(UnitKindName.of("[PROJECT]", "[LOCATION]", "[UNITKIND]").toString()) + .setBlueprint(Blueprint.newBuilder().build()) + .setReleaseRequirements(Release.ReleaseRequirements.newBuilder().build()) + .addAllInputVariables(new ArrayList()) + .addAllOutputVariables(new ArrayList()) + .addAllInputVariableDefaults(new ArrayList()) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setUid("uid115792") + .setEtag("etag3123477") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockSaasDeployments.addResponse(expectedResponse); + + String name = "name3373707"; + + Release actualResponse = client.getRelease(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSaasDeployments.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetReleaseRequest actualRequest = ((GetReleaseRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getReleaseExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSaasDeployments.addException(exception); + + try { + String name = "name3373707"; + client.getRelease(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createReleaseTest() throws Exception { + Release expectedResponse = + Release.newBuilder() + .setName(ReleaseName.of("[PROJECT]", "[LOCATION]", "[RELEASE]").toString()) + .setUnitKind(UnitKindName.of("[PROJECT]", "[LOCATION]", "[UNITKIND]").toString()) + .setBlueprint(Blueprint.newBuilder().build()) + .setReleaseRequirements(Release.ReleaseRequirements.newBuilder().build()) + .addAllInputVariables(new ArrayList()) + .addAllOutputVariables(new ArrayList()) + .addAllInputVariableDefaults(new ArrayList()) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setUid("uid115792") + .setEtag("etag3123477") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockSaasDeployments.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Release release = Release.newBuilder().build(); + String releaseId = "releaseId89607042"; + + Release actualResponse = client.createRelease(parent, release, releaseId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSaasDeployments.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateReleaseRequest actualRequest = ((CreateReleaseRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(release, actualRequest.getRelease()); + Assert.assertEquals(releaseId, actualRequest.getReleaseId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createReleaseExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSaasDeployments.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Release release = Release.newBuilder().build(); + String releaseId = "releaseId89607042"; + client.createRelease(parent, release, releaseId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createReleaseTest2() throws Exception { + Release expectedResponse = + Release.newBuilder() + .setName(ReleaseName.of("[PROJECT]", "[LOCATION]", "[RELEASE]").toString()) + .setUnitKind(UnitKindName.of("[PROJECT]", "[LOCATION]", "[UNITKIND]").toString()) + .setBlueprint(Blueprint.newBuilder().build()) + .setReleaseRequirements(Release.ReleaseRequirements.newBuilder().build()) + .addAllInputVariables(new ArrayList()) + .addAllOutputVariables(new ArrayList()) + .addAllInputVariableDefaults(new ArrayList()) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setUid("uid115792") + .setEtag("etag3123477") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockSaasDeployments.addResponse(expectedResponse); + + String parent = "parent-995424086"; + Release release = Release.newBuilder().build(); + String releaseId = "releaseId89607042"; + + Release actualResponse = client.createRelease(parent, release, releaseId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSaasDeployments.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateReleaseRequest actualRequest = ((CreateReleaseRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(release, actualRequest.getRelease()); + Assert.assertEquals(releaseId, actualRequest.getReleaseId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createReleaseExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSaasDeployments.addException(exception); + + try { + String parent = "parent-995424086"; + Release release = Release.newBuilder().build(); + String releaseId = "releaseId89607042"; + client.createRelease(parent, release, releaseId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateReleaseTest() throws Exception { + Release expectedResponse = + Release.newBuilder() + .setName(ReleaseName.of("[PROJECT]", "[LOCATION]", "[RELEASE]").toString()) + .setUnitKind(UnitKindName.of("[PROJECT]", "[LOCATION]", "[UNITKIND]").toString()) + .setBlueprint(Blueprint.newBuilder().build()) + .setReleaseRequirements(Release.ReleaseRequirements.newBuilder().build()) + .addAllInputVariables(new ArrayList()) + .addAllOutputVariables(new ArrayList()) + .addAllInputVariableDefaults(new ArrayList()) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setUid("uid115792") + .setEtag("etag3123477") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockSaasDeployments.addResponse(expectedResponse); + + Release release = Release.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Release actualResponse = client.updateRelease(release, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSaasDeployments.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateReleaseRequest actualRequest = ((UpdateReleaseRequest) actualRequests.get(0)); + + Assert.assertEquals(release, actualRequest.getRelease()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateReleaseExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSaasDeployments.addException(exception); + + try { + Release release = Release.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateRelease(release, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteReleaseTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockSaasDeployments.addResponse(expectedResponse); + + ReleaseName name = ReleaseName.of("[PROJECT]", "[LOCATION]", "[RELEASE]"); + + client.deleteRelease(name); + + List actualRequests = mockSaasDeployments.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteReleaseRequest actualRequest = ((DeleteReleaseRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteReleaseExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSaasDeployments.addException(exception); + + try { + ReleaseName name = ReleaseName.of("[PROJECT]", "[LOCATION]", "[RELEASE]"); + client.deleteRelease(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteReleaseTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockSaasDeployments.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteRelease(name); + + List actualRequests = mockSaasDeployments.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteReleaseRequest actualRequest = ((DeleteReleaseRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteReleaseExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSaasDeployments.addException(exception); + + try { + String name = "name3373707"; + client.deleteRelease(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listLocationsTest() throws Exception { + Location responsesElement = Location.newBuilder().build(); + ListLocationsResponse expectedResponse = + ListLocationsResponse.newBuilder() + .setNextPageToken("") + .addAllLocations(Arrays.asList(responsesElement)) + .build(); + mockLocations.addResponse(expectedResponse); + + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListLocationsPagedResponse pagedListResponse = client.listLocations(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0)); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListLocationsRequest actualRequest = ((ListLocationsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getFilter(), actualRequest.getFilter()); + Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); + Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listLocationsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listLocations(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLocationTest() throws Exception { + Location expectedResponse = + Location.newBuilder() + .setName("name3373707") + .setLocationId("locationId1541836720") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setMetadata(Any.newBuilder().build()) + .build(); + mockLocations.addResponse(expectedResponse); + + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + + Location actualResponse = client.getLocation(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetLocationRequest actualRequest = ((GetLocationRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getLocationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + client.getLocation(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-saasservicemgmt/google-cloud-saasservicemgmt/src/test/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/SaasRolloutsClientHttpJsonTest.java b/java-saasservicemgmt/google-cloud-saasservicemgmt/src/test/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/SaasRolloutsClientHttpJsonTest.java new file mode 100644 index 000000000000..c42b8ed51645 --- /dev/null +++ b/java-saasservicemgmt/google-cloud-saasservicemgmt/src/test/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/SaasRolloutsClientHttpJsonTest.java @@ -0,0 +1,1241 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1; + +import static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsClient.ListLocationsPagedResponse; +import static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsClient.ListRolloutKindsPagedResponse; +import static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsClient.ListRolloutsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.stub.HttpJsonSaasRolloutsStub; +import com.google.common.collect.Lists; +import com.google.protobuf.Any; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import java.io.IOException; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class SaasRolloutsClientHttpJsonTest { + private static MockHttpService mockService; + private static SaasRolloutsClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonSaasRolloutsStub.getMethodDescriptors(), + SaasRolloutsSettings.getDefaultEndpoint()); + SaasRolloutsSettings settings = + SaasRolloutsSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + SaasRolloutsSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = SaasRolloutsClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void listRolloutsTest() throws Exception { + Rollout responsesElement = Rollout.newBuilder().build(); + ListRolloutsResponse expectedResponse = + ListRolloutsResponse.newBuilder() + .setNextPageToken("") + .addAllRollouts(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListRolloutsPagedResponse pagedListResponse = client.listRollouts(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getRolloutsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listRolloutsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listRollouts(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listRolloutsTest2() throws Exception { + Rollout responsesElement = Rollout.newBuilder().build(); + ListRolloutsResponse expectedResponse = + ListRolloutsResponse.newBuilder() + .setNextPageToken("") + .addAllRollouts(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListRolloutsPagedResponse pagedListResponse = client.listRollouts(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getRolloutsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listRolloutsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + client.listRollouts(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getRolloutTest() throws Exception { + Rollout expectedResponse = + Rollout.newBuilder() + .setName(RolloutName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_ID]").toString()) + .setRelease(ReleaseName.of("[PROJECT]", "[LOCATION]", "[RELEASE]").toString()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .setStateMessage("stateMessage1128185398") + .setStateTransitionTime(Timestamp.newBuilder().build()) + .setRootRollout(RolloutName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_ID]").toString()) + .setParentRollout(RolloutName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_ID]").toString()) + .setRolloutOrchestrationStrategy("rolloutOrchestrationStrategy-1543555165") + .setUnitFilter("unitFilter1813274140") + .setRolloutKind( + RolloutKindName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_KIND_ID]").toString()) + .setStats(RolloutStats.newBuilder().build()) + .setControl(RolloutControl.newBuilder().build()) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setUid("uid115792") + .setEtag("etag3123477") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + RolloutName name = RolloutName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_ID]"); + + Rollout actualResponse = client.getRollout(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getRolloutExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + RolloutName name = RolloutName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_ID]"); + client.getRollout(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getRolloutTest2() throws Exception { + Rollout expectedResponse = + Rollout.newBuilder() + .setName(RolloutName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_ID]").toString()) + .setRelease(ReleaseName.of("[PROJECT]", "[LOCATION]", "[RELEASE]").toString()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .setStateMessage("stateMessage1128185398") + .setStateTransitionTime(Timestamp.newBuilder().build()) + .setRootRollout(RolloutName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_ID]").toString()) + .setParentRollout(RolloutName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_ID]").toString()) + .setRolloutOrchestrationStrategy("rolloutOrchestrationStrategy-1543555165") + .setUnitFilter("unitFilter1813274140") + .setRolloutKind( + RolloutKindName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_KIND_ID]").toString()) + .setStats(RolloutStats.newBuilder().build()) + .setControl(RolloutControl.newBuilder().build()) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setUid("uid115792") + .setEtag("etag3123477") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-3026/locations/location-3026/rollouts/rollout-3026"; + + Rollout actualResponse = client.getRollout(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getRolloutExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-3026/locations/location-3026/rollouts/rollout-3026"; + client.getRollout(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createRolloutTest() throws Exception { + Rollout expectedResponse = + Rollout.newBuilder() + .setName(RolloutName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_ID]").toString()) + .setRelease(ReleaseName.of("[PROJECT]", "[LOCATION]", "[RELEASE]").toString()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .setStateMessage("stateMessage1128185398") + .setStateTransitionTime(Timestamp.newBuilder().build()) + .setRootRollout(RolloutName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_ID]").toString()) + .setParentRollout(RolloutName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_ID]").toString()) + .setRolloutOrchestrationStrategy("rolloutOrchestrationStrategy-1543555165") + .setUnitFilter("unitFilter1813274140") + .setRolloutKind( + RolloutKindName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_KIND_ID]").toString()) + .setStats(RolloutStats.newBuilder().build()) + .setControl(RolloutControl.newBuilder().build()) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setUid("uid115792") + .setEtag("etag3123477") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Rollout rollout = Rollout.newBuilder().build(); + String rolloutId = "rolloutId551248556"; + + Rollout actualResponse = client.createRollout(parent, rollout, rolloutId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createRolloutExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Rollout rollout = Rollout.newBuilder().build(); + String rolloutId = "rolloutId551248556"; + client.createRollout(parent, rollout, rolloutId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createRolloutTest2() throws Exception { + Rollout expectedResponse = + Rollout.newBuilder() + .setName(RolloutName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_ID]").toString()) + .setRelease(ReleaseName.of("[PROJECT]", "[LOCATION]", "[RELEASE]").toString()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .setStateMessage("stateMessage1128185398") + .setStateTransitionTime(Timestamp.newBuilder().build()) + .setRootRollout(RolloutName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_ID]").toString()) + .setParentRollout(RolloutName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_ID]").toString()) + .setRolloutOrchestrationStrategy("rolloutOrchestrationStrategy-1543555165") + .setUnitFilter("unitFilter1813274140") + .setRolloutKind( + RolloutKindName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_KIND_ID]").toString()) + .setStats(RolloutStats.newBuilder().build()) + .setControl(RolloutControl.newBuilder().build()) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setUid("uid115792") + .setEtag("etag3123477") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + Rollout rollout = Rollout.newBuilder().build(); + String rolloutId = "rolloutId551248556"; + + Rollout actualResponse = client.createRollout(parent, rollout, rolloutId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createRolloutExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + Rollout rollout = Rollout.newBuilder().build(); + String rolloutId = "rolloutId551248556"; + client.createRollout(parent, rollout, rolloutId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateRolloutTest() throws Exception { + Rollout expectedResponse = + Rollout.newBuilder() + .setName(RolloutName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_ID]").toString()) + .setRelease(ReleaseName.of("[PROJECT]", "[LOCATION]", "[RELEASE]").toString()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .setStateMessage("stateMessage1128185398") + .setStateTransitionTime(Timestamp.newBuilder().build()) + .setRootRollout(RolloutName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_ID]").toString()) + .setParentRollout(RolloutName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_ID]").toString()) + .setRolloutOrchestrationStrategy("rolloutOrchestrationStrategy-1543555165") + .setUnitFilter("unitFilter1813274140") + .setRolloutKind( + RolloutKindName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_KIND_ID]").toString()) + .setStats(RolloutStats.newBuilder().build()) + .setControl(RolloutControl.newBuilder().build()) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setUid("uid115792") + .setEtag("etag3123477") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + Rollout rollout = + Rollout.newBuilder() + .setName(RolloutName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_ID]").toString()) + .setRelease(ReleaseName.of("[PROJECT]", "[LOCATION]", "[RELEASE]").toString()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .setStateMessage("stateMessage1128185398") + .setStateTransitionTime(Timestamp.newBuilder().build()) + .setRootRollout(RolloutName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_ID]").toString()) + .setParentRollout(RolloutName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_ID]").toString()) + .setRolloutOrchestrationStrategy("rolloutOrchestrationStrategy-1543555165") + .setUnitFilter("unitFilter1813274140") + .setRolloutKind( + RolloutKindName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_KIND_ID]").toString()) + .setStats(RolloutStats.newBuilder().build()) + .setControl(RolloutControl.newBuilder().build()) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setUid("uid115792") + .setEtag("etag3123477") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Rollout actualResponse = client.updateRollout(rollout, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateRolloutExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Rollout rollout = + Rollout.newBuilder() + .setName(RolloutName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_ID]").toString()) + .setRelease(ReleaseName.of("[PROJECT]", "[LOCATION]", "[RELEASE]").toString()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .setStateMessage("stateMessage1128185398") + .setStateTransitionTime(Timestamp.newBuilder().build()) + .setRootRollout(RolloutName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_ID]").toString()) + .setParentRollout( + RolloutName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_ID]").toString()) + .setRolloutOrchestrationStrategy("rolloutOrchestrationStrategy-1543555165") + .setUnitFilter("unitFilter1813274140") + .setRolloutKind( + RolloutKindName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_KIND_ID]").toString()) + .setStats(RolloutStats.newBuilder().build()) + .setControl(RolloutControl.newBuilder().build()) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setUid("uid115792") + .setEtag("etag3123477") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateRollout(rollout, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteRolloutTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + RolloutName name = RolloutName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_ID]"); + + client.deleteRollout(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteRolloutExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + RolloutName name = RolloutName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_ID]"); + client.deleteRollout(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteRolloutTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-3026/locations/location-3026/rollouts/rollout-3026"; + + client.deleteRollout(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteRolloutExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-3026/locations/location-3026/rollouts/rollout-3026"; + client.deleteRollout(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listRolloutKindsTest() throws Exception { + RolloutKind responsesElement = RolloutKind.newBuilder().build(); + ListRolloutKindsResponse expectedResponse = + ListRolloutKindsResponse.newBuilder() + .setNextPageToken("") + .addAllRolloutKinds(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListRolloutKindsPagedResponse pagedListResponse = client.listRolloutKinds(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getRolloutKindsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listRolloutKindsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listRolloutKinds(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listRolloutKindsTest2() throws Exception { + RolloutKind responsesElement = RolloutKind.newBuilder().build(); + ListRolloutKindsResponse expectedResponse = + ListRolloutKindsResponse.newBuilder() + .setNextPageToken("") + .addAllRolloutKinds(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListRolloutKindsPagedResponse pagedListResponse = client.listRolloutKinds(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getRolloutKindsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listRolloutKindsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + client.listRolloutKinds(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getRolloutKindTest() throws Exception { + RolloutKind expectedResponse = + RolloutKind.newBuilder() + .setName(RolloutKindName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_KIND_ID]").toString()) + .setUnitKind(UnitKindName.of("[PROJECT]", "[LOCATION]", "[UNITKIND]").toString()) + .setRolloutOrchestrationStrategy("rolloutOrchestrationStrategy-1543555165") + .setUnitFilter("unitFilter1813274140") + .setErrorBudget(ErrorBudget.newBuilder().build()) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setUid("uid115792") + .setEtag("etag3123477") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + RolloutKindName name = RolloutKindName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_KIND_ID]"); + + RolloutKind actualResponse = client.getRolloutKind(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getRolloutKindExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + RolloutKindName name = RolloutKindName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_KIND_ID]"); + client.getRolloutKind(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getRolloutKindTest2() throws Exception { + RolloutKind expectedResponse = + RolloutKind.newBuilder() + .setName(RolloutKindName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_KIND_ID]").toString()) + .setUnitKind(UnitKindName.of("[PROJECT]", "[LOCATION]", "[UNITKIND]").toString()) + .setRolloutOrchestrationStrategy("rolloutOrchestrationStrategy-1543555165") + .setUnitFilter("unitFilter1813274140") + .setErrorBudget(ErrorBudget.newBuilder().build()) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setUid("uid115792") + .setEtag("etag3123477") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-754/locations/location-754/rolloutKinds/rolloutKind-754"; + + RolloutKind actualResponse = client.getRolloutKind(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getRolloutKindExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-754/locations/location-754/rolloutKinds/rolloutKind-754"; + client.getRolloutKind(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createRolloutKindTest() throws Exception { + RolloutKind expectedResponse = + RolloutKind.newBuilder() + .setName(RolloutKindName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_KIND_ID]").toString()) + .setUnitKind(UnitKindName.of("[PROJECT]", "[LOCATION]", "[UNITKIND]").toString()) + .setRolloutOrchestrationStrategy("rolloutOrchestrationStrategy-1543555165") + .setUnitFilter("unitFilter1813274140") + .setErrorBudget(ErrorBudget.newBuilder().build()) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setUid("uid115792") + .setEtag("etag3123477") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + RolloutKind rolloutKind = RolloutKind.newBuilder().build(); + String rolloutKindId = "rolloutKindId-1380592416"; + + RolloutKind actualResponse = client.createRolloutKind(parent, rolloutKind, rolloutKindId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createRolloutKindExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + RolloutKind rolloutKind = RolloutKind.newBuilder().build(); + String rolloutKindId = "rolloutKindId-1380592416"; + client.createRolloutKind(parent, rolloutKind, rolloutKindId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createRolloutKindTest2() throws Exception { + RolloutKind expectedResponse = + RolloutKind.newBuilder() + .setName(RolloutKindName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_KIND_ID]").toString()) + .setUnitKind(UnitKindName.of("[PROJECT]", "[LOCATION]", "[UNITKIND]").toString()) + .setRolloutOrchestrationStrategy("rolloutOrchestrationStrategy-1543555165") + .setUnitFilter("unitFilter1813274140") + .setErrorBudget(ErrorBudget.newBuilder().build()) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setUid("uid115792") + .setEtag("etag3123477") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + RolloutKind rolloutKind = RolloutKind.newBuilder().build(); + String rolloutKindId = "rolloutKindId-1380592416"; + + RolloutKind actualResponse = client.createRolloutKind(parent, rolloutKind, rolloutKindId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createRolloutKindExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + RolloutKind rolloutKind = RolloutKind.newBuilder().build(); + String rolloutKindId = "rolloutKindId-1380592416"; + client.createRolloutKind(parent, rolloutKind, rolloutKindId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateRolloutKindTest() throws Exception { + RolloutKind expectedResponse = + RolloutKind.newBuilder() + .setName(RolloutKindName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_KIND_ID]").toString()) + .setUnitKind(UnitKindName.of("[PROJECT]", "[LOCATION]", "[UNITKIND]").toString()) + .setRolloutOrchestrationStrategy("rolloutOrchestrationStrategy-1543555165") + .setUnitFilter("unitFilter1813274140") + .setErrorBudget(ErrorBudget.newBuilder().build()) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setUid("uid115792") + .setEtag("etag3123477") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + RolloutKind rolloutKind = + RolloutKind.newBuilder() + .setName(RolloutKindName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_KIND_ID]").toString()) + .setUnitKind(UnitKindName.of("[PROJECT]", "[LOCATION]", "[UNITKIND]").toString()) + .setRolloutOrchestrationStrategy("rolloutOrchestrationStrategy-1543555165") + .setUnitFilter("unitFilter1813274140") + .setErrorBudget(ErrorBudget.newBuilder().build()) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setUid("uid115792") + .setEtag("etag3123477") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + RolloutKind actualResponse = client.updateRolloutKind(rolloutKind, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateRolloutKindExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + RolloutKind rolloutKind = + RolloutKind.newBuilder() + .setName( + RolloutKindName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_KIND_ID]").toString()) + .setUnitKind(UnitKindName.of("[PROJECT]", "[LOCATION]", "[UNITKIND]").toString()) + .setRolloutOrchestrationStrategy("rolloutOrchestrationStrategy-1543555165") + .setUnitFilter("unitFilter1813274140") + .setErrorBudget(ErrorBudget.newBuilder().build()) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setUid("uid115792") + .setEtag("etag3123477") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateRolloutKind(rolloutKind, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteRolloutKindTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + RolloutKindName name = RolloutKindName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_KIND_ID]"); + + client.deleteRolloutKind(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteRolloutKindExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + RolloutKindName name = RolloutKindName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_KIND_ID]"); + client.deleteRolloutKind(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteRolloutKindTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-754/locations/location-754/rolloutKinds/rolloutKind-754"; + + client.deleteRolloutKind(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteRolloutKindExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-754/locations/location-754/rolloutKinds/rolloutKind-754"; + client.deleteRolloutKind(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listLocationsTest() throws Exception { + Location responsesElement = Location.newBuilder().build(); + ListLocationsResponse expectedResponse = + ListLocationsResponse.newBuilder() + .setNextPageToken("") + .addAllLocations(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("projects/project-3664") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListLocationsPagedResponse pagedListResponse = client.listLocations(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listLocationsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("projects/project-3664") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listLocations(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLocationTest() throws Exception { + Location expectedResponse = + Location.newBuilder() + .setName("name3373707") + .setLocationId("locationId1541836720") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setMetadata(Any.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + GetLocationRequest request = + GetLocationRequest.newBuilder() + .setName("projects/project-9062/locations/location-9062") + .build(); + + Location actualResponse = client.getLocation(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getLocationExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + GetLocationRequest request = + GetLocationRequest.newBuilder() + .setName("projects/project-9062/locations/location-9062") + .build(); + client.getLocation(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-saasservicemgmt/google-cloud-saasservicemgmt/src/test/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/SaasRolloutsClientTest.java b/java-saasservicemgmt/google-cloud-saasservicemgmt/src/test/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/SaasRolloutsClientTest.java new file mode 100644 index 000000000000..50919f6c8f8b --- /dev/null +++ b/java-saasservicemgmt/google-cloud-saasservicemgmt/src/test/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/SaasRolloutsClientTest.java @@ -0,0 +1,1062 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1; + +import static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsClient.ListLocationsPagedResponse; +import static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsClient.ListRolloutKindsPagedResponse; +import static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsClient.ListRolloutsPagedResponse; + +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.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.collect.Lists; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Any; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.UUID; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class SaasRolloutsClientTest { + private static MockLocations mockLocations; + private static MockSaasRollouts mockSaasRollouts; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private SaasRolloutsClient client; + + @BeforeClass + public static void startStaticServer() { + mockSaasRollouts = new MockSaasRollouts(); + mockLocations = new MockLocations(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList(mockSaasRollouts, mockLocations)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + SaasRolloutsSettings settings = + SaasRolloutsSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = SaasRolloutsClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void listRolloutsTest() throws Exception { + Rollout responsesElement = Rollout.newBuilder().build(); + ListRolloutsResponse expectedResponse = + ListRolloutsResponse.newBuilder() + .setNextPageToken("") + .addAllRollouts(Arrays.asList(responsesElement)) + .build(); + mockSaasRollouts.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListRolloutsPagedResponse pagedListResponse = client.listRollouts(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getRolloutsList().get(0), resources.get(0)); + + List actualRequests = mockSaasRollouts.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListRolloutsRequest actualRequest = ((ListRolloutsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listRolloutsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSaasRollouts.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listRollouts(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listRolloutsTest2() throws Exception { + Rollout responsesElement = Rollout.newBuilder().build(); + ListRolloutsResponse expectedResponse = + ListRolloutsResponse.newBuilder() + .setNextPageToken("") + .addAllRollouts(Arrays.asList(responsesElement)) + .build(); + mockSaasRollouts.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListRolloutsPagedResponse pagedListResponse = client.listRollouts(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getRolloutsList().get(0), resources.get(0)); + + List actualRequests = mockSaasRollouts.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListRolloutsRequest actualRequest = ((ListRolloutsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listRolloutsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSaasRollouts.addException(exception); + + try { + String parent = "parent-995424086"; + client.listRollouts(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getRolloutTest() throws Exception { + Rollout expectedResponse = + Rollout.newBuilder() + .setName(RolloutName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_ID]").toString()) + .setRelease(ReleaseName.of("[PROJECT]", "[LOCATION]", "[RELEASE]").toString()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .setStateMessage("stateMessage1128185398") + .setStateTransitionTime(Timestamp.newBuilder().build()) + .setRootRollout(RolloutName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_ID]").toString()) + .setParentRollout(RolloutName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_ID]").toString()) + .setRolloutOrchestrationStrategy("rolloutOrchestrationStrategy-1543555165") + .setUnitFilter("unitFilter1813274140") + .setRolloutKind( + RolloutKindName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_KIND_ID]").toString()) + .setStats(RolloutStats.newBuilder().build()) + .setControl(RolloutControl.newBuilder().build()) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setUid("uid115792") + .setEtag("etag3123477") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockSaasRollouts.addResponse(expectedResponse); + + RolloutName name = RolloutName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_ID]"); + + Rollout actualResponse = client.getRollout(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSaasRollouts.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetRolloutRequest actualRequest = ((GetRolloutRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getRolloutExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSaasRollouts.addException(exception); + + try { + RolloutName name = RolloutName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_ID]"); + client.getRollout(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getRolloutTest2() throws Exception { + Rollout expectedResponse = + Rollout.newBuilder() + .setName(RolloutName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_ID]").toString()) + .setRelease(ReleaseName.of("[PROJECT]", "[LOCATION]", "[RELEASE]").toString()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .setStateMessage("stateMessage1128185398") + .setStateTransitionTime(Timestamp.newBuilder().build()) + .setRootRollout(RolloutName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_ID]").toString()) + .setParentRollout(RolloutName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_ID]").toString()) + .setRolloutOrchestrationStrategy("rolloutOrchestrationStrategy-1543555165") + .setUnitFilter("unitFilter1813274140") + .setRolloutKind( + RolloutKindName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_KIND_ID]").toString()) + .setStats(RolloutStats.newBuilder().build()) + .setControl(RolloutControl.newBuilder().build()) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setUid("uid115792") + .setEtag("etag3123477") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockSaasRollouts.addResponse(expectedResponse); + + String name = "name3373707"; + + Rollout actualResponse = client.getRollout(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSaasRollouts.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetRolloutRequest actualRequest = ((GetRolloutRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getRolloutExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSaasRollouts.addException(exception); + + try { + String name = "name3373707"; + client.getRollout(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createRolloutTest() throws Exception { + Rollout expectedResponse = + Rollout.newBuilder() + .setName(RolloutName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_ID]").toString()) + .setRelease(ReleaseName.of("[PROJECT]", "[LOCATION]", "[RELEASE]").toString()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .setStateMessage("stateMessage1128185398") + .setStateTransitionTime(Timestamp.newBuilder().build()) + .setRootRollout(RolloutName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_ID]").toString()) + .setParentRollout(RolloutName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_ID]").toString()) + .setRolloutOrchestrationStrategy("rolloutOrchestrationStrategy-1543555165") + .setUnitFilter("unitFilter1813274140") + .setRolloutKind( + RolloutKindName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_KIND_ID]").toString()) + .setStats(RolloutStats.newBuilder().build()) + .setControl(RolloutControl.newBuilder().build()) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setUid("uid115792") + .setEtag("etag3123477") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockSaasRollouts.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Rollout rollout = Rollout.newBuilder().build(); + String rolloutId = "rolloutId551248556"; + + Rollout actualResponse = client.createRollout(parent, rollout, rolloutId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSaasRollouts.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateRolloutRequest actualRequest = ((CreateRolloutRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(rollout, actualRequest.getRollout()); + Assert.assertEquals(rolloutId, actualRequest.getRolloutId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createRolloutExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSaasRollouts.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Rollout rollout = Rollout.newBuilder().build(); + String rolloutId = "rolloutId551248556"; + client.createRollout(parent, rollout, rolloutId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createRolloutTest2() throws Exception { + Rollout expectedResponse = + Rollout.newBuilder() + .setName(RolloutName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_ID]").toString()) + .setRelease(ReleaseName.of("[PROJECT]", "[LOCATION]", "[RELEASE]").toString()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .setStateMessage("stateMessage1128185398") + .setStateTransitionTime(Timestamp.newBuilder().build()) + .setRootRollout(RolloutName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_ID]").toString()) + .setParentRollout(RolloutName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_ID]").toString()) + .setRolloutOrchestrationStrategy("rolloutOrchestrationStrategy-1543555165") + .setUnitFilter("unitFilter1813274140") + .setRolloutKind( + RolloutKindName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_KIND_ID]").toString()) + .setStats(RolloutStats.newBuilder().build()) + .setControl(RolloutControl.newBuilder().build()) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setUid("uid115792") + .setEtag("etag3123477") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockSaasRollouts.addResponse(expectedResponse); + + String parent = "parent-995424086"; + Rollout rollout = Rollout.newBuilder().build(); + String rolloutId = "rolloutId551248556"; + + Rollout actualResponse = client.createRollout(parent, rollout, rolloutId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSaasRollouts.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateRolloutRequest actualRequest = ((CreateRolloutRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(rollout, actualRequest.getRollout()); + Assert.assertEquals(rolloutId, actualRequest.getRolloutId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createRolloutExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSaasRollouts.addException(exception); + + try { + String parent = "parent-995424086"; + Rollout rollout = Rollout.newBuilder().build(); + String rolloutId = "rolloutId551248556"; + client.createRollout(parent, rollout, rolloutId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateRolloutTest() throws Exception { + Rollout expectedResponse = + Rollout.newBuilder() + .setName(RolloutName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_ID]").toString()) + .setRelease(ReleaseName.of("[PROJECT]", "[LOCATION]", "[RELEASE]").toString()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .setStateMessage("stateMessage1128185398") + .setStateTransitionTime(Timestamp.newBuilder().build()) + .setRootRollout(RolloutName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_ID]").toString()) + .setParentRollout(RolloutName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_ID]").toString()) + .setRolloutOrchestrationStrategy("rolloutOrchestrationStrategy-1543555165") + .setUnitFilter("unitFilter1813274140") + .setRolloutKind( + RolloutKindName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_KIND_ID]").toString()) + .setStats(RolloutStats.newBuilder().build()) + .setControl(RolloutControl.newBuilder().build()) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setUid("uid115792") + .setEtag("etag3123477") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockSaasRollouts.addResponse(expectedResponse); + + Rollout rollout = Rollout.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Rollout actualResponse = client.updateRollout(rollout, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSaasRollouts.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateRolloutRequest actualRequest = ((UpdateRolloutRequest) actualRequests.get(0)); + + Assert.assertEquals(rollout, actualRequest.getRollout()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateRolloutExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSaasRollouts.addException(exception); + + try { + Rollout rollout = Rollout.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateRollout(rollout, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteRolloutTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockSaasRollouts.addResponse(expectedResponse); + + RolloutName name = RolloutName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_ID]"); + + client.deleteRollout(name); + + List actualRequests = mockSaasRollouts.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteRolloutRequest actualRequest = ((DeleteRolloutRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteRolloutExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSaasRollouts.addException(exception); + + try { + RolloutName name = RolloutName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_ID]"); + client.deleteRollout(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteRolloutTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockSaasRollouts.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteRollout(name); + + List actualRequests = mockSaasRollouts.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteRolloutRequest actualRequest = ((DeleteRolloutRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteRolloutExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSaasRollouts.addException(exception); + + try { + String name = "name3373707"; + client.deleteRollout(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listRolloutKindsTest() throws Exception { + RolloutKind responsesElement = RolloutKind.newBuilder().build(); + ListRolloutKindsResponse expectedResponse = + ListRolloutKindsResponse.newBuilder() + .setNextPageToken("") + .addAllRolloutKinds(Arrays.asList(responsesElement)) + .build(); + mockSaasRollouts.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListRolloutKindsPagedResponse pagedListResponse = client.listRolloutKinds(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getRolloutKindsList().get(0), resources.get(0)); + + List actualRequests = mockSaasRollouts.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListRolloutKindsRequest actualRequest = ((ListRolloutKindsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listRolloutKindsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSaasRollouts.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listRolloutKinds(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listRolloutKindsTest2() throws Exception { + RolloutKind responsesElement = RolloutKind.newBuilder().build(); + ListRolloutKindsResponse expectedResponse = + ListRolloutKindsResponse.newBuilder() + .setNextPageToken("") + .addAllRolloutKinds(Arrays.asList(responsesElement)) + .build(); + mockSaasRollouts.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListRolloutKindsPagedResponse pagedListResponse = client.listRolloutKinds(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getRolloutKindsList().get(0), resources.get(0)); + + List actualRequests = mockSaasRollouts.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListRolloutKindsRequest actualRequest = ((ListRolloutKindsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listRolloutKindsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSaasRollouts.addException(exception); + + try { + String parent = "parent-995424086"; + client.listRolloutKinds(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getRolloutKindTest() throws Exception { + RolloutKind expectedResponse = + RolloutKind.newBuilder() + .setName(RolloutKindName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_KIND_ID]").toString()) + .setUnitKind(UnitKindName.of("[PROJECT]", "[LOCATION]", "[UNITKIND]").toString()) + .setRolloutOrchestrationStrategy("rolloutOrchestrationStrategy-1543555165") + .setUnitFilter("unitFilter1813274140") + .setErrorBudget(ErrorBudget.newBuilder().build()) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setUid("uid115792") + .setEtag("etag3123477") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockSaasRollouts.addResponse(expectedResponse); + + RolloutKindName name = RolloutKindName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_KIND_ID]"); + + RolloutKind actualResponse = client.getRolloutKind(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSaasRollouts.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetRolloutKindRequest actualRequest = ((GetRolloutKindRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getRolloutKindExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSaasRollouts.addException(exception); + + try { + RolloutKindName name = RolloutKindName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_KIND_ID]"); + client.getRolloutKind(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getRolloutKindTest2() throws Exception { + RolloutKind expectedResponse = + RolloutKind.newBuilder() + .setName(RolloutKindName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_KIND_ID]").toString()) + .setUnitKind(UnitKindName.of("[PROJECT]", "[LOCATION]", "[UNITKIND]").toString()) + .setRolloutOrchestrationStrategy("rolloutOrchestrationStrategy-1543555165") + .setUnitFilter("unitFilter1813274140") + .setErrorBudget(ErrorBudget.newBuilder().build()) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setUid("uid115792") + .setEtag("etag3123477") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockSaasRollouts.addResponse(expectedResponse); + + String name = "name3373707"; + + RolloutKind actualResponse = client.getRolloutKind(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSaasRollouts.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetRolloutKindRequest actualRequest = ((GetRolloutKindRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getRolloutKindExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSaasRollouts.addException(exception); + + try { + String name = "name3373707"; + client.getRolloutKind(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createRolloutKindTest() throws Exception { + RolloutKind expectedResponse = + RolloutKind.newBuilder() + .setName(RolloutKindName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_KIND_ID]").toString()) + .setUnitKind(UnitKindName.of("[PROJECT]", "[LOCATION]", "[UNITKIND]").toString()) + .setRolloutOrchestrationStrategy("rolloutOrchestrationStrategy-1543555165") + .setUnitFilter("unitFilter1813274140") + .setErrorBudget(ErrorBudget.newBuilder().build()) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setUid("uid115792") + .setEtag("etag3123477") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockSaasRollouts.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + RolloutKind rolloutKind = RolloutKind.newBuilder().build(); + String rolloutKindId = "rolloutKindId-1380592416"; + + RolloutKind actualResponse = client.createRolloutKind(parent, rolloutKind, rolloutKindId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSaasRollouts.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateRolloutKindRequest actualRequest = ((CreateRolloutKindRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(rolloutKind, actualRequest.getRolloutKind()); + Assert.assertEquals(rolloutKindId, actualRequest.getRolloutKindId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createRolloutKindExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSaasRollouts.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + RolloutKind rolloutKind = RolloutKind.newBuilder().build(); + String rolloutKindId = "rolloutKindId-1380592416"; + client.createRolloutKind(parent, rolloutKind, rolloutKindId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createRolloutKindTest2() throws Exception { + RolloutKind expectedResponse = + RolloutKind.newBuilder() + .setName(RolloutKindName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_KIND_ID]").toString()) + .setUnitKind(UnitKindName.of("[PROJECT]", "[LOCATION]", "[UNITKIND]").toString()) + .setRolloutOrchestrationStrategy("rolloutOrchestrationStrategy-1543555165") + .setUnitFilter("unitFilter1813274140") + .setErrorBudget(ErrorBudget.newBuilder().build()) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setUid("uid115792") + .setEtag("etag3123477") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockSaasRollouts.addResponse(expectedResponse); + + String parent = "parent-995424086"; + RolloutKind rolloutKind = RolloutKind.newBuilder().build(); + String rolloutKindId = "rolloutKindId-1380592416"; + + RolloutKind actualResponse = client.createRolloutKind(parent, rolloutKind, rolloutKindId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSaasRollouts.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateRolloutKindRequest actualRequest = ((CreateRolloutKindRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(rolloutKind, actualRequest.getRolloutKind()); + Assert.assertEquals(rolloutKindId, actualRequest.getRolloutKindId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createRolloutKindExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSaasRollouts.addException(exception); + + try { + String parent = "parent-995424086"; + RolloutKind rolloutKind = RolloutKind.newBuilder().build(); + String rolloutKindId = "rolloutKindId-1380592416"; + client.createRolloutKind(parent, rolloutKind, rolloutKindId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateRolloutKindTest() throws Exception { + RolloutKind expectedResponse = + RolloutKind.newBuilder() + .setName(RolloutKindName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_KIND_ID]").toString()) + .setUnitKind(UnitKindName.of("[PROJECT]", "[LOCATION]", "[UNITKIND]").toString()) + .setRolloutOrchestrationStrategy("rolloutOrchestrationStrategy-1543555165") + .setUnitFilter("unitFilter1813274140") + .setErrorBudget(ErrorBudget.newBuilder().build()) + .putAllLabels(new HashMap()) + .putAllAnnotations(new HashMap()) + .setUid("uid115792") + .setEtag("etag3123477") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockSaasRollouts.addResponse(expectedResponse); + + RolloutKind rolloutKind = RolloutKind.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + RolloutKind actualResponse = client.updateRolloutKind(rolloutKind, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSaasRollouts.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateRolloutKindRequest actualRequest = ((UpdateRolloutKindRequest) actualRequests.get(0)); + + Assert.assertEquals(rolloutKind, actualRequest.getRolloutKind()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateRolloutKindExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSaasRollouts.addException(exception); + + try { + RolloutKind rolloutKind = RolloutKind.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateRolloutKind(rolloutKind, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteRolloutKindTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockSaasRollouts.addResponse(expectedResponse); + + RolloutKindName name = RolloutKindName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_KIND_ID]"); + + client.deleteRolloutKind(name); + + List actualRequests = mockSaasRollouts.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteRolloutKindRequest actualRequest = ((DeleteRolloutKindRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteRolloutKindExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSaasRollouts.addException(exception); + + try { + RolloutKindName name = RolloutKindName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_KIND_ID]"); + client.deleteRolloutKind(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteRolloutKindTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockSaasRollouts.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteRolloutKind(name); + + List actualRequests = mockSaasRollouts.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteRolloutKindRequest actualRequest = ((DeleteRolloutKindRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteRolloutKindExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSaasRollouts.addException(exception); + + try { + String name = "name3373707"; + client.deleteRolloutKind(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listLocationsTest() throws Exception { + Location responsesElement = Location.newBuilder().build(); + ListLocationsResponse expectedResponse = + ListLocationsResponse.newBuilder() + .setNextPageToken("") + .addAllLocations(Arrays.asList(responsesElement)) + .build(); + mockLocations.addResponse(expectedResponse); + + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListLocationsPagedResponse pagedListResponse = client.listLocations(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0)); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListLocationsRequest actualRequest = ((ListLocationsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getFilter(), actualRequest.getFilter()); + Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); + Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listLocationsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listLocations(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLocationTest() throws Exception { + Location expectedResponse = + Location.newBuilder() + .setName("name3373707") + .setLocationId("locationId1541836720") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setMetadata(Any.newBuilder().build()) + .build(); + mockLocations.addResponse(expectedResponse); + + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + + Location actualResponse = client.getLocation(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetLocationRequest actualRequest = ((GetLocationRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getLocationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + client.getLocation(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-saasservicemgmt/grpc-google-cloud-saasservicemgmt-v1beta1/pom.xml b/java-saasservicemgmt/grpc-google-cloud-saasservicemgmt-v1beta1/pom.xml new file mode 100644 index 000000000000..bf625adb72d8 --- /dev/null +++ b/java-saasservicemgmt/grpc-google-cloud-saasservicemgmt-v1beta1/pom.xml @@ -0,0 +1,45 @@ + + 4.0.0 + com.google.api.grpc + grpc-google-cloud-saasservicemgmt-v1beta1 + 0.0.1-SNAPSHOT + grpc-google-cloud-saasservicemgmt-v1beta1 + GRPC library for google-cloud-saasservicemgmt + + com.google.cloud + google-cloud-saasservicemgmt-parent + 0.0.1-SNAPSHOT + + + + io.grpc + grpc-api + + + io.grpc + grpc-stub + + + io.grpc + grpc-protobuf + + + com.google.protobuf + protobuf-java + + + com.google.api.grpc + proto-google-common-protos + + + com.google.api.grpc + proto-google-cloud-saasservicemgmt-v1beta1 + + + com.google.guava + guava + + + diff --git a/java-saasservicemgmt/grpc-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/SaasDeploymentsGrpc.java b/java-saasservicemgmt/grpc-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/SaasDeploymentsGrpc.java new file mode 100644 index 000000000000..c2618ca9cc94 --- /dev/null +++ b/java-saasservicemgmt/grpc-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/SaasDeploymentsGrpc.java @@ -0,0 +1,4352 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * Manages the deployment of SaaS services.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = + "Source: google/cloud/saasplatform/saasservicemgmt/v1beta1/deployments_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class SaasDeploymentsGrpc { + + private SaasDeploymentsGrpc() {} + + public static final java.lang.String SERVICE_NAME = + "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeployments"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasResponse> + getListSaasMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListSaas", + requestType = com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasRequest.class, + responseType = com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasResponse> + getListSaasMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasResponse> + getListSaasMethod; + if ((getListSaasMethod = SaasDeploymentsGrpc.getListSaasMethod) == null) { + synchronized (SaasDeploymentsGrpc.class) { + if ((getListSaasMethod = SaasDeploymentsGrpc.getListSaasMethod) == null) { + SaasDeploymentsGrpc.getListSaasMethod = + getListSaasMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSaas")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasResponse + .getDefaultInstance())) + .setSchemaDescriptor(new SaasDeploymentsMethodDescriptorSupplier("ListSaas")) + .build(); + } + } + } + return getListSaasMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetSaasRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas> + getGetSaasMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetSaas", + requestType = com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetSaasRequest.class, + responseType = com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetSaasRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas> + getGetSaasMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetSaasRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas> + getGetSaasMethod; + if ((getGetSaasMethod = SaasDeploymentsGrpc.getGetSaasMethod) == null) { + synchronized (SaasDeploymentsGrpc.class) { + if ((getGetSaasMethod = SaasDeploymentsGrpc.getGetSaasMethod) == null) { + SaasDeploymentsGrpc.getGetSaasMethod = + getGetSaasMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSaas")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetSaasRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas + .getDefaultInstance())) + .setSchemaDescriptor(new SaasDeploymentsMethodDescriptorSupplier("GetSaas")) + .build(); + } + } + } + return getGetSaasMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateSaasRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas> + getCreateSaasMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateSaas", + requestType = com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateSaasRequest.class, + responseType = com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateSaasRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas> + getCreateSaasMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateSaasRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas> + getCreateSaasMethod; + if ((getCreateSaasMethod = SaasDeploymentsGrpc.getCreateSaasMethod) == null) { + synchronized (SaasDeploymentsGrpc.class) { + if ((getCreateSaasMethod = SaasDeploymentsGrpc.getCreateSaasMethod) == null) { + SaasDeploymentsGrpc.getCreateSaasMethod = + getCreateSaasMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSaas")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1 + .CreateSaasRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas + .getDefaultInstance())) + .setSchemaDescriptor( + new SaasDeploymentsMethodDescriptorSupplier("CreateSaas")) + .build(); + } + } + } + return getCreateSaasMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateSaasRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas> + getUpdateSaasMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateSaas", + requestType = com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateSaasRequest.class, + responseType = com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateSaasRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas> + getUpdateSaasMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateSaasRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas> + getUpdateSaasMethod; + if ((getUpdateSaasMethod = SaasDeploymentsGrpc.getUpdateSaasMethod) == null) { + synchronized (SaasDeploymentsGrpc.class) { + if ((getUpdateSaasMethod = SaasDeploymentsGrpc.getUpdateSaasMethod) == null) { + SaasDeploymentsGrpc.getUpdateSaasMethod = + getUpdateSaasMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSaas")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1 + .UpdateSaasRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas + .getDefaultInstance())) + .setSchemaDescriptor( + new SaasDeploymentsMethodDescriptorSupplier("UpdateSaas")) + .build(); + } + } + } + return getUpdateSaasMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteSaasRequest, + com.google.protobuf.Empty> + getDeleteSaasMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteSaas", + requestType = com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteSaasRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteSaasRequest, + com.google.protobuf.Empty> + getDeleteSaasMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteSaasRequest, + com.google.protobuf.Empty> + getDeleteSaasMethod; + if ((getDeleteSaasMethod = SaasDeploymentsGrpc.getDeleteSaasMethod) == null) { + synchronized (SaasDeploymentsGrpc.class) { + if ((getDeleteSaasMethod = SaasDeploymentsGrpc.getDeleteSaasMethod) == null) { + SaasDeploymentsGrpc.getDeleteSaasMethod = + getDeleteSaasMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteSaas")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1 + .DeleteSaasRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new SaasDeploymentsMethodDescriptorSupplier("DeleteSaas")) + .build(); + } + } + } + return getDeleteSaasMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsResponse> + getListTenantsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListTenants", + requestType = com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsRequest.class, + responseType = + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsResponse> + getListTenantsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsResponse> + getListTenantsMethod; + if ((getListTenantsMethod = SaasDeploymentsGrpc.getListTenantsMethod) == null) { + synchronized (SaasDeploymentsGrpc.class) { + if ((getListTenantsMethod = SaasDeploymentsGrpc.getListTenantsMethod) == null) { + SaasDeploymentsGrpc.getListTenantsMethod = + getListTenantsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListTenants")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1 + .ListTenantsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1 + .ListTenantsResponse.getDefaultInstance())) + .setSchemaDescriptor( + new SaasDeploymentsMethodDescriptorSupplier("ListTenants")) + .build(); + } + } + } + return getListTenantsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetTenantRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant> + getGetTenantMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetTenant", + requestType = com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetTenantRequest.class, + responseType = com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetTenantRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant> + getGetTenantMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetTenantRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant> + getGetTenantMethod; + if ((getGetTenantMethod = SaasDeploymentsGrpc.getGetTenantMethod) == null) { + synchronized (SaasDeploymentsGrpc.class) { + if ((getGetTenantMethod = SaasDeploymentsGrpc.getGetTenantMethod) == null) { + SaasDeploymentsGrpc.getGetTenantMethod = + getGetTenantMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTenant")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetTenantRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant + .getDefaultInstance())) + .setSchemaDescriptor(new SaasDeploymentsMethodDescriptorSupplier("GetTenant")) + .build(); + } + } + } + return getGetTenantMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateTenantRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant> + getCreateTenantMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateTenant", + requestType = com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateTenantRequest.class, + responseType = com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateTenantRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant> + getCreateTenantMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateTenantRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant> + getCreateTenantMethod; + if ((getCreateTenantMethod = SaasDeploymentsGrpc.getCreateTenantMethod) == null) { + synchronized (SaasDeploymentsGrpc.class) { + if ((getCreateTenantMethod = SaasDeploymentsGrpc.getCreateTenantMethod) == null) { + SaasDeploymentsGrpc.getCreateTenantMethod = + getCreateTenantMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateTenant")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1 + .CreateTenantRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant + .getDefaultInstance())) + .setSchemaDescriptor( + new SaasDeploymentsMethodDescriptorSupplier("CreateTenant")) + .build(); + } + } + } + return getCreateTenantMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateTenantRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant> + getUpdateTenantMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateTenant", + requestType = com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateTenantRequest.class, + responseType = com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateTenantRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant> + getUpdateTenantMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateTenantRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant> + getUpdateTenantMethod; + if ((getUpdateTenantMethod = SaasDeploymentsGrpc.getUpdateTenantMethod) == null) { + synchronized (SaasDeploymentsGrpc.class) { + if ((getUpdateTenantMethod = SaasDeploymentsGrpc.getUpdateTenantMethod) == null) { + SaasDeploymentsGrpc.getUpdateTenantMethod = + getUpdateTenantMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateTenant")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1 + .UpdateTenantRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant + .getDefaultInstance())) + .setSchemaDescriptor( + new SaasDeploymentsMethodDescriptorSupplier("UpdateTenant")) + .build(); + } + } + } + return getUpdateTenantMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteTenantRequest, + com.google.protobuf.Empty> + getDeleteTenantMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteTenant", + requestType = com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteTenantRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteTenantRequest, + com.google.protobuf.Empty> + getDeleteTenantMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteTenantRequest, + com.google.protobuf.Empty> + getDeleteTenantMethod; + if ((getDeleteTenantMethod = SaasDeploymentsGrpc.getDeleteTenantMethod) == null) { + synchronized (SaasDeploymentsGrpc.class) { + if ((getDeleteTenantMethod = SaasDeploymentsGrpc.getDeleteTenantMethod) == null) { + SaasDeploymentsGrpc.getDeleteTenantMethod = + getDeleteTenantMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteTenant")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1 + .DeleteTenantRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new SaasDeploymentsMethodDescriptorSupplier("DeleteTenant")) + .build(); + } + } + } + return getDeleteTenantMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsResponse> + getListUnitKindsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListUnitKinds", + requestType = + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsRequest.class, + responseType = + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsResponse> + getListUnitKindsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsResponse> + getListUnitKindsMethod; + if ((getListUnitKindsMethod = SaasDeploymentsGrpc.getListUnitKindsMethod) == null) { + synchronized (SaasDeploymentsGrpc.class) { + if ((getListUnitKindsMethod = SaasDeploymentsGrpc.getListUnitKindsMethod) == null) { + SaasDeploymentsGrpc.getListUnitKindsMethod = + getListUnitKindsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListUnitKinds")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1 + .ListUnitKindsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1 + .ListUnitKindsResponse.getDefaultInstance())) + .setSchemaDescriptor( + new SaasDeploymentsMethodDescriptorSupplier("ListUnitKinds")) + .build(); + } + } + } + return getListUnitKindsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitKindRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind> + getGetUnitKindMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetUnitKind", + requestType = com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitKindRequest.class, + responseType = com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitKindRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind> + getGetUnitKindMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitKindRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind> + getGetUnitKindMethod; + if ((getGetUnitKindMethod = SaasDeploymentsGrpc.getGetUnitKindMethod) == null) { + synchronized (SaasDeploymentsGrpc.class) { + if ((getGetUnitKindMethod = SaasDeploymentsGrpc.getGetUnitKindMethod) == null) { + SaasDeploymentsGrpc.getGetUnitKindMethod = + getGetUnitKindMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetUnitKind")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1 + .GetUnitKindRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind + .getDefaultInstance())) + .setSchemaDescriptor( + new SaasDeploymentsMethodDescriptorSupplier("GetUnitKind")) + .build(); + } + } + } + return getGetUnitKindMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitKindRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind> + getCreateUnitKindMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateUnitKind", + requestType = + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitKindRequest.class, + responseType = com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitKindRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind> + getCreateUnitKindMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitKindRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind> + getCreateUnitKindMethod; + if ((getCreateUnitKindMethod = SaasDeploymentsGrpc.getCreateUnitKindMethod) == null) { + synchronized (SaasDeploymentsGrpc.class) { + if ((getCreateUnitKindMethod = SaasDeploymentsGrpc.getCreateUnitKindMethod) == null) { + SaasDeploymentsGrpc.getCreateUnitKindMethod = + getCreateUnitKindMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateUnitKind")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1 + .CreateUnitKindRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind + .getDefaultInstance())) + .setSchemaDescriptor( + new SaasDeploymentsMethodDescriptorSupplier("CreateUnitKind")) + .build(); + } + } + } + return getCreateUnitKindMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitKindRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind> + getUpdateUnitKindMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateUnitKind", + requestType = + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitKindRequest.class, + responseType = com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitKindRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind> + getUpdateUnitKindMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitKindRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind> + getUpdateUnitKindMethod; + if ((getUpdateUnitKindMethod = SaasDeploymentsGrpc.getUpdateUnitKindMethod) == null) { + synchronized (SaasDeploymentsGrpc.class) { + if ((getUpdateUnitKindMethod = SaasDeploymentsGrpc.getUpdateUnitKindMethod) == null) { + SaasDeploymentsGrpc.getUpdateUnitKindMethod = + getUpdateUnitKindMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateUnitKind")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1 + .UpdateUnitKindRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind + .getDefaultInstance())) + .setSchemaDescriptor( + new SaasDeploymentsMethodDescriptorSupplier("UpdateUnitKind")) + .build(); + } + } + } + return getUpdateUnitKindMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitKindRequest, + com.google.protobuf.Empty> + getDeleteUnitKindMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteUnitKind", + requestType = + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitKindRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitKindRequest, + com.google.protobuf.Empty> + getDeleteUnitKindMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitKindRequest, + com.google.protobuf.Empty> + getDeleteUnitKindMethod; + if ((getDeleteUnitKindMethod = SaasDeploymentsGrpc.getDeleteUnitKindMethod) == null) { + synchronized (SaasDeploymentsGrpc.class) { + if ((getDeleteUnitKindMethod = SaasDeploymentsGrpc.getDeleteUnitKindMethod) == null) { + SaasDeploymentsGrpc.getDeleteUnitKindMethod = + getDeleteUnitKindMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteUnitKind")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1 + .DeleteUnitKindRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new SaasDeploymentsMethodDescriptorSupplier("DeleteUnitKind")) + .build(); + } + } + } + return getDeleteUnitKindMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsResponse> + getListUnitsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListUnits", + requestType = com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsRequest.class, + responseType = com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsResponse> + getListUnitsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsResponse> + getListUnitsMethod; + if ((getListUnitsMethod = SaasDeploymentsGrpc.getListUnitsMethod) == null) { + synchronized (SaasDeploymentsGrpc.class) { + if ((getListUnitsMethod = SaasDeploymentsGrpc.getListUnitsMethod) == null) { + SaasDeploymentsGrpc.getListUnitsMethod = + getListUnitsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListUnits")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1 + .ListUnitsResponse.getDefaultInstance())) + .setSchemaDescriptor(new SaasDeploymentsMethodDescriptorSupplier("ListUnits")) + .build(); + } + } + } + return getListUnitsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit> + getGetUnitMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetUnit", + requestType = com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitRequest.class, + responseType = com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit> + getGetUnitMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit> + getGetUnitMethod; + if ((getGetUnitMethod = SaasDeploymentsGrpc.getGetUnitMethod) == null) { + synchronized (SaasDeploymentsGrpc.class) { + if ((getGetUnitMethod = SaasDeploymentsGrpc.getGetUnitMethod) == null) { + SaasDeploymentsGrpc.getGetUnitMethod = + getGetUnitMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetUnit")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit + .getDefaultInstance())) + .setSchemaDescriptor(new SaasDeploymentsMethodDescriptorSupplier("GetUnit")) + .build(); + } + } + } + return getGetUnitMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit> + getCreateUnitMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateUnit", + requestType = com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitRequest.class, + responseType = com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit> + getCreateUnitMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit> + getCreateUnitMethod; + if ((getCreateUnitMethod = SaasDeploymentsGrpc.getCreateUnitMethod) == null) { + synchronized (SaasDeploymentsGrpc.class) { + if ((getCreateUnitMethod = SaasDeploymentsGrpc.getCreateUnitMethod) == null) { + SaasDeploymentsGrpc.getCreateUnitMethod = + getCreateUnitMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateUnit")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1 + .CreateUnitRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit + .getDefaultInstance())) + .setSchemaDescriptor( + new SaasDeploymentsMethodDescriptorSupplier("CreateUnit")) + .build(); + } + } + } + return getCreateUnitMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit> + getUpdateUnitMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateUnit", + requestType = com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitRequest.class, + responseType = com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit> + getUpdateUnitMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit> + getUpdateUnitMethod; + if ((getUpdateUnitMethod = SaasDeploymentsGrpc.getUpdateUnitMethod) == null) { + synchronized (SaasDeploymentsGrpc.class) { + if ((getUpdateUnitMethod = SaasDeploymentsGrpc.getUpdateUnitMethod) == null) { + SaasDeploymentsGrpc.getUpdateUnitMethod = + getUpdateUnitMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateUnit")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1 + .UpdateUnitRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit + .getDefaultInstance())) + .setSchemaDescriptor( + new SaasDeploymentsMethodDescriptorSupplier("UpdateUnit")) + .build(); + } + } + } + return getUpdateUnitMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitRequest, + com.google.protobuf.Empty> + getDeleteUnitMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteUnit", + requestType = com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitRequest, + com.google.protobuf.Empty> + getDeleteUnitMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitRequest, + com.google.protobuf.Empty> + getDeleteUnitMethod; + if ((getDeleteUnitMethod = SaasDeploymentsGrpc.getDeleteUnitMethod) == null) { + synchronized (SaasDeploymentsGrpc.class) { + if ((getDeleteUnitMethod = SaasDeploymentsGrpc.getDeleteUnitMethod) == null) { + SaasDeploymentsGrpc.getDeleteUnitMethod = + getDeleteUnitMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteUnit")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1 + .DeleteUnitRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new SaasDeploymentsMethodDescriptorSupplier("DeleteUnit")) + .build(); + } + } + } + return getDeleteUnitMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsResponse> + getListUnitOperationsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListUnitOperations", + requestType = + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsRequest.class, + responseType = + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsResponse> + getListUnitOperationsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsResponse> + getListUnitOperationsMethod; + if ((getListUnitOperationsMethod = SaasDeploymentsGrpc.getListUnitOperationsMethod) == null) { + synchronized (SaasDeploymentsGrpc.class) { + if ((getListUnitOperationsMethod = SaasDeploymentsGrpc.getListUnitOperationsMethod) + == null) { + SaasDeploymentsGrpc.getListUnitOperationsMethod = + getListUnitOperationsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListUnitOperations")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1 + .ListUnitOperationsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1 + .ListUnitOperationsResponse.getDefaultInstance())) + .setSchemaDescriptor( + new SaasDeploymentsMethodDescriptorSupplier("ListUnitOperations")) + .build(); + } + } + } + return getListUnitOperationsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitOperationRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation> + getGetUnitOperationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetUnitOperation", + requestType = + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitOperationRequest.class, + responseType = com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitOperationRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation> + getGetUnitOperationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitOperationRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation> + getGetUnitOperationMethod; + if ((getGetUnitOperationMethod = SaasDeploymentsGrpc.getGetUnitOperationMethod) == null) { + synchronized (SaasDeploymentsGrpc.class) { + if ((getGetUnitOperationMethod = SaasDeploymentsGrpc.getGetUnitOperationMethod) == null) { + SaasDeploymentsGrpc.getGetUnitOperationMethod = + getGetUnitOperationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetUnitOperation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1 + .GetUnitOperationRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation + .getDefaultInstance())) + .setSchemaDescriptor( + new SaasDeploymentsMethodDescriptorSupplier("GetUnitOperation")) + .build(); + } + } + } + return getGetUnitOperationMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitOperationRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation> + getCreateUnitOperationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateUnitOperation", + requestType = + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitOperationRequest.class, + responseType = com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitOperationRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation> + getCreateUnitOperationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitOperationRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation> + getCreateUnitOperationMethod; + if ((getCreateUnitOperationMethod = SaasDeploymentsGrpc.getCreateUnitOperationMethod) == null) { + synchronized (SaasDeploymentsGrpc.class) { + if ((getCreateUnitOperationMethod = SaasDeploymentsGrpc.getCreateUnitOperationMethod) + == null) { + SaasDeploymentsGrpc.getCreateUnitOperationMethod = + getCreateUnitOperationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateUnitOperation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1 + .CreateUnitOperationRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation + .getDefaultInstance())) + .setSchemaDescriptor( + new SaasDeploymentsMethodDescriptorSupplier("CreateUnitOperation")) + .build(); + } + } + } + return getCreateUnitOperationMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitOperationRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation> + getUpdateUnitOperationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateUnitOperation", + requestType = + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitOperationRequest.class, + responseType = com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitOperationRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation> + getUpdateUnitOperationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitOperationRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation> + getUpdateUnitOperationMethod; + if ((getUpdateUnitOperationMethod = SaasDeploymentsGrpc.getUpdateUnitOperationMethod) == null) { + synchronized (SaasDeploymentsGrpc.class) { + if ((getUpdateUnitOperationMethod = SaasDeploymentsGrpc.getUpdateUnitOperationMethod) + == null) { + SaasDeploymentsGrpc.getUpdateUnitOperationMethod = + getUpdateUnitOperationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateUnitOperation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1 + .UpdateUnitOperationRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation + .getDefaultInstance())) + .setSchemaDescriptor( + new SaasDeploymentsMethodDescriptorSupplier("UpdateUnitOperation")) + .build(); + } + } + } + return getUpdateUnitOperationMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitOperationRequest, + com.google.protobuf.Empty> + getDeleteUnitOperationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteUnitOperation", + requestType = + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitOperationRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitOperationRequest, + com.google.protobuf.Empty> + getDeleteUnitOperationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitOperationRequest, + com.google.protobuf.Empty> + getDeleteUnitOperationMethod; + if ((getDeleteUnitOperationMethod = SaasDeploymentsGrpc.getDeleteUnitOperationMethod) == null) { + synchronized (SaasDeploymentsGrpc.class) { + if ((getDeleteUnitOperationMethod = SaasDeploymentsGrpc.getDeleteUnitOperationMethod) + == null) { + SaasDeploymentsGrpc.getDeleteUnitOperationMethod = + getDeleteUnitOperationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteUnitOperation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1 + .DeleteUnitOperationRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new SaasDeploymentsMethodDescriptorSupplier("DeleteUnitOperation")) + .build(); + } + } + } + return getDeleteUnitOperationMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesResponse> + getListReleasesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListReleases", + requestType = com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesRequest.class, + responseType = + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesResponse> + getListReleasesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesResponse> + getListReleasesMethod; + if ((getListReleasesMethod = SaasDeploymentsGrpc.getListReleasesMethod) == null) { + synchronized (SaasDeploymentsGrpc.class) { + if ((getListReleasesMethod = SaasDeploymentsGrpc.getListReleasesMethod) == null) { + SaasDeploymentsGrpc.getListReleasesMethod = + getListReleasesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListReleases")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1 + .ListReleasesRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1 + .ListReleasesResponse.getDefaultInstance())) + .setSchemaDescriptor( + new SaasDeploymentsMethodDescriptorSupplier("ListReleases")) + .build(); + } + } + } + return getListReleasesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetReleaseRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release> + getGetReleaseMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetRelease", + requestType = com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetReleaseRequest.class, + responseType = com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetReleaseRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release> + getGetReleaseMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetReleaseRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release> + getGetReleaseMethod; + if ((getGetReleaseMethod = SaasDeploymentsGrpc.getGetReleaseMethod) == null) { + synchronized (SaasDeploymentsGrpc.class) { + if ((getGetReleaseMethod = SaasDeploymentsGrpc.getGetReleaseMethod) == null) { + SaasDeploymentsGrpc.getGetReleaseMethod = + getGetReleaseMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetRelease")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1 + .GetReleaseRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release + .getDefaultInstance())) + .setSchemaDescriptor( + new SaasDeploymentsMethodDescriptorSupplier("GetRelease")) + .build(); + } + } + } + return getGetReleaseMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateReleaseRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release> + getCreateReleaseMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateRelease", + requestType = + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateReleaseRequest.class, + responseType = com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateReleaseRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release> + getCreateReleaseMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateReleaseRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release> + getCreateReleaseMethod; + if ((getCreateReleaseMethod = SaasDeploymentsGrpc.getCreateReleaseMethod) == null) { + synchronized (SaasDeploymentsGrpc.class) { + if ((getCreateReleaseMethod = SaasDeploymentsGrpc.getCreateReleaseMethod) == null) { + SaasDeploymentsGrpc.getCreateReleaseMethod = + getCreateReleaseMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateRelease")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1 + .CreateReleaseRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release + .getDefaultInstance())) + .setSchemaDescriptor( + new SaasDeploymentsMethodDescriptorSupplier("CreateRelease")) + .build(); + } + } + } + return getCreateReleaseMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateReleaseRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release> + getUpdateReleaseMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateRelease", + requestType = + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateReleaseRequest.class, + responseType = com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateReleaseRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release> + getUpdateReleaseMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateReleaseRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release> + getUpdateReleaseMethod; + if ((getUpdateReleaseMethod = SaasDeploymentsGrpc.getUpdateReleaseMethod) == null) { + synchronized (SaasDeploymentsGrpc.class) { + if ((getUpdateReleaseMethod = SaasDeploymentsGrpc.getUpdateReleaseMethod) == null) { + SaasDeploymentsGrpc.getUpdateReleaseMethod = + getUpdateReleaseMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateRelease")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1 + .UpdateReleaseRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release + .getDefaultInstance())) + .setSchemaDescriptor( + new SaasDeploymentsMethodDescriptorSupplier("UpdateRelease")) + .build(); + } + } + } + return getUpdateReleaseMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteReleaseRequest, + com.google.protobuf.Empty> + getDeleteReleaseMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteRelease", + requestType = + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteReleaseRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteReleaseRequest, + com.google.protobuf.Empty> + getDeleteReleaseMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteReleaseRequest, + com.google.protobuf.Empty> + getDeleteReleaseMethod; + if ((getDeleteReleaseMethod = SaasDeploymentsGrpc.getDeleteReleaseMethod) == null) { + synchronized (SaasDeploymentsGrpc.class) { + if ((getDeleteReleaseMethod = SaasDeploymentsGrpc.getDeleteReleaseMethod) == null) { + SaasDeploymentsGrpc.getDeleteReleaseMethod = + getDeleteReleaseMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteRelease")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1 + .DeleteReleaseRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new SaasDeploymentsMethodDescriptorSupplier("DeleteRelease")) + .build(); + } + } + } + return getDeleteReleaseMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static SaasDeploymentsStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SaasDeploymentsStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SaasDeploymentsStub(channel, callOptions); + } + }; + return SaasDeploymentsStub.newStub(factory, channel); + } + + /** Creates a new blocking-style stub that supports all types of calls on the service */ + public static SaasDeploymentsBlockingV2Stub newBlockingV2Stub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SaasDeploymentsBlockingV2Stub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SaasDeploymentsBlockingV2Stub(channel, callOptions); + } + }; + return SaasDeploymentsBlockingV2Stub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static SaasDeploymentsBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SaasDeploymentsBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SaasDeploymentsBlockingStub(channel, callOptions); + } + }; + return SaasDeploymentsBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static SaasDeploymentsFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SaasDeploymentsFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SaasDeploymentsFutureStub(channel, callOptions); + } + }; + return SaasDeploymentsFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Manages the deployment of SaaS services.
+   * 
+ */ + public interface AsyncService { + + /** + * + * + *
+     * Retrieve a collection of saas.
+     * 
+ */ + default void listSaas( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListSaasMethod(), responseObserver); + } + + /** + * + * + *
+     * Retrieve a single saas.
+     * 
+ */ + default void getSaas( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetSaasRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSaasMethod(), responseObserver); + } + + /** + * + * + *
+     * Create a new saas.
+     * 
+ */ + default void createSaas( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateSaasRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateSaasMethod(), responseObserver); + } + + /** + * + * + *
+     * Update a single saas.
+     * 
+ */ + default void updateSaas( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateSaasRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateSaasMethod(), responseObserver); + } + + /** + * + * + *
+     * Delete a single saas.
+     * 
+ */ + default void deleteSaas( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteSaasRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteSaasMethod(), responseObserver); + } + + /** + * + * + *
+     * Retrieve a collection of tenants.
+     * 
+ */ + default void listTenants( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListTenantsMethod(), responseObserver); + } + + /** + * + * + *
+     * Retrieve a single tenant.
+     * 
+ */ + default void getTenant( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetTenantRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetTenantMethod(), responseObserver); + } + + /** + * + * + *
+     * Create a new tenant.
+     * 
+ */ + default void createTenant( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateTenantRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateTenantMethod(), responseObserver); + } + + /** + * + * + *
+     * Update a single tenant.
+     * 
+ */ + default void updateTenant( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateTenantRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateTenantMethod(), responseObserver); + } + + /** + * + * + *
+     * Delete a single tenant.
+     * 
+ */ + default void deleteTenant( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteTenantRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteTenantMethod(), responseObserver); + } + + /** + * + * + *
+     * Retrieve a collection of unit kinds.
+     * 
+ */ + default void listUnitKinds( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListUnitKindsMethod(), responseObserver); + } + + /** + * + * + *
+     * Retrieve a single unit kind.
+     * 
+ */ + default void getUnitKind( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitKindRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetUnitKindMethod(), responseObserver); + } + + /** + * + * + *
+     * Create a new unit kind.
+     * 
+ */ + default void createUnitKind( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitKindRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateUnitKindMethod(), responseObserver); + } + + /** + * + * + *
+     * Update a single unit kind.
+     * 
+ */ + default void updateUnitKind( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitKindRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateUnitKindMethod(), responseObserver); + } + + /** + * + * + *
+     * Delete a single unit kind.
+     * 
+ */ + default void deleteUnitKind( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitKindRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteUnitKindMethod(), responseObserver); + } + + /** + * + * + *
+     * Retrieve a collection of units.
+     * 
+ */ + default void listUnits( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListUnitsMethod(), responseObserver); + } + + /** + * + * + *
+     * Retrieve a single unit.
+     * 
+ */ + default void getUnit( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetUnitMethod(), responseObserver); + } + + /** + * + * + *
+     * Create a new unit.
+     * 
+ */ + default void createUnit( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateUnitMethod(), responseObserver); + } + + /** + * + * + *
+     * Update a single unit.
+     * 
+ */ + default void updateUnit( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateUnitMethod(), responseObserver); + } + + /** + * + * + *
+     * Delete a single unit.
+     * 
+ */ + default void deleteUnit( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteUnitMethod(), responseObserver); + } + + /** + * + * + *
+     * Retrieve a collection of unit operations.
+     * 
+ */ + default void listUnitOperations( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListUnitOperationsMethod(), responseObserver); + } + + /** + * + * + *
+     * Retrieve a single unit operation.
+     * 
+ */ + default void getUnitOperation( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitOperationRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetUnitOperationMethod(), responseObserver); + } + + /** + * + * + *
+     * Create a new unit operation.
+     * 
+ */ + default void createUnitOperation( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitOperationRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateUnitOperationMethod(), responseObserver); + } + + /** + * + * + *
+     * Update a single unit operation.
+     * 
+ */ + default void updateUnitOperation( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitOperationRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateUnitOperationMethod(), responseObserver); + } + + /** + * + * + *
+     * Delete a single unit operation.
+     * 
+ */ + default void deleteUnitOperation( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitOperationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteUnitOperationMethod(), responseObserver); + } + + /** + * + * + *
+     * Retrieve a collection of releases.
+     * 
+ */ + default void listReleases( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListReleasesMethod(), responseObserver); + } + + /** + * + * + *
+     * Retrieve a single release.
+     * 
+ */ + default void getRelease( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetReleaseRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetReleaseMethod(), responseObserver); + } + + /** + * + * + *
+     * Create a new release.
+     * 
+ */ + default void createRelease( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateReleaseRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateReleaseMethod(), responseObserver); + } + + /** + * + * + *
+     * Update a single release.
+     * 
+ */ + default void updateRelease( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateReleaseRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateReleaseMethod(), responseObserver); + } + + /** + * + * + *
+     * Delete a single release.
+     * 
+ */ + default void deleteRelease( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteReleaseRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteReleaseMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service SaasDeployments. + * + *
+   * Manages the deployment of SaaS services.
+   * 
+ */ + public abstract static class SaasDeploymentsImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return SaasDeploymentsGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service SaasDeployments. + * + *
+   * Manages the deployment of SaaS services.
+   * 
+ */ + public static final class SaasDeploymentsStub + extends io.grpc.stub.AbstractAsyncStub { + private SaasDeploymentsStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SaasDeploymentsStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SaasDeploymentsStub(channel, callOptions); + } + + /** + * + * + *
+     * Retrieve a collection of saas.
+     * 
+ */ + public void listSaas( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListSaasMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Retrieve a single saas.
+     * 
+ */ + public void getSaas( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetSaasRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetSaasMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Create a new saas.
+     * 
+ */ + public void createSaas( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateSaasRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateSaasMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Update a single saas.
+     * 
+ */ + public void updateSaas( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateSaasRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateSaasMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Delete a single saas.
+     * 
+ */ + public void deleteSaas( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteSaasRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteSaasMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Retrieve a collection of tenants.
+     * 
+ */ + public void listTenants( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListTenantsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Retrieve a single tenant.
+     * 
+ */ + public void getTenant( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetTenantRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetTenantMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Create a new tenant.
+     * 
+ */ + public void createTenant( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateTenantRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateTenantMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Update a single tenant.
+     * 
+ */ + public void updateTenant( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateTenantRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateTenantMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Delete a single tenant.
+     * 
+ */ + public void deleteTenant( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteTenantRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteTenantMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Retrieve a collection of unit kinds.
+     * 
+ */ + public void listUnitKinds( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListUnitKindsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Retrieve a single unit kind.
+     * 
+ */ + public void getUnitKind( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitKindRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetUnitKindMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Create a new unit kind.
+     * 
+ */ + public void createUnitKind( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitKindRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateUnitKindMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Update a single unit kind.
+     * 
+ */ + public void updateUnitKind( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitKindRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateUnitKindMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Delete a single unit kind.
+     * 
+ */ + public void deleteUnitKind( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitKindRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteUnitKindMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Retrieve a collection of units.
+     * 
+ */ + public void listUnits( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListUnitsMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Retrieve a single unit.
+     * 
+ */ + public void getUnit( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetUnitMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Create a new unit.
+     * 
+ */ + public void createUnit( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateUnitMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Update a single unit.
+     * 
+ */ + public void updateUnit( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateUnitMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Delete a single unit.
+     * 
+ */ + public void deleteUnit( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteUnitMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Retrieve a collection of unit operations.
+     * 
+ */ + public void listUnitOperations( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListUnitOperationsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Retrieve a single unit operation.
+     * 
+ */ + public void getUnitOperation( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitOperationRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetUnitOperationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Create a new unit operation.
+     * 
+ */ + public void createUnitOperation( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitOperationRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateUnitOperationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Update a single unit operation.
+     * 
+ */ + public void updateUnitOperation( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitOperationRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateUnitOperationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Delete a single unit operation.
+     * 
+ */ + public void deleteUnitOperation( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitOperationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteUnitOperationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Retrieve a collection of releases.
+     * 
+ */ + public void listReleases( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListReleasesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Retrieve a single release.
+     * 
+ */ + public void getRelease( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetReleaseRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetReleaseMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Create a new release.
+     * 
+ */ + public void createRelease( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateReleaseRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateReleaseMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Update a single release.
+     * 
+ */ + public void updateRelease( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateReleaseRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateReleaseMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Delete a single release.
+     * 
+ */ + public void deleteRelease( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteReleaseRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteReleaseMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service SaasDeployments. + * + *
+   * Manages the deployment of SaaS services.
+   * 
+ */ + public static final class SaasDeploymentsBlockingV2Stub + extends io.grpc.stub.AbstractBlockingStub { + private SaasDeploymentsBlockingV2Stub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SaasDeploymentsBlockingV2Stub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SaasDeploymentsBlockingV2Stub(channel, callOptions); + } + + /** + * + * + *
+     * Retrieve a collection of saas.
+     * 
+ */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasResponse listSaas( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListSaasMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Retrieve a single saas.
+     * 
+ */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas getSaas( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetSaasRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetSaasMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Create a new saas.
+     * 
+ */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas createSaas( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateSaasRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateSaasMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Update a single saas.
+     * 
+ */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas updateSaas( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateSaasRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateSaasMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Delete a single saas.
+     * 
+ */ + public com.google.protobuf.Empty deleteSaas( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteSaasRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteSaasMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Retrieve a collection of tenants.
+     * 
+ */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsResponse listTenants( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListTenantsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Retrieve a single tenant.
+     * 
+ */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant getTenant( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetTenantRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetTenantMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Create a new tenant.
+     * 
+ */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant createTenant( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateTenantRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateTenantMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Update a single tenant.
+     * 
+ */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant updateTenant( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateTenantRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateTenantMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Delete a single tenant.
+     * 
+ */ + public com.google.protobuf.Empty deleteTenant( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteTenantRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteTenantMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Retrieve a collection of unit kinds.
+     * 
+ */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsResponse + listUnitKinds( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListUnitKindsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Retrieve a single unit kind.
+     * 
+ */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind getUnitKind( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitKindRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetUnitKindMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Create a new unit kind.
+     * 
+ */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind createUnitKind( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitKindRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateUnitKindMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Update a single unit kind.
+     * 
+ */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind updateUnitKind( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitKindRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateUnitKindMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Delete a single unit kind.
+     * 
+ */ + public com.google.protobuf.Empty deleteUnitKind( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitKindRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteUnitKindMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Retrieve a collection of units.
+     * 
+ */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsResponse listUnits( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListUnitsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Retrieve a single unit.
+     * 
+ */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit getUnit( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetUnitMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Create a new unit.
+     * 
+ */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit createUnit( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateUnitMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Update a single unit.
+     * 
+ */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit updateUnit( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateUnitMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Delete a single unit.
+     * 
+ */ + public com.google.protobuf.Empty deleteUnit( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteUnitMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Retrieve a collection of unit operations.
+     * 
+ */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsResponse + listUnitOperations( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListUnitOperationsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Retrieve a single unit operation.
+     * 
+ */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation getUnitOperation( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitOperationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetUnitOperationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Create a new unit operation.
+     * 
+ */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation createUnitOperation( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitOperationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateUnitOperationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Update a single unit operation.
+     * 
+ */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation updateUnitOperation( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitOperationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateUnitOperationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Delete a single unit operation.
+     * 
+ */ + public com.google.protobuf.Empty deleteUnitOperation( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitOperationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteUnitOperationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Retrieve a collection of releases.
+     * 
+ */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesResponse listReleases( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListReleasesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Retrieve a single release.
+     * 
+ */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release getRelease( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetReleaseRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetReleaseMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Create a new release.
+     * 
+ */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release createRelease( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateReleaseRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateReleaseMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Update a single release.
+     * 
+ */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release updateRelease( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateReleaseRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateReleaseMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Delete a single release.
+     * 
+ */ + public com.google.protobuf.Empty deleteRelease( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteReleaseRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteReleaseMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do limited synchronous rpc calls to service SaasDeployments. + * + *
+   * Manages the deployment of SaaS services.
+   * 
+ */ + public static final class SaasDeploymentsBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private SaasDeploymentsBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SaasDeploymentsBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SaasDeploymentsBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Retrieve a collection of saas.
+     * 
+ */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasResponse listSaas( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListSaasMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Retrieve a single saas.
+     * 
+ */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas getSaas( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetSaasRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetSaasMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Create a new saas.
+     * 
+ */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas createSaas( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateSaasRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateSaasMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Update a single saas.
+     * 
+ */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas updateSaas( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateSaasRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateSaasMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Delete a single saas.
+     * 
+ */ + public com.google.protobuf.Empty deleteSaas( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteSaasRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteSaasMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Retrieve a collection of tenants.
+     * 
+ */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsResponse listTenants( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListTenantsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Retrieve a single tenant.
+     * 
+ */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant getTenant( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetTenantRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetTenantMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Create a new tenant.
+     * 
+ */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant createTenant( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateTenantRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateTenantMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Update a single tenant.
+     * 
+ */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant updateTenant( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateTenantRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateTenantMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Delete a single tenant.
+     * 
+ */ + public com.google.protobuf.Empty deleteTenant( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteTenantRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteTenantMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Retrieve a collection of unit kinds.
+     * 
+ */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsResponse + listUnitKinds( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListUnitKindsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Retrieve a single unit kind.
+     * 
+ */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind getUnitKind( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitKindRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetUnitKindMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Create a new unit kind.
+     * 
+ */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind createUnitKind( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitKindRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateUnitKindMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Update a single unit kind.
+     * 
+ */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind updateUnitKind( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitKindRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateUnitKindMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Delete a single unit kind.
+     * 
+ */ + public com.google.protobuf.Empty deleteUnitKind( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitKindRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteUnitKindMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Retrieve a collection of units.
+     * 
+ */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsResponse listUnits( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListUnitsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Retrieve a single unit.
+     * 
+ */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit getUnit( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetUnitMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Create a new unit.
+     * 
+ */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit createUnit( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateUnitMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Update a single unit.
+     * 
+ */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit updateUnit( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateUnitMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Delete a single unit.
+     * 
+ */ + public com.google.protobuf.Empty deleteUnit( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteUnitMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Retrieve a collection of unit operations.
+     * 
+ */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsResponse + listUnitOperations( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListUnitOperationsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Retrieve a single unit operation.
+     * 
+ */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation getUnitOperation( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitOperationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetUnitOperationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Create a new unit operation.
+     * 
+ */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation createUnitOperation( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitOperationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateUnitOperationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Update a single unit operation.
+     * 
+ */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation updateUnitOperation( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitOperationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateUnitOperationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Delete a single unit operation.
+     * 
+ */ + public com.google.protobuf.Empty deleteUnitOperation( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitOperationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteUnitOperationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Retrieve a collection of releases.
+     * 
+ */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesResponse listReleases( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListReleasesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Retrieve a single release.
+     * 
+ */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release getRelease( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetReleaseRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetReleaseMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Create a new release.
+     * 
+ */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release createRelease( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateReleaseRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateReleaseMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Update a single release.
+     * 
+ */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release updateRelease( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateReleaseRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateReleaseMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Delete a single release.
+     * 
+ */ + public com.google.protobuf.Empty deleteRelease( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteReleaseRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteReleaseMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service SaasDeployments. + * + *
+   * Manages the deployment of SaaS services.
+   * 
+ */ + public static final class SaasDeploymentsFutureStub + extends io.grpc.stub.AbstractFutureStub { + private SaasDeploymentsFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SaasDeploymentsFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SaasDeploymentsFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Retrieve a collection of saas.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasResponse> + listSaas(com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListSaasMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Retrieve a single saas.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas> + getSaas(com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetSaasRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetSaasMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Create a new saas.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas> + createSaas( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateSaasRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateSaasMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Update a single saas.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas> + updateSaas( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateSaasRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateSaasMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Delete a single saas.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteSaas( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteSaasRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteSaasMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Retrieve a collection of tenants.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsResponse> + listTenants( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListTenantsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Retrieve a single tenant.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant> + getTenant(com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetTenantRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetTenantMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Create a new tenant.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant> + createTenant( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateTenantRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateTenantMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Update a single tenant.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant> + updateTenant( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateTenantRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateTenantMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Delete a single tenant.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteTenant( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteTenantRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteTenantMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Retrieve a collection of unit kinds.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsResponse> + listUnitKinds( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListUnitKindsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Retrieve a single unit kind.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind> + getUnitKind( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitKindRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetUnitKindMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Create a new unit kind.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind> + createUnitKind( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitKindRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateUnitKindMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Update a single unit kind.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind> + updateUnitKind( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitKindRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateUnitKindMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Delete a single unit kind.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteUnitKind( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitKindRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteUnitKindMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Retrieve a collection of units.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsResponse> + listUnits(com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListUnitsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Retrieve a single unit.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit> + getUnit(com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetUnitMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Create a new unit.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit> + createUnit( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateUnitMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Update a single unit.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit> + updateUnit( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateUnitMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Delete a single unit.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteUnit( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteUnitMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Retrieve a collection of unit operations.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsResponse> + listUnitOperations( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListUnitOperationsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Retrieve a single unit operation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation> + getUnitOperation( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitOperationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetUnitOperationMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Create a new unit operation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation> + createUnitOperation( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitOperationRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateUnitOperationMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Update a single unit operation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation> + updateUnitOperation( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitOperationRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateUnitOperationMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Delete a single unit operation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteUnitOperation( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitOperationRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteUnitOperationMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Retrieve a collection of releases.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesResponse> + listReleases( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListReleasesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Retrieve a single release.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release> + getRelease( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetReleaseRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetReleaseMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Create a new release.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release> + createRelease( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateReleaseRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateReleaseMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Update a single release.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release> + updateRelease( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateReleaseRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateReleaseMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Delete a single release.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteRelease( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteReleaseRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteReleaseMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_SAAS = 0; + private static final int METHODID_GET_SAAS = 1; + private static final int METHODID_CREATE_SAAS = 2; + private static final int METHODID_UPDATE_SAAS = 3; + private static final int METHODID_DELETE_SAAS = 4; + private static final int METHODID_LIST_TENANTS = 5; + private static final int METHODID_GET_TENANT = 6; + private static final int METHODID_CREATE_TENANT = 7; + private static final int METHODID_UPDATE_TENANT = 8; + private static final int METHODID_DELETE_TENANT = 9; + private static final int METHODID_LIST_UNIT_KINDS = 10; + private static final int METHODID_GET_UNIT_KIND = 11; + private static final int METHODID_CREATE_UNIT_KIND = 12; + private static final int METHODID_UPDATE_UNIT_KIND = 13; + private static final int METHODID_DELETE_UNIT_KIND = 14; + private static final int METHODID_LIST_UNITS = 15; + private static final int METHODID_GET_UNIT = 16; + private static final int METHODID_CREATE_UNIT = 17; + private static final int METHODID_UPDATE_UNIT = 18; + private static final int METHODID_DELETE_UNIT = 19; + private static final int METHODID_LIST_UNIT_OPERATIONS = 20; + private static final int METHODID_GET_UNIT_OPERATION = 21; + private static final int METHODID_CREATE_UNIT_OPERATION = 22; + private static final int METHODID_UPDATE_UNIT_OPERATION = 23; + private static final int METHODID_DELETE_UNIT_OPERATION = 24; + private static final int METHODID_LIST_RELEASES = 25; + private static final int METHODID_GET_RELEASE = 26; + private static final int METHODID_CREATE_RELEASE = 27; + private static final int METHODID_UPDATE_RELEASE = 28; + private static final int METHODID_DELETE_RELEASE = 29; + + 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 AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService 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_SAAS: + serviceImpl.listSaas( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasResponse>) + responseObserver); + break; + case METHODID_GET_SAAS: + serviceImpl.getSaas( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetSaasRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas>) + responseObserver); + break; + case METHODID_CREATE_SAAS: + serviceImpl.createSaas( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateSaasRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas>) + responseObserver); + break; + case METHODID_UPDATE_SAAS: + serviceImpl.updateSaas( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateSaasRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas>) + responseObserver); + break; + case METHODID_DELETE_SAAS: + serviceImpl.deleteSaas( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteSaasRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_TENANTS: + serviceImpl.listTenants( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsResponse>) + responseObserver); + break; + case METHODID_GET_TENANT: + serviceImpl.getTenant( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetTenantRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant>) + responseObserver); + break; + case METHODID_CREATE_TENANT: + serviceImpl.createTenant( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateTenantRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant>) + responseObserver); + break; + case METHODID_UPDATE_TENANT: + serviceImpl.updateTenant( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateTenantRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant>) + responseObserver); + break; + case METHODID_DELETE_TENANT: + serviceImpl.deleteTenant( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteTenantRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_UNIT_KINDS: + serviceImpl.listUnitKinds( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsResponse>) + responseObserver); + break; + case METHODID_GET_UNIT_KIND: + serviceImpl.getUnitKind( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitKindRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind>) + responseObserver); + break; + case METHODID_CREATE_UNIT_KIND: + serviceImpl.createUnitKind( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitKindRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind>) + responseObserver); + break; + case METHODID_UPDATE_UNIT_KIND: + serviceImpl.updateUnitKind( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitKindRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind>) + responseObserver); + break; + case METHODID_DELETE_UNIT_KIND: + serviceImpl.deleteUnitKind( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitKindRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_UNITS: + serviceImpl.listUnits( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsResponse>) + responseObserver); + break; + case METHODID_GET_UNIT: + serviceImpl.getUnit( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit>) + responseObserver); + break; + case METHODID_CREATE_UNIT: + serviceImpl.createUnit( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit>) + responseObserver); + break; + case METHODID_UPDATE_UNIT: + serviceImpl.updateUnit( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit>) + responseObserver); + break; + case METHODID_DELETE_UNIT: + serviceImpl.deleteUnit( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_UNIT_OPERATIONS: + serviceImpl.listUnitOperations( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1 + .ListUnitOperationsResponse>) + responseObserver); + break; + case METHODID_GET_UNIT_OPERATION: + serviceImpl.getUnitOperation( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitOperationRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation>) + responseObserver); + break; + case METHODID_CREATE_UNIT_OPERATION: + serviceImpl.createUnitOperation( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitOperationRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation>) + responseObserver); + break; + case METHODID_UPDATE_UNIT_OPERATION: + serviceImpl.updateUnitOperation( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitOperationRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation>) + responseObserver); + break; + case METHODID_DELETE_UNIT_OPERATION: + serviceImpl.deleteUnitOperation( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitOperationRequest) + request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_RELEASES: + serviceImpl.listReleases( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesResponse>) + responseObserver); + break; + case METHODID_GET_RELEASE: + serviceImpl.getRelease( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetReleaseRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release>) + responseObserver); + break; + case METHODID_CREATE_RELEASE: + serviceImpl.createRelease( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateReleaseRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release>) + responseObserver); + break; + case METHODID_UPDATE_RELEASE: + serviceImpl.updateRelease( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateReleaseRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release>) + responseObserver); + break; + case METHODID_DELETE_RELEASE: + serviceImpl.deleteRelease( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteReleaseRequest) 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(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListSaasMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasResponse>( + service, METHODID_LIST_SAAS))) + .addMethod( + getGetSaasMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetSaasRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas>( + service, METHODID_GET_SAAS))) + .addMethod( + getCreateSaasMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateSaasRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas>( + service, METHODID_CREATE_SAAS))) + .addMethod( + getUpdateSaasMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateSaasRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas>( + service, METHODID_UPDATE_SAAS))) + .addMethod( + getDeleteSaasMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteSaasRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_SAAS))) + .addMethod( + getListTenantsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsResponse>( + service, METHODID_LIST_TENANTS))) + .addMethod( + getGetTenantMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetTenantRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant>( + service, METHODID_GET_TENANT))) + .addMethod( + getCreateTenantMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateTenantRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant>( + service, METHODID_CREATE_TENANT))) + .addMethod( + getUpdateTenantMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateTenantRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant>( + service, METHODID_UPDATE_TENANT))) + .addMethod( + getDeleteTenantMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteTenantRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_TENANT))) + .addMethod( + getListUnitKindsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsResponse>( + service, METHODID_LIST_UNIT_KINDS))) + .addMethod( + getGetUnitKindMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitKindRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind>( + service, METHODID_GET_UNIT_KIND))) + .addMethod( + getCreateUnitKindMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitKindRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind>( + service, METHODID_CREATE_UNIT_KIND))) + .addMethod( + getUpdateUnitKindMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitKindRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind>( + service, METHODID_UPDATE_UNIT_KIND))) + .addMethod( + getDeleteUnitKindMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitKindRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_UNIT_KIND))) + .addMethod( + getListUnitsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsResponse>( + service, METHODID_LIST_UNITS))) + .addMethod( + getGetUnitMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit>( + service, METHODID_GET_UNIT))) + .addMethod( + getCreateUnitMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit>( + service, METHODID_CREATE_UNIT))) + .addMethod( + getUpdateUnitMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit>( + service, METHODID_UPDATE_UNIT))) + .addMethod( + getDeleteUnitMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_UNIT))) + .addMethod( + getListUnitOperationsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1 + .ListUnitOperationsResponse>(service, METHODID_LIST_UNIT_OPERATIONS))) + .addMethod( + getGetUnitOperationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitOperationRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation>( + service, METHODID_GET_UNIT_OPERATION))) + .addMethod( + getCreateUnitOperationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1 + .CreateUnitOperationRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation>( + service, METHODID_CREATE_UNIT_OPERATION))) + .addMethod( + getUpdateUnitOperationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1 + .UpdateUnitOperationRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation>( + service, METHODID_UPDATE_UNIT_OPERATION))) + .addMethod( + getDeleteUnitOperationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1 + .DeleteUnitOperationRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_UNIT_OPERATION))) + .addMethod( + getListReleasesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesResponse>( + service, METHODID_LIST_RELEASES))) + .addMethod( + getGetReleaseMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetReleaseRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release>( + service, METHODID_GET_RELEASE))) + .addMethod( + getCreateReleaseMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateReleaseRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release>( + service, METHODID_CREATE_RELEASE))) + .addMethod( + getUpdateReleaseMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateReleaseRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release>( + service, METHODID_UPDATE_RELEASE))) + .addMethod( + getDeleteReleaseMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteReleaseRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_RELEASE))) + .build(); + } + + private abstract static class SaasDeploymentsBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + SaasDeploymentsBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("SaasDeployments"); + } + } + + private static final class SaasDeploymentsFileDescriptorSupplier + extends SaasDeploymentsBaseDescriptorSupplier { + SaasDeploymentsFileDescriptorSupplier() {} + } + + private static final class SaasDeploymentsMethodDescriptorSupplier + extends SaasDeploymentsBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + SaasDeploymentsMethodDescriptorSupplier(java.lang.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 (SaasDeploymentsGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new SaasDeploymentsFileDescriptorSupplier()) + .addMethod(getListSaasMethod()) + .addMethod(getGetSaasMethod()) + .addMethod(getCreateSaasMethod()) + .addMethod(getUpdateSaasMethod()) + .addMethod(getDeleteSaasMethod()) + .addMethod(getListTenantsMethod()) + .addMethod(getGetTenantMethod()) + .addMethod(getCreateTenantMethod()) + .addMethod(getUpdateTenantMethod()) + .addMethod(getDeleteTenantMethod()) + .addMethod(getListUnitKindsMethod()) + .addMethod(getGetUnitKindMethod()) + .addMethod(getCreateUnitKindMethod()) + .addMethod(getUpdateUnitKindMethod()) + .addMethod(getDeleteUnitKindMethod()) + .addMethod(getListUnitsMethod()) + .addMethod(getGetUnitMethod()) + .addMethod(getCreateUnitMethod()) + .addMethod(getUpdateUnitMethod()) + .addMethod(getDeleteUnitMethod()) + .addMethod(getListUnitOperationsMethod()) + .addMethod(getGetUnitOperationMethod()) + .addMethod(getCreateUnitOperationMethod()) + .addMethod(getUpdateUnitOperationMethod()) + .addMethod(getDeleteUnitOperationMethod()) + .addMethod(getListReleasesMethod()) + .addMethod(getGetReleaseMethod()) + .addMethod(getCreateReleaseMethod()) + .addMethod(getUpdateReleaseMethod()) + .addMethod(getDeleteReleaseMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-saasservicemgmt/grpc-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/SaasRolloutsGrpc.java b/java-saasservicemgmt/grpc-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/SaasRolloutsGrpc.java new file mode 100644 index 000000000000..7c56504820f5 --- /dev/null +++ b/java-saasservicemgmt/grpc-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/SaasRolloutsGrpc.java @@ -0,0 +1,1669 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * Manages the rollout of SaaS services.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/saasplatform/saasservicemgmt/v1beta1/rollouts_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class SaasRolloutsGrpc { + + private SaasRolloutsGrpc() {} + + public static final java.lang.String SERVICE_NAME = + "google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRollouts"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsResponse> + getListRolloutsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListRollouts", + requestType = com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsRequest.class, + responseType = + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsResponse> + getListRolloutsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsResponse> + getListRolloutsMethod; + if ((getListRolloutsMethod = SaasRolloutsGrpc.getListRolloutsMethod) == null) { + synchronized (SaasRolloutsGrpc.class) { + if ((getListRolloutsMethod = SaasRolloutsGrpc.getListRolloutsMethod) == null) { + SaasRolloutsGrpc.getListRolloutsMethod = + getListRolloutsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListRollouts")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1 + .ListRolloutsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1 + .ListRolloutsResponse.getDefaultInstance())) + .setSchemaDescriptor(new SaasRolloutsMethodDescriptorSupplier("ListRollouts")) + .build(); + } + } + } + return getListRolloutsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout> + getGetRolloutMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetRollout", + requestType = com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutRequest.class, + responseType = com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout> + getGetRolloutMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout> + getGetRolloutMethod; + if ((getGetRolloutMethod = SaasRolloutsGrpc.getGetRolloutMethod) == null) { + synchronized (SaasRolloutsGrpc.class) { + if ((getGetRolloutMethod = SaasRolloutsGrpc.getGetRolloutMethod) == null) { + SaasRolloutsGrpc.getGetRolloutMethod = + getGetRolloutMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetRollout")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1 + .GetRolloutRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout + .getDefaultInstance())) + .setSchemaDescriptor(new SaasRolloutsMethodDescriptorSupplier("GetRollout")) + .build(); + } + } + } + return getGetRolloutMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout> + getCreateRolloutMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateRollout", + requestType = + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutRequest.class, + responseType = com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout> + getCreateRolloutMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout> + getCreateRolloutMethod; + if ((getCreateRolloutMethod = SaasRolloutsGrpc.getCreateRolloutMethod) == null) { + synchronized (SaasRolloutsGrpc.class) { + if ((getCreateRolloutMethod = SaasRolloutsGrpc.getCreateRolloutMethod) == null) { + SaasRolloutsGrpc.getCreateRolloutMethod = + getCreateRolloutMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateRollout")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1 + .CreateRolloutRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout + .getDefaultInstance())) + .setSchemaDescriptor( + new SaasRolloutsMethodDescriptorSupplier("CreateRollout")) + .build(); + } + } + } + return getCreateRolloutMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout> + getUpdateRolloutMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateRollout", + requestType = + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutRequest.class, + responseType = com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout> + getUpdateRolloutMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout> + getUpdateRolloutMethod; + if ((getUpdateRolloutMethod = SaasRolloutsGrpc.getUpdateRolloutMethod) == null) { + synchronized (SaasRolloutsGrpc.class) { + if ((getUpdateRolloutMethod = SaasRolloutsGrpc.getUpdateRolloutMethod) == null) { + SaasRolloutsGrpc.getUpdateRolloutMethod = + getUpdateRolloutMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateRollout")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1 + .UpdateRolloutRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout + .getDefaultInstance())) + .setSchemaDescriptor( + new SaasRolloutsMethodDescriptorSupplier("UpdateRollout")) + .build(); + } + } + } + return getUpdateRolloutMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutRequest, + com.google.protobuf.Empty> + getDeleteRolloutMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteRollout", + requestType = + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutRequest, + com.google.protobuf.Empty> + getDeleteRolloutMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutRequest, + com.google.protobuf.Empty> + getDeleteRolloutMethod; + if ((getDeleteRolloutMethod = SaasRolloutsGrpc.getDeleteRolloutMethod) == null) { + synchronized (SaasRolloutsGrpc.class) { + if ((getDeleteRolloutMethod = SaasRolloutsGrpc.getDeleteRolloutMethod) == null) { + SaasRolloutsGrpc.getDeleteRolloutMethod = + getDeleteRolloutMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteRollout")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1 + .DeleteRolloutRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new SaasRolloutsMethodDescriptorSupplier("DeleteRollout")) + .build(); + } + } + } + return getDeleteRolloutMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsResponse> + getListRolloutKindsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListRolloutKinds", + requestType = + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsRequest.class, + responseType = + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsResponse> + getListRolloutKindsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsResponse> + getListRolloutKindsMethod; + if ((getListRolloutKindsMethod = SaasRolloutsGrpc.getListRolloutKindsMethod) == null) { + synchronized (SaasRolloutsGrpc.class) { + if ((getListRolloutKindsMethod = SaasRolloutsGrpc.getListRolloutKindsMethod) == null) { + SaasRolloutsGrpc.getListRolloutKindsMethod = + getListRolloutKindsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListRolloutKinds")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1 + .ListRolloutKindsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1 + .ListRolloutKindsResponse.getDefaultInstance())) + .setSchemaDescriptor( + new SaasRolloutsMethodDescriptorSupplier("ListRolloutKinds")) + .build(); + } + } + } + return getListRolloutKindsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutKindRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind> + getGetRolloutKindMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetRolloutKind", + requestType = + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutKindRequest.class, + responseType = com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutKindRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind> + getGetRolloutKindMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutKindRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind> + getGetRolloutKindMethod; + if ((getGetRolloutKindMethod = SaasRolloutsGrpc.getGetRolloutKindMethod) == null) { + synchronized (SaasRolloutsGrpc.class) { + if ((getGetRolloutKindMethod = SaasRolloutsGrpc.getGetRolloutKindMethod) == null) { + SaasRolloutsGrpc.getGetRolloutKindMethod = + getGetRolloutKindMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetRolloutKind")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1 + .GetRolloutKindRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind + .getDefaultInstance())) + .setSchemaDescriptor( + new SaasRolloutsMethodDescriptorSupplier("GetRolloutKind")) + .build(); + } + } + } + return getGetRolloutKindMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutKindRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind> + getCreateRolloutKindMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateRolloutKind", + requestType = + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutKindRequest.class, + responseType = com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutKindRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind> + getCreateRolloutKindMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutKindRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind> + getCreateRolloutKindMethod; + if ((getCreateRolloutKindMethod = SaasRolloutsGrpc.getCreateRolloutKindMethod) == null) { + synchronized (SaasRolloutsGrpc.class) { + if ((getCreateRolloutKindMethod = SaasRolloutsGrpc.getCreateRolloutKindMethod) == null) { + SaasRolloutsGrpc.getCreateRolloutKindMethod = + getCreateRolloutKindMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateRolloutKind")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1 + .CreateRolloutKindRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind + .getDefaultInstance())) + .setSchemaDescriptor( + new SaasRolloutsMethodDescriptorSupplier("CreateRolloutKind")) + .build(); + } + } + } + return getCreateRolloutKindMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutKindRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind> + getUpdateRolloutKindMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateRolloutKind", + requestType = + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutKindRequest.class, + responseType = com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutKindRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind> + getUpdateRolloutKindMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutKindRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind> + getUpdateRolloutKindMethod; + if ((getUpdateRolloutKindMethod = SaasRolloutsGrpc.getUpdateRolloutKindMethod) == null) { + synchronized (SaasRolloutsGrpc.class) { + if ((getUpdateRolloutKindMethod = SaasRolloutsGrpc.getUpdateRolloutKindMethod) == null) { + SaasRolloutsGrpc.getUpdateRolloutKindMethod = + getUpdateRolloutKindMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateRolloutKind")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1 + .UpdateRolloutKindRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind + .getDefaultInstance())) + .setSchemaDescriptor( + new SaasRolloutsMethodDescriptorSupplier("UpdateRolloutKind")) + .build(); + } + } + } + return getUpdateRolloutKindMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutKindRequest, + com.google.protobuf.Empty> + getDeleteRolloutKindMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteRolloutKind", + requestType = + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutKindRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutKindRequest, + com.google.protobuf.Empty> + getDeleteRolloutKindMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutKindRequest, + com.google.protobuf.Empty> + getDeleteRolloutKindMethod; + if ((getDeleteRolloutKindMethod = SaasRolloutsGrpc.getDeleteRolloutKindMethod) == null) { + synchronized (SaasRolloutsGrpc.class) { + if ((getDeleteRolloutKindMethod = SaasRolloutsGrpc.getDeleteRolloutKindMethod) == null) { + SaasRolloutsGrpc.getDeleteRolloutKindMethod = + getDeleteRolloutKindMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteRolloutKind")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1 + .DeleteRolloutKindRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new SaasRolloutsMethodDescriptorSupplier("DeleteRolloutKind")) + .build(); + } + } + } + return getDeleteRolloutKindMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static SaasRolloutsStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SaasRolloutsStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SaasRolloutsStub(channel, callOptions); + } + }; + return SaasRolloutsStub.newStub(factory, channel); + } + + /** Creates a new blocking-style stub that supports all types of calls on the service */ + public static SaasRolloutsBlockingV2Stub newBlockingV2Stub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SaasRolloutsBlockingV2Stub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SaasRolloutsBlockingV2Stub(channel, callOptions); + } + }; + return SaasRolloutsBlockingV2Stub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static SaasRolloutsBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SaasRolloutsBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SaasRolloutsBlockingStub(channel, callOptions); + } + }; + return SaasRolloutsBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static SaasRolloutsFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SaasRolloutsFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SaasRolloutsFutureStub(channel, callOptions); + } + }; + return SaasRolloutsFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Manages the rollout of SaaS services.
+   * 
+ */ + public interface AsyncService { + + /** + * + * + *
+     * Retrieve a collection of rollouts.
+     * 
+ */ + default void listRollouts( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListRolloutsMethod(), responseObserver); + } + + /** + * + * + *
+     * Retrieve a single rollout.
+     * 
+ */ + default void getRollout( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetRolloutMethod(), responseObserver); + } + + /** + * + * + *
+     * Create a new rollout.
+     * 
+ */ + default void createRollout( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateRolloutMethod(), responseObserver); + } + + /** + * + * + *
+     * Update a single rollout.
+     * 
+ */ + default void updateRollout( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateRolloutMethod(), responseObserver); + } + + /** + * + * + *
+     * Delete a single rollout.
+     * 
+ */ + default void deleteRollout( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteRolloutMethod(), responseObserver); + } + + /** + * + * + *
+     * Retrieve a collection of rollout kinds.
+     * 
+ */ + default void listRolloutKinds( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListRolloutKindsMethod(), responseObserver); + } + + /** + * + * + *
+     * Retrieve a single rollout kind.
+     * 
+ */ + default void getRolloutKind( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutKindRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetRolloutKindMethod(), responseObserver); + } + + /** + * + * + *
+     * Create a new rollout kind.
+     * 
+ */ + default void createRolloutKind( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutKindRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateRolloutKindMethod(), responseObserver); + } + + /** + * + * + *
+     * Update a single rollout kind.
+     * 
+ */ + default void updateRolloutKind( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutKindRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateRolloutKindMethod(), responseObserver); + } + + /** + * + * + *
+     * Delete a single rollout kind.
+     * 
+ */ + default void deleteRolloutKind( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutKindRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteRolloutKindMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service SaasRollouts. + * + *
+   * Manages the rollout of SaaS services.
+   * 
+ */ + public abstract static class SaasRolloutsImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return SaasRolloutsGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service SaasRollouts. + * + *
+   * Manages the rollout of SaaS services.
+   * 
+ */ + public static final class SaasRolloutsStub + extends io.grpc.stub.AbstractAsyncStub { + private SaasRolloutsStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SaasRolloutsStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SaasRolloutsStub(channel, callOptions); + } + + /** + * + * + *
+     * Retrieve a collection of rollouts.
+     * 
+ */ + public void listRollouts( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListRolloutsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Retrieve a single rollout.
+     * 
+ */ + public void getRollout( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetRolloutMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Create a new rollout.
+     * 
+ */ + public void createRollout( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateRolloutMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Update a single rollout.
+     * 
+ */ + public void updateRollout( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateRolloutMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Delete a single rollout.
+     * 
+ */ + public void deleteRollout( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteRolloutMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Retrieve a collection of rollout kinds.
+     * 
+ */ + public void listRolloutKinds( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListRolloutKindsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Retrieve a single rollout kind.
+     * 
+ */ + public void getRolloutKind( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutKindRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetRolloutKindMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Create a new rollout kind.
+     * 
+ */ + public void createRolloutKind( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutKindRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateRolloutKindMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Update a single rollout kind.
+     * 
+ */ + public void updateRolloutKind( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutKindRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateRolloutKindMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Delete a single rollout kind.
+     * 
+ */ + public void deleteRolloutKind( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutKindRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteRolloutKindMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service SaasRollouts. + * + *
+   * Manages the rollout of SaaS services.
+   * 
+ */ + public static final class SaasRolloutsBlockingV2Stub + extends io.grpc.stub.AbstractBlockingStub { + private SaasRolloutsBlockingV2Stub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SaasRolloutsBlockingV2Stub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SaasRolloutsBlockingV2Stub(channel, callOptions); + } + + /** + * + * + *
+     * Retrieve a collection of rollouts.
+     * 
+ */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsResponse listRollouts( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListRolloutsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Retrieve a single rollout.
+     * 
+ */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout getRollout( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetRolloutMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Create a new rollout.
+     * 
+ */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout createRollout( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateRolloutMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Update a single rollout.
+     * 
+ */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout updateRollout( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateRolloutMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Delete a single rollout.
+     * 
+ */ + public com.google.protobuf.Empty deleteRollout( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteRolloutMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Retrieve a collection of rollout kinds.
+     * 
+ */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsResponse + listRolloutKinds( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListRolloutKindsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Retrieve a single rollout kind.
+     * 
+ */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind getRolloutKind( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutKindRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetRolloutKindMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Create a new rollout kind.
+     * 
+ */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind createRolloutKind( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutKindRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateRolloutKindMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Update a single rollout kind.
+     * 
+ */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind updateRolloutKind( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutKindRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateRolloutKindMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Delete a single rollout kind.
+     * 
+ */ + public com.google.protobuf.Empty deleteRolloutKind( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutKindRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteRolloutKindMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do limited synchronous rpc calls to service SaasRollouts. + * + *
+   * Manages the rollout of SaaS services.
+   * 
+ */ + public static final class SaasRolloutsBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private SaasRolloutsBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SaasRolloutsBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SaasRolloutsBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Retrieve a collection of rollouts.
+     * 
+ */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsResponse listRollouts( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListRolloutsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Retrieve a single rollout.
+     * 
+ */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout getRollout( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetRolloutMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Create a new rollout.
+     * 
+ */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout createRollout( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateRolloutMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Update a single rollout.
+     * 
+ */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout updateRollout( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateRolloutMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Delete a single rollout.
+     * 
+ */ + public com.google.protobuf.Empty deleteRollout( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteRolloutMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Retrieve a collection of rollout kinds.
+     * 
+ */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsResponse + listRolloutKinds( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListRolloutKindsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Retrieve a single rollout kind.
+     * 
+ */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind getRolloutKind( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutKindRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetRolloutKindMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Create a new rollout kind.
+     * 
+ */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind createRolloutKind( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutKindRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateRolloutKindMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Update a single rollout kind.
+     * 
+ */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind updateRolloutKind( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutKindRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateRolloutKindMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Delete a single rollout kind.
+     * 
+ */ + public com.google.protobuf.Empty deleteRolloutKind( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutKindRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteRolloutKindMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service SaasRollouts. + * + *
+   * Manages the rollout of SaaS services.
+   * 
+ */ + public static final class SaasRolloutsFutureStub + extends io.grpc.stub.AbstractFutureStub { + private SaasRolloutsFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SaasRolloutsFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SaasRolloutsFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Retrieve a collection of rollouts.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsResponse> + listRollouts( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListRolloutsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Retrieve a single rollout.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout> + getRollout( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetRolloutMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Create a new rollout.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout> + createRollout( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateRolloutMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Update a single rollout.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout> + updateRollout( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateRolloutMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Delete a single rollout.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteRollout( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteRolloutMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Retrieve a collection of rollout kinds.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsResponse> + listRolloutKinds( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListRolloutKindsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Retrieve a single rollout kind.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind> + getRolloutKind( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutKindRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetRolloutKindMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Create a new rollout kind.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind> + createRolloutKind( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutKindRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateRolloutKindMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Update a single rollout kind.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind> + updateRolloutKind( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutKindRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateRolloutKindMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Delete a single rollout kind.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteRolloutKind( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutKindRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteRolloutKindMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_ROLLOUTS = 0; + private static final int METHODID_GET_ROLLOUT = 1; + private static final int METHODID_CREATE_ROLLOUT = 2; + private static final int METHODID_UPDATE_ROLLOUT = 3; + private static final int METHODID_DELETE_ROLLOUT = 4; + private static final int METHODID_LIST_ROLLOUT_KINDS = 5; + private static final int METHODID_GET_ROLLOUT_KIND = 6; + private static final int METHODID_CREATE_ROLLOUT_KIND = 7; + private static final int METHODID_UPDATE_ROLLOUT_KIND = 8; + private static final int METHODID_DELETE_ROLLOUT_KIND = 9; + + 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 AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService 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_ROLLOUTS: + serviceImpl.listRollouts( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsResponse>) + responseObserver); + break; + case METHODID_GET_ROLLOUT: + serviceImpl.getRollout( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout>) + responseObserver); + break; + case METHODID_CREATE_ROLLOUT: + serviceImpl.createRollout( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout>) + responseObserver); + break; + case METHODID_UPDATE_ROLLOUT: + serviceImpl.updateRollout( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout>) + responseObserver); + break; + case METHODID_DELETE_ROLLOUT: + serviceImpl.deleteRollout( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_ROLLOUT_KINDS: + serviceImpl.listRolloutKinds( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1 + .ListRolloutKindsResponse>) + responseObserver); + break; + case METHODID_GET_ROLLOUT_KIND: + serviceImpl.getRolloutKind( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutKindRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind>) + responseObserver); + break; + case METHODID_CREATE_ROLLOUT_KIND: + serviceImpl.createRolloutKind( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutKindRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind>) + responseObserver); + break; + case METHODID_UPDATE_ROLLOUT_KIND: + serviceImpl.updateRolloutKind( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutKindRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind>) + responseObserver); + break; + case METHODID_DELETE_ROLLOUT_KIND: + serviceImpl.deleteRolloutKind( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutKindRequest) + 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(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListRolloutsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsResponse>( + service, METHODID_LIST_ROLLOUTS))) + .addMethod( + getGetRolloutMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout>( + service, METHODID_GET_ROLLOUT))) + .addMethod( + getCreateRolloutMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout>( + service, METHODID_CREATE_ROLLOUT))) + .addMethod( + getUpdateRolloutMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout>( + service, METHODID_UPDATE_ROLLOUT))) + .addMethod( + getDeleteRolloutMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_ROLLOUT))) + .addMethod( + getListRolloutKindsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsResponse>( + service, METHODID_LIST_ROLLOUT_KINDS))) + .addMethod( + getGetRolloutKindMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutKindRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind>( + service, METHODID_GET_ROLLOUT_KIND))) + .addMethod( + getCreateRolloutKindMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutKindRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind>( + service, METHODID_CREATE_ROLLOUT_KIND))) + .addMethod( + getUpdateRolloutKindMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutKindRequest, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind>( + service, METHODID_UPDATE_ROLLOUT_KIND))) + .addMethod( + getDeleteRolloutKindMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutKindRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_ROLLOUT_KIND))) + .build(); + } + + private abstract static class SaasRolloutsBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + SaasRolloutsBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsServiceProto + .getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("SaasRollouts"); + } + } + + private static final class SaasRolloutsFileDescriptorSupplier + extends SaasRolloutsBaseDescriptorSupplier { + SaasRolloutsFileDescriptorSupplier() {} + } + + private static final class SaasRolloutsMethodDescriptorSupplier + extends SaasRolloutsBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + SaasRolloutsMethodDescriptorSupplier(java.lang.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 (SaasRolloutsGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new SaasRolloutsFileDescriptorSupplier()) + .addMethod(getListRolloutsMethod()) + .addMethod(getGetRolloutMethod()) + .addMethod(getCreateRolloutMethod()) + .addMethod(getUpdateRolloutMethod()) + .addMethod(getDeleteRolloutMethod()) + .addMethod(getListRolloutKindsMethod()) + .addMethod(getGetRolloutKindMethod()) + .addMethod(getCreateRolloutKindMethod()) + .addMethod(getUpdateRolloutKindMethod()) + .addMethod(getDeleteRolloutKindMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-saasservicemgmt/owlbot.py b/java-saasservicemgmt/owlbot.py new file mode 100644 index 000000000000..2ba11e6bba67 --- /dev/null +++ b/java-saasservicemgmt/owlbot.py @@ -0,0 +1,36 @@ +# Copyright 2024 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. + +import synthtool as s +from synthtool.languages import java + + +for library in s.get_staging_dirs(): + # put any special-case replacements here + s.move(library) + +s.remove_staging_dirs() +java.common_templates(monorepo=True, excludes=[ + ".github/*", + ".kokoro/*", + "samples/*", + "CODE_OF_CONDUCT.md", + "CONTRIBUTING.md", + "LICENSE", + "SECURITY.md", + "java.header", + "license-checks.xml", + "renovate.json", + ".gitignore" +]) \ No newline at end of file diff --git a/java-saasservicemgmt/pom.xml b/java-saasservicemgmt/pom.xml new file mode 100644 index 000000000000..339449efd022 --- /dev/null +++ b/java-saasservicemgmt/pom.xml @@ -0,0 +1,55 @@ + + + 4.0.0 + com.google.cloud + google-cloud-saasservicemgmt-parent + pom + 0.0.1-SNAPSHOT + Google SaaS Runtime API Parent + + Java idiomatic client for Google Cloud Platform services. + + + + com.google.cloud + google-cloud-jar-parent + 1.65.0-SNAPSHOT + ../google-cloud-jar-parent/pom.xml + + + + UTF-8 + UTF-8 + github + google-cloud-saasservicemgmt-parent + + + + + + com.google.cloud + google-cloud-saasservicemgmt + 0.0.1-SNAPSHOT + + + com.google.api.grpc + grpc-google-cloud-saasservicemgmt-v1beta1 + 0.0.1-SNAPSHOT + + + com.google.api.grpc + proto-google-cloud-saasservicemgmt-v1beta1 + 0.0.1-SNAPSHOT + + + + + + + google-cloud-saasservicemgmt + grpc-google-cloud-saasservicemgmt-v1beta1 + proto-google-cloud-saasservicemgmt-v1beta1 + google-cloud-saasservicemgmt-bom + + + diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/clirr-ignored-differences.xml b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/clirr-ignored-differences.xml new file mode 100644 index 000000000000..fa8b710e1841 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/clirr-ignored-differences.xml @@ -0,0 +1,80 @@ + + + + + 7012 + com/google/cloud/saasplatform/saasservicemgmt/v1beta1/*OrBuilder + * get*(*) + + + 7012 + com/google/cloud/saasplatform/saasservicemgmt/v1beta1/*OrBuilder + boolean contains*(*) + + + 7012 + com/google/cloud/saasplatform/saasservicemgmt/v1beta1/*OrBuilder + boolean has*(*) + + + + 7006 + com/google/cloud/saasplatform/saasservicemgmt/v1beta1/** + * getDefaultInstanceForType() + ** + + + 7006 + com/google/cloud/saasplatform/saasservicemgmt/v1beta1/** + * addRepeatedField(*) + ** + + + 7006 + com/google/cloud/saasplatform/saasservicemgmt/v1beta1/** + * clear() + ** + + + 7006 + com/google/cloud/saasplatform/saasservicemgmt/v1beta1/** + * clearField(*) + ** + + + 7006 + com/google/cloud/saasplatform/saasservicemgmt/v1beta1/** + * clearOneof(*) + ** + + + 7006 + com/google/cloud/saasplatform/saasservicemgmt/v1beta1/** + * clone() + ** + + + 7006 + com/google/cloud/saasplatform/saasservicemgmt/v1beta1/** + * mergeUnknownFields(*) + ** + + + 7006 + com/google/cloud/saasplatform/saasservicemgmt/v1beta1/** + * setField(*) + ** + + + 7006 + com/google/cloud/saasplatform/saasservicemgmt/v1beta1/** + * setRepeatedField(*) + ** + + + 7006 + com/google/cloud/saasplatform/saasservicemgmt/v1beta1/** + * setUnknownFields(*) + ** + + diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/pom.xml b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/pom.xml new file mode 100644 index 000000000000..0e5e6f033529 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/pom.xml @@ -0,0 +1,37 @@ + + 4.0.0 + com.google.api.grpc + proto-google-cloud-saasservicemgmt-v1beta1 + 0.0.1-SNAPSHOT + proto-google-cloud-saasservicemgmt-v1beta1 + Proto library for google-cloud-saasservicemgmt + + com.google.cloud + google-cloud-saasservicemgmt-parent + 0.0.1-SNAPSHOT + + + + com.google.protobuf + protobuf-java + + + com.google.api.grpc + proto-google-common-protos + + + com.google.api.grpc + proto-google-iam-v1 + + + com.google.api + api-common + + + com.google.guava + guava + + + diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/Aggregate.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/Aggregate.java new file mode 100644 index 000000000000..225fd0fa43ac --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/Aggregate.java @@ -0,0 +1,743 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/common.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +/** + * + * + *
+ * Represents the aggregation of a set of population of like records by a
+ * certain group. For example, a collection of unit counts can be aggregated and
+ * grouped by their state.
+ * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.Aggregate} + */ +public final class Aggregate extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.Aggregate) + AggregateOrBuilder { + private static final long serialVersionUID = 0L; + + // Use Aggregate.newBuilder() to construct. + private Aggregate(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Aggregate() { + group_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Aggregate(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CommonProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Aggregate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CommonProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Aggregate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Aggregate.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Aggregate.Builder.class); + } + + public static final int GROUP_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object group_ = ""; + + /** + * + * + *
+   * Required. Group by which to aggregate.
+   * 
+ * + * string group = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The group. + */ + @java.lang.Override + public java.lang.String getGroup() { + java.lang.Object ref = group_; + 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(); + group_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. Group by which to aggregate.
+   * 
+ * + * string group = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for group. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGroupBytes() { + java.lang.Object ref = group_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + group_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COUNT_FIELD_NUMBER = 2; + private int count_ = 0; + + /** + * + * + *
+   * Required. Number of records in the group.
+   * 
+ * + * int32 count = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count. + */ + @java.lang.Override + public int getCount() { + return count_; + } + + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(group_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, group_); + } + if (count_ != 0) { + output.writeInt32(2, count_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(group_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, group_); + } + if (count_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, count_); + } + size += getUnknownFields().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.saasplatform.saasservicemgmt.v1beta1.Aggregate)) { + return super.equals(obj); + } + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Aggregate other = + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Aggregate) obj; + + if (!getGroup().equals(other.getGroup())) return false; + if (getCount() != other.getCount()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + GROUP_FIELD_NUMBER; + hash = (53 * hash) + getGroup().hashCode(); + hash = (37 * hash) + COUNT_FIELD_NUMBER; + hash = (53 * hash) + getCount(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Aggregate parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Aggregate 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.saasplatform.saasservicemgmt.v1beta1.Aggregate parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Aggregate 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.saasplatform.saasservicemgmt.v1beta1.Aggregate parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Aggregate parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Aggregate parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Aggregate 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.saasplatform.saasservicemgmt.v1beta1.Aggregate parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Aggregate 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.saasplatform.saasservicemgmt.v1beta1.Aggregate parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Aggregate 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.saasplatform.saasservicemgmt.v1beta1.Aggregate 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; + } + + /** + * + * + *
+   * Represents the aggregation of a set of population of like records by a
+   * certain group. For example, a collection of unit counts can be aggregated and
+   * grouped by their state.
+   * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.Aggregate} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.Aggregate) + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.AggregateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CommonProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Aggregate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CommonProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Aggregate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Aggregate.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Aggregate.Builder.class); + } + + // Construct using com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Aggregate.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + group_ = ""; + count_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CommonProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Aggregate_descriptor; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Aggregate + getDefaultInstanceForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Aggregate.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Aggregate build() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Aggregate result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Aggregate buildPartial() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Aggregate result = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Aggregate(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Aggregate result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.group_ = group_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.count_ = count_; + } + } + + @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.saasplatform.saasservicemgmt.v1beta1.Aggregate) { + return mergeFrom((com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Aggregate) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Aggregate other) { + if (other + == com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Aggregate.getDefaultInstance()) + return this; + if (!other.getGroup().isEmpty()) { + group_ = other.group_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getCount() != 0) { + setCount(other.getCount()); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + group_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + count_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object group_ = ""; + + /** + * + * + *
+     * Required. Group by which to aggregate.
+     * 
+ * + * string group = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The group. + */ + public java.lang.String getGroup() { + java.lang.Object ref = group_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + group_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. Group by which to aggregate.
+     * 
+ * + * string group = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for group. + */ + public com.google.protobuf.ByteString getGroupBytes() { + java.lang.Object ref = group_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + group_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. Group by which to aggregate.
+     * 
+ * + * string group = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The group to set. + * @return This builder for chaining. + */ + public Builder setGroup(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + group_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Group by which to aggregate.
+     * 
+ * + * string group = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearGroup() { + group_ = getDefaultInstance().getGroup(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Group by which to aggregate.
+     * 
+ * + * string group = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for group to set. + * @return This builder for chaining. + */ + public Builder setGroupBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + group_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int count_; + + /** + * + * + *
+     * Required. Number of records in the group.
+     * 
+ * + * int32 count = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count. + */ + @java.lang.Override + public int getCount() { + return count_; + } + + /** + * + * + *
+     * Required. Number of records in the group.
+     * 
+ * + * int32 count = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The count to set. + * @return This builder for chaining. + */ + public Builder setCount(int value) { + + count_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Number of records in the group.
+     * 
+ * + * int32 count = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearCount() { + bitField0_ = (bitField0_ & ~0x00000002); + count_ = 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.saasplatform.saasservicemgmt.v1beta1.Aggregate) + } + + // @@protoc_insertion_point(class_scope:google.cloud.saasplatform.saasservicemgmt.v1beta1.Aggregate) + private static final com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Aggregate + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Aggregate(); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Aggregate + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Aggregate parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.saasplatform.saasservicemgmt.v1beta1.Aggregate + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/AggregateOrBuilder.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/AggregateOrBuilder.java new file mode 100644 index 000000000000..64510265cf41 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/AggregateOrBuilder.java @@ -0,0 +1,65 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/common.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +public interface AggregateOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.saasplatform.saasservicemgmt.v1beta1.Aggregate) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Group by which to aggregate.
+   * 
+ * + * string group = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The group. + */ + java.lang.String getGroup(); + + /** + * + * + *
+   * Required. Group by which to aggregate.
+   * 
+ * + * string group = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for group. + */ + com.google.protobuf.ByteString getGroupBytes(); + + /** + * + * + *
+   * Required. Number of records in the group.
+   * 
+ * + * int32 count = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count. + */ + int getCount(); +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/Blueprint.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/Blueprint.java new file mode 100644 index 000000000000..38ff740791d5 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/Blueprint.java @@ -0,0 +1,1056 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/common.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +/** + * + * + *
+ * Blueprints are OCI Images that contain all of the artifacts needed to
+ * provision a unit. Metadata such as, type of the engine used to actuate the
+ * blueprint (e.g. terraform, helm etc) and version will come from the image
+ * manifest. If the hostname is omitted, it will be assumed to be the regional
+ * path to Artifact Registry (eg. us-east1-docker.pkg.dev).
+ * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.Blueprint} + */ +public final class Blueprint extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.Blueprint) + BlueprintOrBuilder { + private static final long serialVersionUID = 0L; + + // Use Blueprint.newBuilder() to construct. + private Blueprint(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Blueprint() { + package_ = ""; + engine_ = ""; + version_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Blueprint(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CommonProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Blueprint_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CommonProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Blueprint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Blueprint.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Blueprint.Builder.class); + } + + public static final int PACKAGE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object package_ = ""; + + /** + * + * + *
+   * Optional. Immutable. URI to a blueprint used by the Unit (required unless
+   * unitKind or release is set).
+   * 
+ * + * + * string package = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The package. + */ + @java.lang.Override + public java.lang.String getPackage() { + java.lang.Object ref = package_; + 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(); + package_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Immutable. URI to a blueprint used by the Unit (required unless
+   * unitKind or release is set).
+   * 
+ * + * + * string package = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for package. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPackageBytes() { + java.lang.Object ref = package_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + package_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ENGINE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object engine_ = ""; + + /** + * + * + *
+   * Output only. Type of the engine used to actuate the blueprint. e.g.
+   * terraform, helm etc.
+   * 
+ * + * string engine = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The engine. + */ + @java.lang.Override + public java.lang.String getEngine() { + java.lang.Object ref = engine_; + 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(); + engine_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. Type of the engine used to actuate the blueprint. e.g.
+   * terraform, helm etc.
+   * 
+ * + * string engine = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for engine. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEngineBytes() { + java.lang.Object ref = engine_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + engine_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VERSION_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object version_ = ""; + + /** + * + * + *
+   * Output only. Version metadata if present on the blueprint.
+   * 
+ * + * string version = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The version. + */ + @java.lang.Override + public java.lang.String getVersion() { + java.lang.Object ref = version_; + 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(); + version_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. Version metadata if present on the blueprint.
+   * 
+ * + * string version = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for version. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + version_ = 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(package_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, package_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(engine_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, engine_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, version_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(package_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, package_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(engine_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, engine_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, version_); + } + size += getUnknownFields().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.saasplatform.saasservicemgmt.v1beta1.Blueprint)) { + return super.equals(obj); + } + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Blueprint other = + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Blueprint) obj; + + if (!getPackage().equals(other.getPackage())) return false; + if (!getEngine().equals(other.getEngine())) return false; + if (!getVersion().equals(other.getVersion())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + PACKAGE_FIELD_NUMBER; + hash = (53 * hash) + getPackage().hashCode(); + hash = (37 * hash) + ENGINE_FIELD_NUMBER; + hash = (53 * hash) + getEngine().hashCode(); + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Blueprint parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Blueprint 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.saasplatform.saasservicemgmt.v1beta1.Blueprint parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Blueprint 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.saasplatform.saasservicemgmt.v1beta1.Blueprint parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Blueprint parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Blueprint parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Blueprint 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.saasplatform.saasservicemgmt.v1beta1.Blueprint parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Blueprint 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.saasplatform.saasservicemgmt.v1beta1.Blueprint parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Blueprint 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.saasplatform.saasservicemgmt.v1beta1.Blueprint 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; + } + + /** + * + * + *
+   * Blueprints are OCI Images that contain all of the artifacts needed to
+   * provision a unit. Metadata such as, type of the engine used to actuate the
+   * blueprint (e.g. terraform, helm etc) and version will come from the image
+   * manifest. If the hostname is omitted, it will be assumed to be the regional
+   * path to Artifact Registry (eg. us-east1-docker.pkg.dev).
+   * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.Blueprint} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.Blueprint) + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.BlueprintOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CommonProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Blueprint_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CommonProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Blueprint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Blueprint.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Blueprint.Builder.class); + } + + // Construct using com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Blueprint.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + package_ = ""; + engine_ = ""; + version_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CommonProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Blueprint_descriptor; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Blueprint + getDefaultInstanceForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Blueprint.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Blueprint build() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Blueprint result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Blueprint buildPartial() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Blueprint result = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Blueprint(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Blueprint result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.package_ = package_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.engine_ = engine_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.version_ = version_; + } + } + + @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.saasplatform.saasservicemgmt.v1beta1.Blueprint) { + return mergeFrom((com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Blueprint) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Blueprint other) { + if (other + == com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Blueprint.getDefaultInstance()) + return this; + if (!other.getPackage().isEmpty()) { + package_ = other.package_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getEngine().isEmpty()) { + engine_ = other.engine_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getVersion().isEmpty()) { + version_ = other.version_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + package_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + engine_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + version_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object package_ = ""; + + /** + * + * + *
+     * Optional. Immutable. URI to a blueprint used by the Unit (required unless
+     * unitKind or release is set).
+     * 
+ * + * + * string package = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The package. + */ + public java.lang.String getPackage() { + java.lang.Object ref = package_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + package_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Immutable. URI to a blueprint used by the Unit (required unless
+     * unitKind or release is set).
+     * 
+ * + * + * string package = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for package. + */ + public com.google.protobuf.ByteString getPackageBytes() { + java.lang.Object ref = package_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + package_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Immutable. URI to a blueprint used by the Unit (required unless
+     * unitKind or release is set).
+     * 
+ * + * + * string package = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The package to set. + * @return This builder for chaining. + */ + public Builder setPackage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + package_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Immutable. URI to a blueprint used by the Unit (required unless
+     * unitKind or release is set).
+     * 
+ * + * + * string package = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearPackage() { + package_ = getDefaultInstance().getPackage(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Immutable. URI to a blueprint used by the Unit (required unless
+     * unitKind or release is set).
+     * 
+ * + * + * string package = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The bytes for package to set. + * @return This builder for chaining. + */ + public Builder setPackageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + package_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object engine_ = ""; + + /** + * + * + *
+     * Output only. Type of the engine used to actuate the blueprint. e.g.
+     * terraform, helm etc.
+     * 
+ * + * string engine = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The engine. + */ + public java.lang.String getEngine() { + java.lang.Object ref = engine_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + engine_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. Type of the engine used to actuate the blueprint. e.g.
+     * terraform, helm etc.
+     * 
+ * + * string engine = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for engine. + */ + public com.google.protobuf.ByteString getEngineBytes() { + java.lang.Object ref = engine_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + engine_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. Type of the engine used to actuate the blueprint. e.g.
+     * terraform, helm etc.
+     * 
+ * + * string engine = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The engine to set. + * @return This builder for chaining. + */ + public Builder setEngine(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + engine_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Type of the engine used to actuate the blueprint. e.g.
+     * terraform, helm etc.
+     * 
+ * + * string engine = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearEngine() { + engine_ = getDefaultInstance().getEngine(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Type of the engine used to actuate the blueprint. e.g.
+     * terraform, helm etc.
+     * 
+ * + * string engine = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for engine to set. + * @return This builder for chaining. + */ + public Builder setEngineBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + engine_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object version_ = ""; + + /** + * + * + *
+     * Output only. Version metadata if present on the blueprint.
+     * 
+ * + * string version = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The version. + */ + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + version_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. Version metadata if present on the blueprint.
+     * 
+ * + * string version = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for version. + */ + public com.google.protobuf.ByteString getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. Version metadata if present on the blueprint.
+     * 
+ * + * string version = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The version to set. + * @return This builder for chaining. + */ + public Builder setVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + version_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Version metadata if present on the blueprint.
+     * 
+ * + * string version = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearVersion() { + version_ = getDefaultInstance().getVersion(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Version metadata if present on the blueprint.
+     * 
+ * + * string version = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for version to set. + * @return This builder for chaining. + */ + public Builder setVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + version_ = value; + bitField0_ |= 0x00000004; + 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.saasplatform.saasservicemgmt.v1beta1.Blueprint) + } + + // @@protoc_insertion_point(class_scope:google.cloud.saasplatform.saasservicemgmt.v1beta1.Blueprint) + private static final com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Blueprint + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Blueprint(); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Blueprint + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Blueprint parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.saasplatform.saasservicemgmt.v1beta1.Blueprint + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/BlueprintOrBuilder.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/BlueprintOrBuilder.java new file mode 100644 index 000000000000..5e652a9d02e7 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/BlueprintOrBuilder.java @@ -0,0 +1,112 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/common.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +public interface BlueprintOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.saasplatform.saasservicemgmt.v1beta1.Blueprint) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Immutable. URI to a blueprint used by the Unit (required unless
+   * unitKind or release is set).
+   * 
+ * + * + * string package = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The package. + */ + java.lang.String getPackage(); + + /** + * + * + *
+   * Optional. Immutable. URI to a blueprint used by the Unit (required unless
+   * unitKind or release is set).
+   * 
+ * + * + * string package = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for package. + */ + com.google.protobuf.ByteString getPackageBytes(); + + /** + * + * + *
+   * Output only. Type of the engine used to actuate the blueprint. e.g.
+   * terraform, helm etc.
+   * 
+ * + * string engine = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The engine. + */ + java.lang.String getEngine(); + + /** + * + * + *
+   * Output only. Type of the engine used to actuate the blueprint. e.g.
+   * terraform, helm etc.
+   * 
+ * + * string engine = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for engine. + */ + com.google.protobuf.ByteString getEngineBytes(); + + /** + * + * + *
+   * Output only. Version metadata if present on the blueprint.
+   * 
+ * + * string version = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The version. + */ + java.lang.String getVersion(); + + /** + * + * + *
+   * Output only. Version metadata if present on the blueprint.
+   * 
+ * + * string version = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for version. + */ + com.google.protobuf.ByteString getVersionBytes(); +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/CommonProto.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/CommonProto.java new file mode 100644 index 000000000000..cbf366ae093d --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/CommonProto.java @@ -0,0 +1,192 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/common.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +public final class CommonProto { + private CommonProto() {} + + 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_saasplatform_saasservicemgmt_v1beta1_Blueprint_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Blueprint_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UnitVariable_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UnitVariable_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UnitCondition_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UnitCondition_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UnitOperationCondition_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UnitOperationCondition_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Aggregate_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Aggregate_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n" + + ">google/cloud/saasplatform/saasservicemgmt/v1beta1/common.proto\0221google.cloud.s" + + "aasplatform.saasservicemgmt.v1beta1\032\037goo" + + "gle/api/field_behavior.proto\032\037google/protobuf/timestamp.proto\"O\n" + + "\tBlueprint\022\027\n" + + "\007package\030\001 \001(\tB\006\340A\001\340A\005\022\023\n" + + "\006engine\030\002 \001(\tB\003\340A\003\022\024\n" + + "\007version\030\003 \001(\tB\003\340A\003\"\325\001\n" + + "\014UnitVariable\022\030\n" + + "\010variable\030\001 \001(\tB\006\340A\002\340A\005\022Z\n" + + "\004type\030\002 \001(\0162" + + "D.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.TypeB\006\340A\001\340A\005\022\022\n" + + "\005value\030\003 \001(\tB\003\340A\001\";\n" + + "\004Type\022\024\n" + + "\020TYPE_UNSPECIFIED\020\000\022\n\n" + + "\006STRING\020\001\022\007\n" + + "\003INT\020\002\022\010\n" + + "\004BOOL\020\003\"\373\003\n\r" + + "UnitCondition\022\\\n" + + "\006status\030\001 \001(\0162G.googl" + + "e.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition.StatusB\003\340A\002\022X\n" + + "\004type\030\002 \001(\0162E.google.cloud.saasplatform.saasser" + + "vicemgmt.v1beta1.UnitCondition.TypeB\003\340A\002\022=\n" + + "\024last_transition_time\030\003" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\002\022\024\n" + + "\007message\030\004 \001(\tB\003\340A\002\022\023\n" + + "\006reason\030\005 \001(\tB\003\340A\002\"W\n" + + "\006Status\022\026\n" + + "\022STATUS_UNSPECIFIED\020\000\022\022\n" + + "\016STATUS_UNKNOWN\020\001\022\017\n" + + "\013STATUS_TRUE\020\002\022\020\n" + + "\014STATUS_FALSE\020\003\"o\n" + + "\004Type\022\024\n" + + "\020TYPE_UNSPECIFIED\020\000\022\016\n\n" + + "TYPE_READY\020\001\022\021\n\r" + + "TYPE_UPDATING\020\002\022\024\n" + + "\020TYPE_PROVISIONED\020\003\022\030\n" + + "\024TYPE_OPERATION_ERROR\020\004\"\221\004\n" + + "\026UnitOperationCondition\022e\n" + + "\006status\030\001 \001(\0162P.google.cloud.saasplatform.saasservicemgmt.v1be" + + "ta1.UnitOperationCondition.StatusB\003\340A\002\022a\n" + + "\004type\030\002 \001(\0162N.google.cloud.saasplatform" + + ".saasservicemgmt.v1beta1.UnitOperationCondition.TypeB\003\340A\002\022=\n" + + "\024last_transition_time\030\003" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\002\022\024\n" + + "\007message\030\004 \001(\tB\003\340A\002\022\023\n" + + "\006reason\030\005 \001(\tB\003\340A\002\"W\n" + + "\006Status\022\026\n" + + "\022STATUS_UNSPECIFIED\020\000\022\022\n" + + "\016STATUS_UNKNOWN\020\001\022\017\n" + + "\013STATUS_TRUE\020\002\022\020\n" + + "\014STATUS_FALSE\020\003\"j\n" + + "\004Type\022\024\n" + + "\020TYPE_UNSPECIFIED\020\000\022\022\n" + + "\016TYPE_SCHEDULED\020\002\022\020\n" + + "\014TYPE_RUNNING\020\003\022\022\n" + + "\016TYPE_SUCCEEDED\020\004\022\022\n" + + "\016TYPE_CANCELLED\020\005\"3\n" + + "\tAggregate\022\022\n" + + "\005group\030\001 \001(\tB\003\340A\002\022\022\n" + + "\005count\030\002 \001(\005B\003\340A\002*\226\001\n" + + "\032UnitOperationErrorCategory\022-\n" + + ")UNIT_OPERATION_ERROR_CATEGORY_UNSPECIFIED\020\000\022\022\n" + + "\016NOT_APPLICABLE\020\001\022\t\n" + + "\005FATAL\020\002\022\r\n" + + "\tRETRIABLE\020\003\022\r\n" + + "\tIGNORABLE\020\004\022\014\n" + + "\010STANDARD\020\005B\307\002\n" + + "5com.google.cloud.saasplatform.saasservicemgmt.v1beta1B\013CommonProtoP\001Z" + + "_cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb;s" + + "aasservicemgmtpb\252\0021Google.Cloud.SaasPlat" + + "form.SaasServiceMgmt.V1Beta1\312\0021Google\\Cl" + + "oud\\SaasPlatform\\SaasServiceMgmt\\V1beta1" + + "\352\0025Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Blueprint_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Blueprint_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Blueprint_descriptor, + new java.lang.String[] { + "Package", "Engine", "Version", + }); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UnitVariable_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UnitVariable_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UnitVariable_descriptor, + new java.lang.String[] { + "Variable", "Type", "Value", + }); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UnitCondition_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UnitCondition_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UnitCondition_descriptor, + new java.lang.String[] { + "Status", "Type", "LastTransitionTime", "Message", "Reason", + }); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UnitOperationCondition_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UnitOperationCondition_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UnitOperationCondition_descriptor, + new java.lang.String[] { + "Status", "Type", "LastTransitionTime", "Message", "Reason", + }); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Aggregate_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Aggregate_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Aggregate_descriptor, + new java.lang.String[] { + "Group", "Count", + }); + 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.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/CreateReleaseRequest.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/CreateReleaseRequest.java new file mode 100644 index 000000000000..68b6315f7588 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/CreateReleaseRequest.java @@ -0,0 +1,1557 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +/** + * + * + *
+ * The request structure for the CreateRelease method.
+ * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateReleaseRequest} + */ +public final class CreateReleaseRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateReleaseRequest) + CreateReleaseRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use CreateReleaseRequest.newBuilder() to construct. + private CreateReleaseRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateReleaseRequest() { + parent_ = ""; + releaseId_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateReleaseRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_CreateReleaseRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_CreateReleaseRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateReleaseRequest.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateReleaseRequest.Builder + .class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 10006; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The parent of the release.
+   * 
+ * + * + * string parent = 10006 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + 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 of the release.
+   * 
+ * + * + * string parent = 10006 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + 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 RELEASE_ID_FIELD_NUMBER = 10503; + + @SuppressWarnings("serial") + private volatile java.lang.Object releaseId_ = ""; + + /** + * + * + *
+   * Required. The ID value for the new release.
+   * 
+ * + * string release_id = 10503 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The releaseId. + */ + @java.lang.Override + public java.lang.String getReleaseId() { + java.lang.Object ref = releaseId_; + 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(); + releaseId_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The ID value for the new release.
+   * 
+ * + * string release_id = 10503 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for releaseId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getReleaseIdBytes() { + java.lang.Object ref = releaseId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + releaseId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RELEASE_FIELD_NUMBER = 10504; + private com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release release_; + + /** + * + * + *
+   * Required. The desired state for the release.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Release release = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the release field is set. + */ + @java.lang.Override + public boolean hasRelease() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The desired state for the release.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Release release = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The release. + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release getRelease() { + return release_ == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.getDefaultInstance() + : release_; + } + + /** + * + * + *
+   * Required. The desired state for the release.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Release release = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ReleaseOrBuilder + getReleaseOrBuilder() { + return release_ == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.getDefaultInstance() + : release_; + } + + public static final int VALIDATE_ONLY_FIELD_NUMBER = 10501; + private boolean validateOnly_ = false; + + /** + * + * + *
+   * If "validate_only" is set to true, the service will try to validate
+   * that this request would succeed, but will not actually make changes.
+   * 
+ * + * bool validate_only = 10501; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 10502; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 10502; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 10502; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10006, parent_); + } + if (validateOnly_ != false) { + output.writeBool(10501, validateOnly_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10502, requestId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(releaseId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10503, releaseId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(10504, getRelease()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10006, parent_); + } + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(10501, validateOnly_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10502, requestId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(releaseId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10503, releaseId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10504, getRelease()); + } + size += getUnknownFields().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.saasplatform.saasservicemgmt.v1beta1.CreateReleaseRequest)) { + return super.equals(obj); + } + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateReleaseRequest other = + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateReleaseRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getReleaseId().equals(other.getReleaseId())) return false; + if (hasRelease() != other.hasRelease()) return false; + if (hasRelease()) { + if (!getRelease().equals(other.getRelease())) return false; + } + if (getValidateOnly() != other.getValidateOnly()) return false; + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + RELEASE_ID_FIELD_NUMBER; + hash = (53 * hash) + getReleaseId().hashCode(); + if (hasRelease()) { + hash = (37 * hash) + RELEASE_FIELD_NUMBER; + hash = (53 * hash) + getRelease().hashCode(); + } + hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateReleaseRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateReleaseRequest + 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.saasplatform.saasservicemgmt.v1beta1.CreateReleaseRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateReleaseRequest + 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.saasplatform.saasservicemgmt.v1beta1.CreateReleaseRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateReleaseRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateReleaseRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateReleaseRequest + 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.saasplatform.saasservicemgmt.v1beta1.CreateReleaseRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateReleaseRequest + 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.saasplatform.saasservicemgmt.v1beta1.CreateReleaseRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateReleaseRequest + 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.saasplatform.saasservicemgmt.v1beta1.CreateReleaseRequest 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 request structure for the CreateRelease method.
+   * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateReleaseRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateReleaseRequest) + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateReleaseRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_CreateReleaseRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_CreateReleaseRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateReleaseRequest.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateReleaseRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateReleaseRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getReleaseFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + releaseId_ = ""; + release_ = null; + if (releaseBuilder_ != null) { + releaseBuilder_.dispose(); + releaseBuilder_ = null; + } + validateOnly_ = false; + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_CreateReleaseRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateReleaseRequest + getDefaultInstanceForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateReleaseRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateReleaseRequest build() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateReleaseRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateReleaseRequest + buildPartial() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateReleaseRequest result = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateReleaseRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateReleaseRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.releaseId_ = releaseId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.release_ = releaseBuilder_ == null ? release_ : releaseBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.validateOnly_ = validateOnly_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.requestId_ = requestId_; + } + result.bitField0_ |= to_bitField0_; + } + + @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.saasplatform.saasservicemgmt.v1beta1.CreateReleaseRequest) { + return mergeFrom( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateReleaseRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateReleaseRequest other) { + if (other + == com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateReleaseRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getReleaseId().isEmpty()) { + releaseId_ = other.releaseId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasRelease()) { + mergeRelease(other.getRelease()); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 80050: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 80050 + case 84008: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 84008 + case 84018: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 84018 + case 84026: + { + releaseId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 84026 + case 84034: + { + input.readMessage(getReleaseFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 84034 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. The parent of the release.
+     * 
+ * + * + * string parent = 10006 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @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 of the release.
+     * 
+ * + * + * string parent = 10006 [(.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_; + 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 of the release.
+     * 
+ * + * + * string parent = 10006 [(.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) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent of the release.
+     * 
+ * + * + * string parent = 10006 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent of the release.
+     * 
+ * + * + * string parent = 10006 [(.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) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object releaseId_ = ""; + + /** + * + * + *
+     * Required. The ID value for the new release.
+     * 
+ * + * string release_id = 10503 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The releaseId. + */ + public java.lang.String getReleaseId() { + java.lang.Object ref = releaseId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + releaseId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The ID value for the new release.
+     * 
+ * + * string release_id = 10503 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for releaseId. + */ + public com.google.protobuf.ByteString getReleaseIdBytes() { + java.lang.Object ref = releaseId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + releaseId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The ID value for the new release.
+     * 
+ * + * string release_id = 10503 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The releaseId to set. + * @return This builder for chaining. + */ + public Builder setReleaseId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + releaseId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The ID value for the new release.
+     * 
+ * + * string release_id = 10503 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearReleaseId() { + releaseId_ = getDefaultInstance().getReleaseId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The ID value for the new release.
+     * 
+ * + * string release_id = 10503 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for releaseId to set. + * @return This builder for chaining. + */ + public Builder setReleaseIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + releaseId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release release_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ReleaseOrBuilder> + releaseBuilder_; + + /** + * + * + *
+     * Required. The desired state for the release.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Release release = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the release field is set. + */ + public boolean hasRelease() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Required. The desired state for the release.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Release release = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The release. + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release getRelease() { + if (releaseBuilder_ == null) { + return release_ == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.getDefaultInstance() + : release_; + } else { + return releaseBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The desired state for the release.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Release release = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRelease(com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release value) { + if (releaseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + release_ = value; + } else { + releaseBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The desired state for the release.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Release release = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRelease( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.Builder builderForValue) { + if (releaseBuilder_ == null) { + release_ = builderForValue.build(); + } else { + releaseBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The desired state for the release.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Release release = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeRelease( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release value) { + if (releaseBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && release_ != null + && release_ + != com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release + .getDefaultInstance()) { + getReleaseBuilder().mergeFrom(value); + } else { + release_ = value; + } + } else { + releaseBuilder_.mergeFrom(value); + } + if (release_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The desired state for the release.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Release release = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearRelease() { + bitField0_ = (bitField0_ & ~0x00000004); + release_ = null; + if (releaseBuilder_ != null) { + releaseBuilder_.dispose(); + releaseBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The desired state for the release.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Release release = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.Builder + getReleaseBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getReleaseFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The desired state for the release.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Release release = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ReleaseOrBuilder + getReleaseOrBuilder() { + if (releaseBuilder_ != null) { + return releaseBuilder_.getMessageOrBuilder(); + } else { + return release_ == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.getDefaultInstance() + : release_; + } + } + + /** + * + * + *
+     * Required. The desired state for the release.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Release release = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ReleaseOrBuilder> + getReleaseFieldBuilder() { + if (releaseBuilder_ == null) { + releaseBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ReleaseOrBuilder>( + getRelease(), getParentForChildren(), isClean()); + release_ = null; + } + return releaseBuilder_; + } + + private boolean validateOnly_; + + /** + * + * + *
+     * If "validate_only" is set to true, the service will try to validate
+     * that this request would succeed, but will not actually make changes.
+     * 
+ * + * bool validate_only = 10501; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + /** + * + * + *
+     * If "validate_only" is set to true, the service will try to validate
+     * that this request would succeed, but will not actually make changes.
+     * 
+ * + * bool validate_only = 10501; + * + * @param value The validateOnly to set. + * @return This builder for chaining. + */ + public Builder setValidateOnly(boolean value) { + + validateOnly_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * If "validate_only" is set to true, the service will try to validate
+     * that this request would succeed, but will not actually make changes.
+     * 
+ * + * bool validate_only = 10501; + * + * @return This builder for chaining. + */ + public Builder clearValidateOnly() { + bitField0_ = (bitField0_ & ~0x00000008); + validateOnly_ = false; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000010; + 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.saasplatform.saasservicemgmt.v1beta1.CreateReleaseRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateReleaseRequest) + private static final com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateReleaseRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateReleaseRequest(); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateReleaseRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateReleaseRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.saasplatform.saasservicemgmt.v1beta1.CreateReleaseRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/CreateReleaseRequestOrBuilder.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/CreateReleaseRequestOrBuilder.java new file mode 100644 index 000000000000..1f06a5298c8d --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/CreateReleaseRequestOrBuilder.java @@ -0,0 +1,189 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +public interface CreateReleaseRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateReleaseRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent of the release.
+   * 
+ * + * + * string parent = 10006 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The parent of the release.
+   * 
+ * + * + * string parent = 10006 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The ID value for the new release.
+   * 
+ * + * string release_id = 10503 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The releaseId. + */ + java.lang.String getReleaseId(); + + /** + * + * + *
+   * Required. The ID value for the new release.
+   * 
+ * + * string release_id = 10503 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for releaseId. + */ + com.google.protobuf.ByteString getReleaseIdBytes(); + + /** + * + * + *
+   * Required. The desired state for the release.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Release release = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the release field is set. + */ + boolean hasRelease(); + + /** + * + * + *
+   * Required. The desired state for the release.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Release release = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The release. + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release getRelease(); + + /** + * + * + *
+   * Required. The desired state for the release.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Release release = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ReleaseOrBuilder getReleaseOrBuilder(); + + /** + * + * + *
+   * If "validate_only" is set to true, the service will try to validate
+   * that this request would succeed, but will not actually make changes.
+   * 
+ * + * bool validate_only = 10501; + * + * @return The validateOnly. + */ + boolean getValidateOnly(); + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 10502; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 10502; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/CreateRolloutKindRequest.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/CreateRolloutKindRequest.java new file mode 100644 index 000000000000..26476ea153c1 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/CreateRolloutKindRequest.java @@ -0,0 +1,1563 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/rollouts_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +/** + * + * + *
+ * The request structure for the CreateRolloutKind method.
+ * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutKindRequest} + */ +public final class CreateRolloutKindRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutKindRequest) + CreateRolloutKindRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use CreateRolloutKindRequest.newBuilder() to construct. + private CreateRolloutKindRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateRolloutKindRequest() { + parent_ = ""; + rolloutKindId_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateRolloutKindRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_CreateRolloutKindRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_CreateRolloutKindRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutKindRequest.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutKindRequest.Builder + .class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 10006; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The parent of the rollout kind.
+   * 
+ * + * + * string parent = 10006 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + 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 of the rollout kind.
+   * 
+ * + * + * string parent = 10006 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + 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 ROLLOUT_KIND_ID_FIELD_NUMBER = 10503; + + @SuppressWarnings("serial") + private volatile java.lang.Object rolloutKindId_ = ""; + + /** + * + * + *
+   * Required. The ID value for the new rollout kind.
+   * 
+ * + * string rollout_kind_id = 10503 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The rolloutKindId. + */ + @java.lang.Override + public java.lang.String getRolloutKindId() { + java.lang.Object ref = rolloutKindId_; + 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(); + rolloutKindId_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The ID value for the new rollout kind.
+   * 
+ * + * string rollout_kind_id = 10503 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for rolloutKindId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRolloutKindIdBytes() { + java.lang.Object ref = rolloutKindId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rolloutKindId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ROLLOUT_KIND_FIELD_NUMBER = 10504; + private com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind rolloutKind_; + + /** + * + * + *
+   * Required. The desired state for the rollout kind.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind rollout_kind = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the rolloutKind field is set. + */ + @java.lang.Override + public boolean hasRolloutKind() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The desired state for the rollout kind.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind rollout_kind = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The rolloutKind. + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind getRolloutKind() { + return rolloutKind_ == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind.getDefaultInstance() + : rolloutKind_; + } + + /** + * + * + *
+   * Required. The desired state for the rollout kind.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind rollout_kind = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKindOrBuilder + getRolloutKindOrBuilder() { + return rolloutKind_ == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind.getDefaultInstance() + : rolloutKind_; + } + + public static final int VALIDATE_ONLY_FIELD_NUMBER = 10501; + private boolean validateOnly_ = false; + + /** + * + * + *
+   * If "validate_only" is set to true, the service will try to validate
+   * that this request would succeed, but will not actually make changes.
+   * 
+ * + * bool validate_only = 10501; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 10502; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 10502; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 10502; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10006, parent_); + } + if (validateOnly_ != false) { + output.writeBool(10501, validateOnly_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10502, requestId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rolloutKindId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10503, rolloutKindId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(10504, getRolloutKind()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10006, parent_); + } + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(10501, validateOnly_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10502, requestId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rolloutKindId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10503, rolloutKindId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10504, getRolloutKind()); + } + size += getUnknownFields().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.saasplatform.saasservicemgmt.v1beta1.CreateRolloutKindRequest)) { + return super.equals(obj); + } + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutKindRequest other = + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutKindRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getRolloutKindId().equals(other.getRolloutKindId())) return false; + if (hasRolloutKind() != other.hasRolloutKind()) return false; + if (hasRolloutKind()) { + if (!getRolloutKind().equals(other.getRolloutKind())) return false; + } + if (getValidateOnly() != other.getValidateOnly()) return false; + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + ROLLOUT_KIND_ID_FIELD_NUMBER; + hash = (53 * hash) + getRolloutKindId().hashCode(); + if (hasRolloutKind()) { + hash = (37 * hash) + ROLLOUT_KIND_FIELD_NUMBER; + hash = (53 * hash) + getRolloutKind().hashCode(); + } + hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutKindRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutKindRequest + 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.saasplatform.saasservicemgmt.v1beta1.CreateRolloutKindRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutKindRequest + 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.saasplatform.saasservicemgmt.v1beta1.CreateRolloutKindRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutKindRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutKindRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutKindRequest + 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.saasplatform.saasservicemgmt.v1beta1.CreateRolloutKindRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutKindRequest + 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.saasplatform.saasservicemgmt.v1beta1.CreateRolloutKindRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutKindRequest + 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.saasplatform.saasservicemgmt.v1beta1.CreateRolloutKindRequest 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 request structure for the CreateRolloutKind method.
+   * 
+ * + * Protobuf type {@code + * google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutKindRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutKindRequest) + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutKindRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_CreateRolloutKindRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_CreateRolloutKindRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutKindRequest.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutKindRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutKindRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getRolloutKindFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + rolloutKindId_ = ""; + rolloutKind_ = null; + if (rolloutKindBuilder_ != null) { + rolloutKindBuilder_.dispose(); + rolloutKindBuilder_ = null; + } + validateOnly_ = false; + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_CreateRolloutKindRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutKindRequest + getDefaultInstanceForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutKindRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutKindRequest build() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutKindRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutKindRequest + buildPartial() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutKindRequest result = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutKindRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutKindRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.rolloutKindId_ = rolloutKindId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.rolloutKind_ = + rolloutKindBuilder_ == null ? rolloutKind_ : rolloutKindBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.validateOnly_ = validateOnly_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.requestId_ = requestId_; + } + result.bitField0_ |= to_bitField0_; + } + + @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.saasplatform.saasservicemgmt.v1beta1.CreateRolloutKindRequest) { + return mergeFrom( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutKindRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutKindRequest other) { + if (other + == com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutKindRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRolloutKindId().isEmpty()) { + rolloutKindId_ = other.rolloutKindId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasRolloutKind()) { + mergeRolloutKind(other.getRolloutKind()); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 80050: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 80050 + case 84008: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 84008 + case 84018: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 84018 + case 84026: + { + rolloutKindId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 84026 + case 84034: + { + input.readMessage(getRolloutKindFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 84034 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. The parent of the rollout kind.
+     * 
+ * + * + * string parent = 10006 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @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 of the rollout kind.
+     * 
+ * + * + * string parent = 10006 [(.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_; + 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 of the rollout kind.
+     * 
+ * + * + * string parent = 10006 [(.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) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent of the rollout kind.
+     * 
+ * + * + * string parent = 10006 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent of the rollout kind.
+     * 
+ * + * + * string parent = 10006 [(.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) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object rolloutKindId_ = ""; + + /** + * + * + *
+     * Required. The ID value for the new rollout kind.
+     * 
+ * + * string rollout_kind_id = 10503 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The rolloutKindId. + */ + public java.lang.String getRolloutKindId() { + java.lang.Object ref = rolloutKindId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rolloutKindId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The ID value for the new rollout kind.
+     * 
+ * + * string rollout_kind_id = 10503 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for rolloutKindId. + */ + public com.google.protobuf.ByteString getRolloutKindIdBytes() { + java.lang.Object ref = rolloutKindId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rolloutKindId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The ID value for the new rollout kind.
+     * 
+ * + * string rollout_kind_id = 10503 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The rolloutKindId to set. + * @return This builder for chaining. + */ + public Builder setRolloutKindId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + rolloutKindId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The ID value for the new rollout kind.
+     * 
+ * + * string rollout_kind_id = 10503 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearRolloutKindId() { + rolloutKindId_ = getDefaultInstance().getRolloutKindId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The ID value for the new rollout kind.
+     * 
+ * + * string rollout_kind_id = 10503 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for rolloutKindId to set. + * @return This builder for chaining. + */ + public Builder setRolloutKindIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + rolloutKindId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind rolloutKind_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKindOrBuilder> + rolloutKindBuilder_; + + /** + * + * + *
+     * Required. The desired state for the rollout kind.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind rollout_kind = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the rolloutKind field is set. + */ + public boolean hasRolloutKind() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Required. The desired state for the rollout kind.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind rollout_kind = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The rolloutKind. + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind getRolloutKind() { + if (rolloutKindBuilder_ == null) { + return rolloutKind_ == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind.getDefaultInstance() + : rolloutKind_; + } else { + return rolloutKindBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The desired state for the rollout kind.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind rollout_kind = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRolloutKind( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind value) { + if (rolloutKindBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rolloutKind_ = value; + } else { + rolloutKindBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The desired state for the rollout kind.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind rollout_kind = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRolloutKind( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind.Builder builderForValue) { + if (rolloutKindBuilder_ == null) { + rolloutKind_ = builderForValue.build(); + } else { + rolloutKindBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The desired state for the rollout kind.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind rollout_kind = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeRolloutKind( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind value) { + if (rolloutKindBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && rolloutKind_ != null + && rolloutKind_ + != com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind + .getDefaultInstance()) { + getRolloutKindBuilder().mergeFrom(value); + } else { + rolloutKind_ = value; + } + } else { + rolloutKindBuilder_.mergeFrom(value); + } + if (rolloutKind_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The desired state for the rollout kind.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind rollout_kind = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearRolloutKind() { + bitField0_ = (bitField0_ & ~0x00000004); + rolloutKind_ = null; + if (rolloutKindBuilder_ != null) { + rolloutKindBuilder_.dispose(); + rolloutKindBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The desired state for the rollout kind.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind rollout_kind = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind.Builder + getRolloutKindBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getRolloutKindFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The desired state for the rollout kind.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind rollout_kind = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKindOrBuilder + getRolloutKindOrBuilder() { + if (rolloutKindBuilder_ != null) { + return rolloutKindBuilder_.getMessageOrBuilder(); + } else { + return rolloutKind_ == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind.getDefaultInstance() + : rolloutKind_; + } + } + + /** + * + * + *
+     * Required. The desired state for the rollout kind.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind rollout_kind = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKindOrBuilder> + getRolloutKindFieldBuilder() { + if (rolloutKindBuilder_ == null) { + rolloutKindBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKindOrBuilder>( + getRolloutKind(), getParentForChildren(), isClean()); + rolloutKind_ = null; + } + return rolloutKindBuilder_; + } + + private boolean validateOnly_; + + /** + * + * + *
+     * If "validate_only" is set to true, the service will try to validate
+     * that this request would succeed, but will not actually make changes.
+     * 
+ * + * bool validate_only = 10501; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + /** + * + * + *
+     * If "validate_only" is set to true, the service will try to validate
+     * that this request would succeed, but will not actually make changes.
+     * 
+ * + * bool validate_only = 10501; + * + * @param value The validateOnly to set. + * @return This builder for chaining. + */ + public Builder setValidateOnly(boolean value) { + + validateOnly_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * If "validate_only" is set to true, the service will try to validate
+     * that this request would succeed, but will not actually make changes.
+     * 
+ * + * bool validate_only = 10501; + * + * @return This builder for chaining. + */ + public Builder clearValidateOnly() { + bitField0_ = (bitField0_ & ~0x00000008); + validateOnly_ = false; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000010; + 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.saasplatform.saasservicemgmt.v1beta1.CreateRolloutKindRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutKindRequest) + private static final com.google.cloud.saasplatform.saasservicemgmt.v1beta1 + .CreateRolloutKindRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutKindRequest(); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutKindRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateRolloutKindRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.saasplatform.saasservicemgmt.v1beta1.CreateRolloutKindRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/CreateRolloutKindRequestOrBuilder.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/CreateRolloutKindRequestOrBuilder.java new file mode 100644 index 000000000000..44c9fcbaa748 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/CreateRolloutKindRequestOrBuilder.java @@ -0,0 +1,190 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/rollouts_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +public interface CreateRolloutKindRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutKindRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent of the rollout kind.
+   * 
+ * + * + * string parent = 10006 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The parent of the rollout kind.
+   * 
+ * + * + * string parent = 10006 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The ID value for the new rollout kind.
+   * 
+ * + * string rollout_kind_id = 10503 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The rolloutKindId. + */ + java.lang.String getRolloutKindId(); + + /** + * + * + *
+   * Required. The ID value for the new rollout kind.
+   * 
+ * + * string rollout_kind_id = 10503 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for rolloutKindId. + */ + com.google.protobuf.ByteString getRolloutKindIdBytes(); + + /** + * + * + *
+   * Required. The desired state for the rollout kind.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind rollout_kind = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the rolloutKind field is set. + */ + boolean hasRolloutKind(); + + /** + * + * + *
+   * Required. The desired state for the rollout kind.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind rollout_kind = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The rolloutKind. + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind getRolloutKind(); + + /** + * + * + *
+   * Required. The desired state for the rollout kind.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind rollout_kind = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKindOrBuilder + getRolloutKindOrBuilder(); + + /** + * + * + *
+   * If "validate_only" is set to true, the service will try to validate
+   * that this request would succeed, but will not actually make changes.
+   * 
+ * + * bool validate_only = 10501; + * + * @return The validateOnly. + */ + boolean getValidateOnly(); + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 10502; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 10502; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/CreateRolloutRequest.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/CreateRolloutRequest.java new file mode 100644 index 000000000000..f54994c4f1a3 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/CreateRolloutRequest.java @@ -0,0 +1,1557 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/rollouts_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +/** + * + * + *
+ * The request structure for the CreateRollout method.
+ * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutRequest} + */ +public final class CreateRolloutRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutRequest) + CreateRolloutRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use CreateRolloutRequest.newBuilder() to construct. + private CreateRolloutRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateRolloutRequest() { + parent_ = ""; + rolloutId_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateRolloutRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_CreateRolloutRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_CreateRolloutRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutRequest.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutRequest.Builder + .class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 10006; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The parent of the rollout.
+   * 
+ * + * + * string parent = 10006 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + 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 of the rollout.
+   * 
+ * + * + * string parent = 10006 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + 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 ROLLOUT_ID_FIELD_NUMBER = 10503; + + @SuppressWarnings("serial") + private volatile java.lang.Object rolloutId_ = ""; + + /** + * + * + *
+   * Required. The ID value for the new rollout.
+   * 
+ * + * string rollout_id = 10503 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The rolloutId. + */ + @java.lang.Override + public java.lang.String getRolloutId() { + java.lang.Object ref = rolloutId_; + 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(); + rolloutId_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The ID value for the new rollout.
+   * 
+ * + * string rollout_id = 10503 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for rolloutId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRolloutIdBytes() { + java.lang.Object ref = rolloutId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rolloutId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ROLLOUT_FIELD_NUMBER = 10504; + private com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout rollout_; + + /** + * + * + *
+   * Required. The desired state for the rollout.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout rollout = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the rollout field is set. + */ + @java.lang.Override + public boolean hasRollout() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The desired state for the rollout.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout rollout = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The rollout. + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout getRollout() { + return rollout_ == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout.getDefaultInstance() + : rollout_; + } + + /** + * + * + *
+   * Required. The desired state for the rollout.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout rollout = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutOrBuilder + getRolloutOrBuilder() { + return rollout_ == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout.getDefaultInstance() + : rollout_; + } + + public static final int VALIDATE_ONLY_FIELD_NUMBER = 10501; + private boolean validateOnly_ = false; + + /** + * + * + *
+   * If "validate_only" is set to true, the service will try to validate
+   * that this request would succeed, but will not actually make changes.
+   * 
+ * + * bool validate_only = 10501; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 10502; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 10502; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 10502; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10006, parent_); + } + if (validateOnly_ != false) { + output.writeBool(10501, validateOnly_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10502, requestId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rolloutId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10503, rolloutId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(10504, getRollout()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10006, parent_); + } + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(10501, validateOnly_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10502, requestId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rolloutId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10503, rolloutId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10504, getRollout()); + } + size += getUnknownFields().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.saasplatform.saasservicemgmt.v1beta1.CreateRolloutRequest)) { + return super.equals(obj); + } + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutRequest other = + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getRolloutId().equals(other.getRolloutId())) return false; + if (hasRollout() != other.hasRollout()) return false; + if (hasRollout()) { + if (!getRollout().equals(other.getRollout())) return false; + } + if (getValidateOnly() != other.getValidateOnly()) return false; + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + ROLLOUT_ID_FIELD_NUMBER; + hash = (53 * hash) + getRolloutId().hashCode(); + if (hasRollout()) { + hash = (37 * hash) + ROLLOUT_FIELD_NUMBER; + hash = (53 * hash) + getRollout().hashCode(); + } + hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutRequest + 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.saasplatform.saasservicemgmt.v1beta1.CreateRolloutRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutRequest + 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.saasplatform.saasservicemgmt.v1beta1.CreateRolloutRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutRequest + 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.saasplatform.saasservicemgmt.v1beta1.CreateRolloutRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutRequest + 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.saasplatform.saasservicemgmt.v1beta1.CreateRolloutRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutRequest + 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.saasplatform.saasservicemgmt.v1beta1.CreateRolloutRequest 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 request structure for the CreateRollout method.
+   * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutRequest) + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_CreateRolloutRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_CreateRolloutRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutRequest.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getRolloutFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + rolloutId_ = ""; + rollout_ = null; + if (rolloutBuilder_ != null) { + rolloutBuilder_.dispose(); + rolloutBuilder_ = null; + } + validateOnly_ = false; + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_CreateRolloutRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutRequest + getDefaultInstanceForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutRequest build() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutRequest + buildPartial() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutRequest result = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.rolloutId_ = rolloutId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.rollout_ = rolloutBuilder_ == null ? rollout_ : rolloutBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.validateOnly_ = validateOnly_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.requestId_ = requestId_; + } + result.bitField0_ |= to_bitField0_; + } + + @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.saasplatform.saasservicemgmt.v1beta1.CreateRolloutRequest) { + return mergeFrom( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutRequest other) { + if (other + == com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRolloutId().isEmpty()) { + rolloutId_ = other.rolloutId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasRollout()) { + mergeRollout(other.getRollout()); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 80050: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 80050 + case 84008: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 84008 + case 84018: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 84018 + case 84026: + { + rolloutId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 84026 + case 84034: + { + input.readMessage(getRolloutFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 84034 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. The parent of the rollout.
+     * 
+ * + * + * string parent = 10006 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @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 of the rollout.
+     * 
+ * + * + * string parent = 10006 [(.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_; + 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 of the rollout.
+     * 
+ * + * + * string parent = 10006 [(.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) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent of the rollout.
+     * 
+ * + * + * string parent = 10006 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent of the rollout.
+     * 
+ * + * + * string parent = 10006 [(.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) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object rolloutId_ = ""; + + /** + * + * + *
+     * Required. The ID value for the new rollout.
+     * 
+ * + * string rollout_id = 10503 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The rolloutId. + */ + public java.lang.String getRolloutId() { + java.lang.Object ref = rolloutId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rolloutId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The ID value for the new rollout.
+     * 
+ * + * string rollout_id = 10503 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for rolloutId. + */ + public com.google.protobuf.ByteString getRolloutIdBytes() { + java.lang.Object ref = rolloutId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rolloutId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The ID value for the new rollout.
+     * 
+ * + * string rollout_id = 10503 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The rolloutId to set. + * @return This builder for chaining. + */ + public Builder setRolloutId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + rolloutId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The ID value for the new rollout.
+     * 
+ * + * string rollout_id = 10503 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearRolloutId() { + rolloutId_ = getDefaultInstance().getRolloutId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The ID value for the new rollout.
+     * 
+ * + * string rollout_id = 10503 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for rolloutId to set. + * @return This builder for chaining. + */ + public Builder setRolloutIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + rolloutId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout rollout_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutOrBuilder> + rolloutBuilder_; + + /** + * + * + *
+     * Required. The desired state for the rollout.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout rollout = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the rollout field is set. + */ + public boolean hasRollout() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Required. The desired state for the rollout.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout rollout = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The rollout. + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout getRollout() { + if (rolloutBuilder_ == null) { + return rollout_ == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout.getDefaultInstance() + : rollout_; + } else { + return rolloutBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The desired state for the rollout.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout rollout = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRollout(com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout value) { + if (rolloutBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rollout_ = value; + } else { + rolloutBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The desired state for the rollout.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout rollout = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRollout( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout.Builder builderForValue) { + if (rolloutBuilder_ == null) { + rollout_ = builderForValue.build(); + } else { + rolloutBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The desired state for the rollout.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout rollout = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeRollout( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout value) { + if (rolloutBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && rollout_ != null + && rollout_ + != com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout + .getDefaultInstance()) { + getRolloutBuilder().mergeFrom(value); + } else { + rollout_ = value; + } + } else { + rolloutBuilder_.mergeFrom(value); + } + if (rollout_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The desired state for the rollout.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout rollout = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearRollout() { + bitField0_ = (bitField0_ & ~0x00000004); + rollout_ = null; + if (rolloutBuilder_ != null) { + rolloutBuilder_.dispose(); + rolloutBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The desired state for the rollout.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout rollout = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout.Builder + getRolloutBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getRolloutFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The desired state for the rollout.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout rollout = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutOrBuilder + getRolloutOrBuilder() { + if (rolloutBuilder_ != null) { + return rolloutBuilder_.getMessageOrBuilder(); + } else { + return rollout_ == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout.getDefaultInstance() + : rollout_; + } + } + + /** + * + * + *
+     * Required. The desired state for the rollout.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout rollout = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutOrBuilder> + getRolloutFieldBuilder() { + if (rolloutBuilder_ == null) { + rolloutBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutOrBuilder>( + getRollout(), getParentForChildren(), isClean()); + rollout_ = null; + } + return rolloutBuilder_; + } + + private boolean validateOnly_; + + /** + * + * + *
+     * If "validate_only" is set to true, the service will try to validate
+     * that this request would succeed, but will not actually make changes.
+     * 
+ * + * bool validate_only = 10501; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + /** + * + * + *
+     * If "validate_only" is set to true, the service will try to validate
+     * that this request would succeed, but will not actually make changes.
+     * 
+ * + * bool validate_only = 10501; + * + * @param value The validateOnly to set. + * @return This builder for chaining. + */ + public Builder setValidateOnly(boolean value) { + + validateOnly_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * If "validate_only" is set to true, the service will try to validate
+     * that this request would succeed, but will not actually make changes.
+     * 
+ * + * bool validate_only = 10501; + * + * @return This builder for chaining. + */ + public Builder clearValidateOnly() { + bitField0_ = (bitField0_ & ~0x00000008); + validateOnly_ = false; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000010; + 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.saasplatform.saasservicemgmt.v1beta1.CreateRolloutRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutRequest) + private static final com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutRequest(); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateRolloutRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.saasplatform.saasservicemgmt.v1beta1.CreateRolloutRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/CreateRolloutRequestOrBuilder.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/CreateRolloutRequestOrBuilder.java new file mode 100644 index 000000000000..555a151d016c --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/CreateRolloutRequestOrBuilder.java @@ -0,0 +1,189 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/rollouts_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +public interface CreateRolloutRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent of the rollout.
+   * 
+ * + * + * string parent = 10006 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The parent of the rollout.
+   * 
+ * + * + * string parent = 10006 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The ID value for the new rollout.
+   * 
+ * + * string rollout_id = 10503 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The rolloutId. + */ + java.lang.String getRolloutId(); + + /** + * + * + *
+   * Required. The ID value for the new rollout.
+   * 
+ * + * string rollout_id = 10503 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for rolloutId. + */ + com.google.protobuf.ByteString getRolloutIdBytes(); + + /** + * + * + *
+   * Required. The desired state for the rollout.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout rollout = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the rollout field is set. + */ + boolean hasRollout(); + + /** + * + * + *
+   * Required. The desired state for the rollout.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout rollout = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The rollout. + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout getRollout(); + + /** + * + * + *
+   * Required. The desired state for the rollout.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout rollout = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutOrBuilder getRolloutOrBuilder(); + + /** + * + * + *
+   * If "validate_only" is set to true, the service will try to validate
+   * that this request would succeed, but will not actually make changes.
+   * 
+ * + * bool validate_only = 10501; + * + * @return The validateOnly. + */ + boolean getValidateOnly(); + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 10502; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 10502; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/CreateSaasRequest.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/CreateSaasRequest.java new file mode 100644 index 000000000000..7851f91d22fa --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/CreateSaasRequest.java @@ -0,0 +1,1545 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +/** + * + * + *
+ * The request structure for the CreateSaas method.
+ * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateSaasRequest} + */ +public final class CreateSaasRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateSaasRequest) + CreateSaasRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use CreateSaasRequest.newBuilder() to construct. + private CreateSaasRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateSaasRequest() { + parent_ = ""; + saasId_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateSaasRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_CreateSaasRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_CreateSaasRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateSaasRequest.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateSaasRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 10006; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The parent of the saas.
+   * 
+ * + * + * string parent = 10006 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + 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 of the saas.
+   * 
+ * + * + * string parent = 10006 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + 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 SAAS_ID_FIELD_NUMBER = 10503; + + @SuppressWarnings("serial") + private volatile java.lang.Object saasId_ = ""; + + /** + * + * + *
+   * Required. The ID value for the new saas.
+   * 
+ * + * string saas_id = 10503 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The saasId. + */ + @java.lang.Override + public java.lang.String getSaasId() { + java.lang.Object ref = saasId_; + 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(); + saasId_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The ID value for the new saas.
+   * 
+ * + * string saas_id = 10503 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for saasId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSaasIdBytes() { + java.lang.Object ref = saasId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + saasId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SAAS_FIELD_NUMBER = 10504; + private com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas saas_; + + /** + * + * + *
+   * Required. The desired state for the saas.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas saas = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the saas field is set. + */ + @java.lang.Override + public boolean hasSaas() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The desired state for the saas.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas saas = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The saas. + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas getSaas() { + return saas_ == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas.getDefaultInstance() + : saas_; + } + + /** + * + * + *
+   * Required. The desired state for the saas.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas saas = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasOrBuilder getSaasOrBuilder() { + return saas_ == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas.getDefaultInstance() + : saas_; + } + + public static final int VALIDATE_ONLY_FIELD_NUMBER = 10501; + private boolean validateOnly_ = false; + + /** + * + * + *
+   * If "validate_only" is set to true, the service will try to validate
+   * that this request would succeed, but will not actually make changes.
+   * 
+ * + * bool validate_only = 10501; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 10502; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 10502; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 10502; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10006, parent_); + } + if (validateOnly_ != false) { + output.writeBool(10501, validateOnly_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10502, requestId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(saasId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10503, saasId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(10504, getSaas()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10006, parent_); + } + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(10501, validateOnly_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10502, requestId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(saasId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10503, saasId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10504, getSaas()); + } + size += getUnknownFields().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.saasplatform.saasservicemgmt.v1beta1.CreateSaasRequest)) { + return super.equals(obj); + } + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateSaasRequest other = + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateSaasRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getSaasId().equals(other.getSaasId())) return false; + if (hasSaas() != other.hasSaas()) return false; + if (hasSaas()) { + if (!getSaas().equals(other.getSaas())) return false; + } + if (getValidateOnly() != other.getValidateOnly()) return false; + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + SAAS_ID_FIELD_NUMBER; + hash = (53 * hash) + getSaasId().hashCode(); + if (hasSaas()) { + hash = (37 * hash) + SAAS_FIELD_NUMBER; + hash = (53 * hash) + getSaas().hashCode(); + } + hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateSaasRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateSaasRequest 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.saasplatform.saasservicemgmt.v1beta1.CreateSaasRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateSaasRequest 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.saasplatform.saasservicemgmt.v1beta1.CreateSaasRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateSaasRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateSaasRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateSaasRequest 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.saasplatform.saasservicemgmt.v1beta1.CreateSaasRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateSaasRequest + 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.saasplatform.saasservicemgmt.v1beta1.CreateSaasRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateSaasRequest 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.saasplatform.saasservicemgmt.v1beta1.CreateSaasRequest 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 request structure for the CreateSaas method.
+   * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateSaasRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateSaasRequest) + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateSaasRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_CreateSaasRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_CreateSaasRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateSaasRequest.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateSaasRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateSaasRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getSaasFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + saasId_ = ""; + saas_ = null; + if (saasBuilder_ != null) { + saasBuilder_.dispose(); + saasBuilder_ = null; + } + validateOnly_ = false; + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_CreateSaasRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateSaasRequest + getDefaultInstanceForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateSaasRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateSaasRequest build() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateSaasRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateSaasRequest buildPartial() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateSaasRequest result = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateSaasRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateSaasRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.saasId_ = saasId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.saas_ = saasBuilder_ == null ? saas_ : saasBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.validateOnly_ = validateOnly_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.requestId_ = requestId_; + } + result.bitField0_ |= to_bitField0_; + } + + @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.saasplatform.saasservicemgmt.v1beta1.CreateSaasRequest) { + return mergeFrom( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateSaasRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateSaasRequest other) { + if (other + == com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateSaasRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getSaasId().isEmpty()) { + saasId_ = other.saasId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasSaas()) { + mergeSaas(other.getSaas()); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 80050: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 80050 + case 84008: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 84008 + case 84018: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 84018 + case 84026: + { + saasId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 84026 + case 84034: + { + input.readMessage(getSaasFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 84034 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. The parent of the saas.
+     * 
+ * + * + * string parent = 10006 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @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 of the saas.
+     * 
+ * + * + * string parent = 10006 [(.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_; + 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 of the saas.
+     * 
+ * + * + * string parent = 10006 [(.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) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent of the saas.
+     * 
+ * + * + * string parent = 10006 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent of the saas.
+     * 
+ * + * + * string parent = 10006 [(.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) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object saasId_ = ""; + + /** + * + * + *
+     * Required. The ID value for the new saas.
+     * 
+ * + * string saas_id = 10503 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The saasId. + */ + public java.lang.String getSaasId() { + java.lang.Object ref = saasId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + saasId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The ID value for the new saas.
+     * 
+ * + * string saas_id = 10503 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for saasId. + */ + public com.google.protobuf.ByteString getSaasIdBytes() { + java.lang.Object ref = saasId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + saasId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The ID value for the new saas.
+     * 
+ * + * string saas_id = 10503 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The saasId to set. + * @return This builder for chaining. + */ + public Builder setSaasId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + saasId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The ID value for the new saas.
+     * 
+ * + * string saas_id = 10503 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearSaasId() { + saasId_ = getDefaultInstance().getSaasId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The ID value for the new saas.
+     * 
+ * + * string saas_id = 10503 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for saasId to set. + * @return This builder for chaining. + */ + public Builder setSaasIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + saasId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas saas_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasOrBuilder> + saasBuilder_; + + /** + * + * + *
+     * Required. The desired state for the saas.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas saas = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the saas field is set. + */ + public boolean hasSaas() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Required. The desired state for the saas.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas saas = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The saas. + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas getSaas() { + if (saasBuilder_ == null) { + return saas_ == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas.getDefaultInstance() + : saas_; + } else { + return saasBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The desired state for the saas.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas saas = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSaas(com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas value) { + if (saasBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + saas_ = value; + } else { + saasBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The desired state for the saas.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas saas = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSaas( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas.Builder builderForValue) { + if (saasBuilder_ == null) { + saas_ = builderForValue.build(); + } else { + saasBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The desired state for the saas.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas saas = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeSaas(com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas value) { + if (saasBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && saas_ != null + && saas_ + != com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas + .getDefaultInstance()) { + getSaasBuilder().mergeFrom(value); + } else { + saas_ = value; + } + } else { + saasBuilder_.mergeFrom(value); + } + if (saas_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The desired state for the saas.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas saas = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearSaas() { + bitField0_ = (bitField0_ & ~0x00000004); + saas_ = null; + if (saasBuilder_ != null) { + saasBuilder_.dispose(); + saasBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The desired state for the saas.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas saas = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas.Builder getSaasBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getSaasFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The desired state for the saas.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas saas = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasOrBuilder getSaasOrBuilder() { + if (saasBuilder_ != null) { + return saasBuilder_.getMessageOrBuilder(); + } else { + return saas_ == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas.getDefaultInstance() + : saas_; + } + } + + /** + * + * + *
+     * Required. The desired state for the saas.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas saas = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasOrBuilder> + getSaasFieldBuilder() { + if (saasBuilder_ == null) { + saasBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasOrBuilder>( + getSaas(), getParentForChildren(), isClean()); + saas_ = null; + } + return saasBuilder_; + } + + private boolean validateOnly_; + + /** + * + * + *
+     * If "validate_only" is set to true, the service will try to validate
+     * that this request would succeed, but will not actually make changes.
+     * 
+ * + * bool validate_only = 10501; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + /** + * + * + *
+     * If "validate_only" is set to true, the service will try to validate
+     * that this request would succeed, but will not actually make changes.
+     * 
+ * + * bool validate_only = 10501; + * + * @param value The validateOnly to set. + * @return This builder for chaining. + */ + public Builder setValidateOnly(boolean value) { + + validateOnly_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * If "validate_only" is set to true, the service will try to validate
+     * that this request would succeed, but will not actually make changes.
+     * 
+ * + * bool validate_only = 10501; + * + * @return This builder for chaining. + */ + public Builder clearValidateOnly() { + bitField0_ = (bitField0_ & ~0x00000008); + validateOnly_ = false; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000010; + 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.saasplatform.saasservicemgmt.v1beta1.CreateSaasRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateSaasRequest) + private static final com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateSaasRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateSaasRequest(); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateSaasRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateSaasRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.saasplatform.saasservicemgmt.v1beta1.CreateSaasRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/CreateSaasRequestOrBuilder.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/CreateSaasRequestOrBuilder.java new file mode 100644 index 000000000000..c1381be899d8 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/CreateSaasRequestOrBuilder.java @@ -0,0 +1,189 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +public interface CreateSaasRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateSaasRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent of the saas.
+   * 
+ * + * + * string parent = 10006 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The parent of the saas.
+   * 
+ * + * + * string parent = 10006 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The ID value for the new saas.
+   * 
+ * + * string saas_id = 10503 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The saasId. + */ + java.lang.String getSaasId(); + + /** + * + * + *
+   * Required. The ID value for the new saas.
+   * 
+ * + * string saas_id = 10503 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for saasId. + */ + com.google.protobuf.ByteString getSaasIdBytes(); + + /** + * + * + *
+   * Required. The desired state for the saas.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas saas = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the saas field is set. + */ + boolean hasSaas(); + + /** + * + * + *
+   * Required. The desired state for the saas.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas saas = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The saas. + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas getSaas(); + + /** + * + * + *
+   * Required. The desired state for the saas.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas saas = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasOrBuilder getSaasOrBuilder(); + + /** + * + * + *
+   * If "validate_only" is set to true, the service will try to validate
+   * that this request would succeed, but will not actually make changes.
+   * 
+ * + * bool validate_only = 10501; + * + * @return The validateOnly. + */ + boolean getValidateOnly(); + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 10502; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 10502; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/CreateTenantRequest.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/CreateTenantRequest.java new file mode 100644 index 000000000000..9ceadc70e76c --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/CreateTenantRequest.java @@ -0,0 +1,1550 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +/** + * + * + *
+ * The request structure for the CreateTenant method.
+ * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateTenantRequest} + */ +public final class CreateTenantRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateTenantRequest) + CreateTenantRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use CreateTenantRequest.newBuilder() to construct. + private CreateTenantRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateTenantRequest() { + parent_ = ""; + tenantId_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateTenantRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_CreateTenantRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_CreateTenantRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateTenantRequest.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateTenantRequest.Builder + .class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 10006; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The parent of the tenant.
+   * 
+ * + * + * string parent = 10006 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + 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 of the tenant.
+   * 
+ * + * + * string parent = 10006 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + 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 TENANT_ID_FIELD_NUMBER = 10503; + + @SuppressWarnings("serial") + private volatile java.lang.Object tenantId_ = ""; + + /** + * + * + *
+   * Required. The ID value for the new tenant.
+   * 
+ * + * string tenant_id = 10503 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The tenantId. + */ + @java.lang.Override + public java.lang.String getTenantId() { + java.lang.Object ref = tenantId_; + 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(); + tenantId_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The ID value for the new tenant.
+   * 
+ * + * string tenant_id = 10503 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for tenantId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTenantIdBytes() { + java.lang.Object ref = tenantId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tenantId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TENANT_FIELD_NUMBER = 10504; + private com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant tenant_; + + /** + * + * + *
+   * Required. The desired state for the tenant.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant tenant = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the tenant field is set. + */ + @java.lang.Override + public boolean hasTenant() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The desired state for the tenant.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant tenant = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The tenant. + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant getTenant() { + return tenant_ == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant.getDefaultInstance() + : tenant_; + } + + /** + * + * + *
+   * Required. The desired state for the tenant.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant tenant = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.TenantOrBuilder + getTenantOrBuilder() { + return tenant_ == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant.getDefaultInstance() + : tenant_; + } + + public static final int VALIDATE_ONLY_FIELD_NUMBER = 10501; + private boolean validateOnly_ = false; + + /** + * + * + *
+   * If "validate_only" is set to true, the service will try to validate
+   * that this request would succeed, but will not actually make changes.
+   * 
+ * + * bool validate_only = 10501; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 10502; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 10502; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 10502; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10006, parent_); + } + if (validateOnly_ != false) { + output.writeBool(10501, validateOnly_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10502, requestId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tenantId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10503, tenantId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(10504, getTenant()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10006, parent_); + } + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(10501, validateOnly_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10502, requestId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tenantId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10503, tenantId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10504, getTenant()); + } + size += getUnknownFields().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.saasplatform.saasservicemgmt.v1beta1.CreateTenantRequest)) { + return super.equals(obj); + } + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateTenantRequest other = + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateTenantRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getTenantId().equals(other.getTenantId())) return false; + if (hasTenant() != other.hasTenant()) return false; + if (hasTenant()) { + if (!getTenant().equals(other.getTenant())) return false; + } + if (getValidateOnly() != other.getValidateOnly()) return false; + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + TENANT_ID_FIELD_NUMBER; + hash = (53 * hash) + getTenantId().hashCode(); + if (hasTenant()) { + hash = (37 * hash) + TENANT_FIELD_NUMBER; + hash = (53 * hash) + getTenant().hashCode(); + } + hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateTenantRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateTenantRequest 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.saasplatform.saasservicemgmt.v1beta1.CreateTenantRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateTenantRequest 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.saasplatform.saasservicemgmt.v1beta1.CreateTenantRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateTenantRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateTenantRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateTenantRequest 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.saasplatform.saasservicemgmt.v1beta1.CreateTenantRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateTenantRequest + 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.saasplatform.saasservicemgmt.v1beta1.CreateTenantRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateTenantRequest 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.saasplatform.saasservicemgmt.v1beta1.CreateTenantRequest 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 request structure for the CreateTenant method.
+   * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateTenantRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateTenantRequest) + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateTenantRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_CreateTenantRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_CreateTenantRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateTenantRequest.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateTenantRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateTenantRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getTenantFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + tenantId_ = ""; + tenant_ = null; + if (tenantBuilder_ != null) { + tenantBuilder_.dispose(); + tenantBuilder_ = null; + } + validateOnly_ = false; + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_CreateTenantRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateTenantRequest + getDefaultInstanceForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateTenantRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateTenantRequest build() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateTenantRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateTenantRequest + buildPartial() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateTenantRequest result = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateTenantRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateTenantRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.tenantId_ = tenantId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.tenant_ = tenantBuilder_ == null ? tenant_ : tenantBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.validateOnly_ = validateOnly_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.requestId_ = requestId_; + } + result.bitField0_ |= to_bitField0_; + } + + @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.saasplatform.saasservicemgmt.v1beta1.CreateTenantRequest) { + return mergeFrom( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateTenantRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateTenantRequest other) { + if (other + == com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateTenantRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getTenantId().isEmpty()) { + tenantId_ = other.tenantId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasTenant()) { + mergeTenant(other.getTenant()); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 80050: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 80050 + case 84008: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 84008 + case 84018: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 84018 + case 84026: + { + tenantId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 84026 + case 84034: + { + input.readMessage(getTenantFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 84034 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. The parent of the tenant.
+     * 
+ * + * + * string parent = 10006 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @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 of the tenant.
+     * 
+ * + * + * string parent = 10006 [(.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_; + 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 of the tenant.
+     * 
+ * + * + * string parent = 10006 [(.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) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent of the tenant.
+     * 
+ * + * + * string parent = 10006 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent of the tenant.
+     * 
+ * + * + * string parent = 10006 [(.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) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object tenantId_ = ""; + + /** + * + * + *
+     * Required. The ID value for the new tenant.
+     * 
+ * + * string tenant_id = 10503 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The tenantId. + */ + public java.lang.String getTenantId() { + java.lang.Object ref = tenantId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tenantId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The ID value for the new tenant.
+     * 
+ * + * string tenant_id = 10503 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for tenantId. + */ + public com.google.protobuf.ByteString getTenantIdBytes() { + java.lang.Object ref = tenantId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tenantId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The ID value for the new tenant.
+     * 
+ * + * string tenant_id = 10503 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The tenantId to set. + * @return This builder for chaining. + */ + public Builder setTenantId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + tenantId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The ID value for the new tenant.
+     * 
+ * + * string tenant_id = 10503 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearTenantId() { + tenantId_ = getDefaultInstance().getTenantId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The ID value for the new tenant.
+     * 
+ * + * string tenant_id = 10503 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for tenantId to set. + * @return This builder for chaining. + */ + public Builder setTenantIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + tenantId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant tenant_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.TenantOrBuilder> + tenantBuilder_; + + /** + * + * + *
+     * Required. The desired state for the tenant.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant tenant = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the tenant field is set. + */ + public boolean hasTenant() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Required. The desired state for the tenant.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant tenant = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The tenant. + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant getTenant() { + if (tenantBuilder_ == null) { + return tenant_ == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant.getDefaultInstance() + : tenant_; + } else { + return tenantBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The desired state for the tenant.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant tenant = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setTenant(com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant value) { + if (tenantBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + tenant_ = value; + } else { + tenantBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The desired state for the tenant.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant tenant = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setTenant( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant.Builder builderForValue) { + if (tenantBuilder_ == null) { + tenant_ = builderForValue.build(); + } else { + tenantBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The desired state for the tenant.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant tenant = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeTenant(com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant value) { + if (tenantBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && tenant_ != null + && tenant_ + != com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant + .getDefaultInstance()) { + getTenantBuilder().mergeFrom(value); + } else { + tenant_ = value; + } + } else { + tenantBuilder_.mergeFrom(value); + } + if (tenant_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The desired state for the tenant.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant tenant = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearTenant() { + bitField0_ = (bitField0_ & ~0x00000004); + tenant_ = null; + if (tenantBuilder_ != null) { + tenantBuilder_.dispose(); + tenantBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The desired state for the tenant.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant tenant = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant.Builder getTenantBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getTenantFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The desired state for the tenant.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant tenant = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.TenantOrBuilder + getTenantOrBuilder() { + if (tenantBuilder_ != null) { + return tenantBuilder_.getMessageOrBuilder(); + } else { + return tenant_ == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant.getDefaultInstance() + : tenant_; + } + } + + /** + * + * + *
+     * Required. The desired state for the tenant.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant tenant = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.TenantOrBuilder> + getTenantFieldBuilder() { + if (tenantBuilder_ == null) { + tenantBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.TenantOrBuilder>( + getTenant(), getParentForChildren(), isClean()); + tenant_ = null; + } + return tenantBuilder_; + } + + private boolean validateOnly_; + + /** + * + * + *
+     * If "validate_only" is set to true, the service will try to validate
+     * that this request would succeed, but will not actually make changes.
+     * 
+ * + * bool validate_only = 10501; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + /** + * + * + *
+     * If "validate_only" is set to true, the service will try to validate
+     * that this request would succeed, but will not actually make changes.
+     * 
+ * + * bool validate_only = 10501; + * + * @param value The validateOnly to set. + * @return This builder for chaining. + */ + public Builder setValidateOnly(boolean value) { + + validateOnly_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * If "validate_only" is set to true, the service will try to validate
+     * that this request would succeed, but will not actually make changes.
+     * 
+ * + * bool validate_only = 10501; + * + * @return This builder for chaining. + */ + public Builder clearValidateOnly() { + bitField0_ = (bitField0_ & ~0x00000008); + validateOnly_ = false; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000010; + 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.saasplatform.saasservicemgmt.v1beta1.CreateTenantRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateTenantRequest) + private static final com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateTenantRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateTenantRequest(); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateTenantRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateTenantRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.saasplatform.saasservicemgmt.v1beta1.CreateTenantRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/CreateTenantRequestOrBuilder.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/CreateTenantRequestOrBuilder.java new file mode 100644 index 000000000000..2836051acc73 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/CreateTenantRequestOrBuilder.java @@ -0,0 +1,189 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +public interface CreateTenantRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateTenantRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent of the tenant.
+   * 
+ * + * + * string parent = 10006 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The parent of the tenant.
+   * 
+ * + * + * string parent = 10006 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The ID value for the new tenant.
+   * 
+ * + * string tenant_id = 10503 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The tenantId. + */ + java.lang.String getTenantId(); + + /** + * + * + *
+   * Required. The ID value for the new tenant.
+   * 
+ * + * string tenant_id = 10503 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for tenantId. + */ + com.google.protobuf.ByteString getTenantIdBytes(); + + /** + * + * + *
+   * Required. The desired state for the tenant.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant tenant = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the tenant field is set. + */ + boolean hasTenant(); + + /** + * + * + *
+   * Required. The desired state for the tenant.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant tenant = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The tenant. + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant getTenant(); + + /** + * + * + *
+   * Required. The desired state for the tenant.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant tenant = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.TenantOrBuilder getTenantOrBuilder(); + + /** + * + * + *
+   * If "validate_only" is set to true, the service will try to validate
+   * that this request would succeed, but will not actually make changes.
+   * 
+ * + * bool validate_only = 10501; + * + * @return The validateOnly. + */ + boolean getValidateOnly(); + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 10502; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 10502; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/CreateUnitKindRequest.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/CreateUnitKindRequest.java new file mode 100644 index 000000000000..cfc2f06bd1f7 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/CreateUnitKindRequest.java @@ -0,0 +1,1558 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +/** + * + * + *
+ * The request structure for the CreateUnitKind method.
+ * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitKindRequest} + */ +public final class CreateUnitKindRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitKindRequest) + CreateUnitKindRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use CreateUnitKindRequest.newBuilder() to construct. + private CreateUnitKindRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateUnitKindRequest() { + parent_ = ""; + unitKindId_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateUnitKindRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_CreateUnitKindRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_CreateUnitKindRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitKindRequest.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitKindRequest.Builder + .class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 10006; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The parent of the unit kind.
+   * 
+ * + * + * string parent = 10006 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + 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 of the unit kind.
+   * 
+ * + * + * string parent = 10006 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + 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 UNIT_KIND_ID_FIELD_NUMBER = 10503; + + @SuppressWarnings("serial") + private volatile java.lang.Object unitKindId_ = ""; + + /** + * + * + *
+   * Required. The ID value for the new unit kind.
+   * 
+ * + * string unit_kind_id = 10503 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The unitKindId. + */ + @java.lang.Override + public java.lang.String getUnitKindId() { + java.lang.Object ref = unitKindId_; + 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(); + unitKindId_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The ID value for the new unit kind.
+   * 
+ * + * string unit_kind_id = 10503 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for unitKindId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUnitKindIdBytes() { + java.lang.Object ref = unitKindId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + unitKindId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UNIT_KIND_FIELD_NUMBER = 10504; + private com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind unitKind_; + + /** + * + * + *
+   * Required. The desired state for the unit kind.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind unit_kind = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the unitKind field is set. + */ + @java.lang.Override + public boolean hasUnitKind() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The desired state for the unit kind.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind unit_kind = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The unitKind. + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind getUnitKind() { + return unitKind_ == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind.getDefaultInstance() + : unitKind_; + } + + /** + * + * + *
+   * Required. The desired state for the unit kind.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind unit_kind = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKindOrBuilder + getUnitKindOrBuilder() { + return unitKind_ == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind.getDefaultInstance() + : unitKind_; + } + + public static final int VALIDATE_ONLY_FIELD_NUMBER = 10501; + private boolean validateOnly_ = false; + + /** + * + * + *
+   * If "validate_only" is set to true, the service will try to validate
+   * that this request would succeed, but will not actually make changes.
+   * 
+ * + * bool validate_only = 10501; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 10502; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 10502; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 10502; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10006, parent_); + } + if (validateOnly_ != false) { + output.writeBool(10501, validateOnly_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10502, requestId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(unitKindId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10503, unitKindId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(10504, getUnitKind()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10006, parent_); + } + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(10501, validateOnly_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10502, requestId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(unitKindId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10503, unitKindId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10504, getUnitKind()); + } + size += getUnknownFields().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.saasplatform.saasservicemgmt.v1beta1.CreateUnitKindRequest)) { + return super.equals(obj); + } + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitKindRequest other = + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitKindRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getUnitKindId().equals(other.getUnitKindId())) return false; + if (hasUnitKind() != other.hasUnitKind()) return false; + if (hasUnitKind()) { + if (!getUnitKind().equals(other.getUnitKind())) return false; + } + if (getValidateOnly() != other.getValidateOnly()) return false; + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + UNIT_KIND_ID_FIELD_NUMBER; + hash = (53 * hash) + getUnitKindId().hashCode(); + if (hasUnitKind()) { + hash = (37 * hash) + UNIT_KIND_FIELD_NUMBER; + hash = (53 * hash) + getUnitKind().hashCode(); + } + hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitKindRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitKindRequest + 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.saasplatform.saasservicemgmt.v1beta1.CreateUnitKindRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitKindRequest + 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.saasplatform.saasservicemgmt.v1beta1.CreateUnitKindRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitKindRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitKindRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitKindRequest + 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.saasplatform.saasservicemgmt.v1beta1.CreateUnitKindRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitKindRequest + 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.saasplatform.saasservicemgmt.v1beta1.CreateUnitKindRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitKindRequest + 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.saasplatform.saasservicemgmt.v1beta1.CreateUnitKindRequest 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 request structure for the CreateUnitKind method.
+   * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitKindRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitKindRequest) + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitKindRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_CreateUnitKindRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_CreateUnitKindRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitKindRequest.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitKindRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitKindRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getUnitKindFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + unitKindId_ = ""; + unitKind_ = null; + if (unitKindBuilder_ != null) { + unitKindBuilder_.dispose(); + unitKindBuilder_ = null; + } + validateOnly_ = false; + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_CreateUnitKindRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitKindRequest + getDefaultInstanceForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitKindRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitKindRequest build() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitKindRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitKindRequest + buildPartial() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitKindRequest result = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitKindRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitKindRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.unitKindId_ = unitKindId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.unitKind_ = unitKindBuilder_ == null ? unitKind_ : unitKindBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.validateOnly_ = validateOnly_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.requestId_ = requestId_; + } + result.bitField0_ |= to_bitField0_; + } + + @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.saasplatform.saasservicemgmt.v1beta1.CreateUnitKindRequest) { + return mergeFrom( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitKindRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitKindRequest other) { + if (other + == com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitKindRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getUnitKindId().isEmpty()) { + unitKindId_ = other.unitKindId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasUnitKind()) { + mergeUnitKind(other.getUnitKind()); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 80050: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 80050 + case 84008: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 84008 + case 84018: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 84018 + case 84026: + { + unitKindId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 84026 + case 84034: + { + input.readMessage(getUnitKindFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 84034 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. The parent of the unit kind.
+     * 
+ * + * + * string parent = 10006 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @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 of the unit kind.
+     * 
+ * + * + * string parent = 10006 [(.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_; + 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 of the unit kind.
+     * 
+ * + * + * string parent = 10006 [(.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) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent of the unit kind.
+     * 
+ * + * + * string parent = 10006 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent of the unit kind.
+     * 
+ * + * + * string parent = 10006 [(.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) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object unitKindId_ = ""; + + /** + * + * + *
+     * Required. The ID value for the new unit kind.
+     * 
+ * + * string unit_kind_id = 10503 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The unitKindId. + */ + public java.lang.String getUnitKindId() { + java.lang.Object ref = unitKindId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + unitKindId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The ID value for the new unit kind.
+     * 
+ * + * string unit_kind_id = 10503 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for unitKindId. + */ + public com.google.protobuf.ByteString getUnitKindIdBytes() { + java.lang.Object ref = unitKindId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + unitKindId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The ID value for the new unit kind.
+     * 
+ * + * string unit_kind_id = 10503 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The unitKindId to set. + * @return This builder for chaining. + */ + public Builder setUnitKindId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + unitKindId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The ID value for the new unit kind.
+     * 
+ * + * string unit_kind_id = 10503 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearUnitKindId() { + unitKindId_ = getDefaultInstance().getUnitKindId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The ID value for the new unit kind.
+     * 
+ * + * string unit_kind_id = 10503 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for unitKindId to set. + * @return This builder for chaining. + */ + public Builder setUnitKindIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + unitKindId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind unitKind_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKindOrBuilder> + unitKindBuilder_; + + /** + * + * + *
+     * Required. The desired state for the unit kind.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind unit_kind = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the unitKind field is set. + */ + public boolean hasUnitKind() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Required. The desired state for the unit kind.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind unit_kind = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The unitKind. + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind getUnitKind() { + if (unitKindBuilder_ == null) { + return unitKind_ == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind.getDefaultInstance() + : unitKind_; + } else { + return unitKindBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The desired state for the unit kind.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind unit_kind = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUnitKind( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind value) { + if (unitKindBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + unitKind_ = value; + } else { + unitKindBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The desired state for the unit kind.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind unit_kind = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUnitKind( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind.Builder builderForValue) { + if (unitKindBuilder_ == null) { + unitKind_ = builderForValue.build(); + } else { + unitKindBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The desired state for the unit kind.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind unit_kind = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUnitKind( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind value) { + if (unitKindBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && unitKind_ != null + && unitKind_ + != com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind + .getDefaultInstance()) { + getUnitKindBuilder().mergeFrom(value); + } else { + unitKind_ = value; + } + } else { + unitKindBuilder_.mergeFrom(value); + } + if (unitKind_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The desired state for the unit kind.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind unit_kind = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUnitKind() { + bitField0_ = (bitField0_ & ~0x00000004); + unitKind_ = null; + if (unitKindBuilder_ != null) { + unitKindBuilder_.dispose(); + unitKindBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The desired state for the unit kind.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind unit_kind = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind.Builder + getUnitKindBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getUnitKindFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The desired state for the unit kind.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind unit_kind = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKindOrBuilder + getUnitKindOrBuilder() { + if (unitKindBuilder_ != null) { + return unitKindBuilder_.getMessageOrBuilder(); + } else { + return unitKind_ == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind.getDefaultInstance() + : unitKind_; + } + } + + /** + * + * + *
+     * Required. The desired state for the unit kind.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind unit_kind = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKindOrBuilder> + getUnitKindFieldBuilder() { + if (unitKindBuilder_ == null) { + unitKindBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKindOrBuilder>( + getUnitKind(), getParentForChildren(), isClean()); + unitKind_ = null; + } + return unitKindBuilder_; + } + + private boolean validateOnly_; + + /** + * + * + *
+     * If "validate_only" is set to true, the service will try to validate
+     * that this request would succeed, but will not actually make changes.
+     * 
+ * + * bool validate_only = 10501; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + /** + * + * + *
+     * If "validate_only" is set to true, the service will try to validate
+     * that this request would succeed, but will not actually make changes.
+     * 
+ * + * bool validate_only = 10501; + * + * @param value The validateOnly to set. + * @return This builder for chaining. + */ + public Builder setValidateOnly(boolean value) { + + validateOnly_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * If "validate_only" is set to true, the service will try to validate
+     * that this request would succeed, but will not actually make changes.
+     * 
+ * + * bool validate_only = 10501; + * + * @return This builder for chaining. + */ + public Builder clearValidateOnly() { + bitField0_ = (bitField0_ & ~0x00000008); + validateOnly_ = false; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000010; + 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.saasplatform.saasservicemgmt.v1beta1.CreateUnitKindRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitKindRequest) + private static final com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitKindRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitKindRequest(); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitKindRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateUnitKindRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.saasplatform.saasservicemgmt.v1beta1.CreateUnitKindRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/CreateUnitKindRequestOrBuilder.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/CreateUnitKindRequestOrBuilder.java new file mode 100644 index 000000000000..ff121caac809 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/CreateUnitKindRequestOrBuilder.java @@ -0,0 +1,189 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +public interface CreateUnitKindRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitKindRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent of the unit kind.
+   * 
+ * + * + * string parent = 10006 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The parent of the unit kind.
+   * 
+ * + * + * string parent = 10006 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The ID value for the new unit kind.
+   * 
+ * + * string unit_kind_id = 10503 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The unitKindId. + */ + java.lang.String getUnitKindId(); + + /** + * + * + *
+   * Required. The ID value for the new unit kind.
+   * 
+ * + * string unit_kind_id = 10503 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for unitKindId. + */ + com.google.protobuf.ByteString getUnitKindIdBytes(); + + /** + * + * + *
+   * Required. The desired state for the unit kind.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind unit_kind = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the unitKind field is set. + */ + boolean hasUnitKind(); + + /** + * + * + *
+   * Required. The desired state for the unit kind.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind unit_kind = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The unitKind. + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind getUnitKind(); + + /** + * + * + *
+   * Required. The desired state for the unit kind.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind unit_kind = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKindOrBuilder getUnitKindOrBuilder(); + + /** + * + * + *
+   * If "validate_only" is set to true, the service will try to validate
+   * that this request would succeed, but will not actually make changes.
+   * 
+ * + * bool validate_only = 10501; + * + * @return The validateOnly. + */ + boolean getValidateOnly(); + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 10502; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 10502; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/CreateUnitOperationRequest.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/CreateUnitOperationRequest.java new file mode 100644 index 000000000000..455d598c6d7b --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/CreateUnitOperationRequest.java @@ -0,0 +1,1571 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +/** + * + * + *
+ * The request structure for the CreateUnitOperation method.
+ * 
+ * + * Protobuf type {@code + * google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitOperationRequest} + */ +public final class CreateUnitOperationRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitOperationRequest) + CreateUnitOperationRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use CreateUnitOperationRequest.newBuilder() to construct. + private CreateUnitOperationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateUnitOperationRequest() { + parent_ = ""; + unitOperationId_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateUnitOperationRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_CreateUnitOperationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_CreateUnitOperationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitOperationRequest.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitOperationRequest.Builder + .class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 10006; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The parent of the unit operation.
+   * 
+ * + * + * string parent = 10006 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + 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 of the unit operation.
+   * 
+ * + * + * string parent = 10006 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + 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 UNIT_OPERATION_ID_FIELD_NUMBER = 10503; + + @SuppressWarnings("serial") + private volatile java.lang.Object unitOperationId_ = ""; + + /** + * + * + *
+   * Required. The ID value for the new unit operation.
+   * 
+ * + * string unit_operation_id = 10503 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The unitOperationId. + */ + @java.lang.Override + public java.lang.String getUnitOperationId() { + java.lang.Object ref = unitOperationId_; + 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(); + unitOperationId_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The ID value for the new unit operation.
+   * 
+ * + * string unit_operation_id = 10503 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for unitOperationId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUnitOperationIdBytes() { + java.lang.Object ref = unitOperationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + unitOperationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UNIT_OPERATION_FIELD_NUMBER = 10504; + private com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation unitOperation_; + + /** + * + * + *
+   * Required. The desired state for the unit operation.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation unit_operation = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the unitOperation field is set. + */ + @java.lang.Override + public boolean hasUnitOperation() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The desired state for the unit operation.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation unit_operation = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The unitOperation. + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation getUnitOperation() { + return unitOperation_ == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation.getDefaultInstance() + : unitOperation_; + } + + /** + * + * + *
+   * Required. The desired state for the unit operation.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation unit_operation = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationOrBuilder + getUnitOperationOrBuilder() { + return unitOperation_ == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation.getDefaultInstance() + : unitOperation_; + } + + public static final int VALIDATE_ONLY_FIELD_NUMBER = 10501; + private boolean validateOnly_ = false; + + /** + * + * + *
+   * If "validate_only" is set to true, the service will try to validate
+   * that this request would succeed, but will not actually make changes.
+   * 
+ * + * bool validate_only = 10501; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 10502; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 10502; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 10502; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10006, parent_); + } + if (validateOnly_ != false) { + output.writeBool(10501, validateOnly_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10502, requestId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(unitOperationId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10503, unitOperationId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(10504, getUnitOperation()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10006, parent_); + } + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(10501, validateOnly_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10502, requestId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(unitOperationId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10503, unitOperationId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10504, getUnitOperation()); + } + size += getUnknownFields().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.saasplatform.saasservicemgmt.v1beta1.CreateUnitOperationRequest)) { + return super.equals(obj); + } + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitOperationRequest other = + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitOperationRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getUnitOperationId().equals(other.getUnitOperationId())) return false; + if (hasUnitOperation() != other.hasUnitOperation()) return false; + if (hasUnitOperation()) { + if (!getUnitOperation().equals(other.getUnitOperation())) return false; + } + if (getValidateOnly() != other.getValidateOnly()) return false; + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + UNIT_OPERATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getUnitOperationId().hashCode(); + if (hasUnitOperation()) { + hash = (37 * hash) + UNIT_OPERATION_FIELD_NUMBER; + hash = (53 * hash) + getUnitOperation().hashCode(); + } + hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitOperationRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitOperationRequest + 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.saasplatform.saasservicemgmt.v1beta1.CreateUnitOperationRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitOperationRequest + 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.saasplatform.saasservicemgmt.v1beta1.CreateUnitOperationRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitOperationRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitOperationRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitOperationRequest + 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.saasplatform.saasservicemgmt.v1beta1.CreateUnitOperationRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitOperationRequest + 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.saasplatform.saasservicemgmt.v1beta1.CreateUnitOperationRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitOperationRequest + 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.saasplatform.saasservicemgmt.v1beta1.CreateUnitOperationRequest 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 request structure for the CreateUnitOperation method.
+   * 
+ * + * Protobuf type {@code + * google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitOperationRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitOperationRequest) + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitOperationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_CreateUnitOperationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_CreateUnitOperationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitOperationRequest + .class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitOperationRequest + .Builder.class); + } + + // Construct using + // com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitOperationRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getUnitOperationFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + unitOperationId_ = ""; + unitOperation_ = null; + if (unitOperationBuilder_ != null) { + unitOperationBuilder_.dispose(); + unitOperationBuilder_ = null; + } + validateOnly_ = false; + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_CreateUnitOperationRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitOperationRequest + getDefaultInstanceForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitOperationRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitOperationRequest + build() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitOperationRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitOperationRequest + buildPartial() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitOperationRequest result = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitOperationRequest( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitOperationRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.unitOperationId_ = unitOperationId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.unitOperation_ = + unitOperationBuilder_ == null ? unitOperation_ : unitOperationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.validateOnly_ = validateOnly_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.requestId_ = requestId_; + } + result.bitField0_ |= to_bitField0_; + } + + @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.saasplatform.saasservicemgmt.v1beta1.CreateUnitOperationRequest) { + return mergeFrom( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitOperationRequest) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitOperationRequest other) { + if (other + == com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitOperationRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getUnitOperationId().isEmpty()) { + unitOperationId_ = other.unitOperationId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasUnitOperation()) { + mergeUnitOperation(other.getUnitOperation()); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 80050: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 80050 + case 84008: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 84008 + case 84018: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 84018 + case 84026: + { + unitOperationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 84026 + case 84034: + { + input.readMessage(getUnitOperationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 84034 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. The parent of the unit operation.
+     * 
+ * + * + * string parent = 10006 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @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 of the unit operation.
+     * 
+ * + * + * string parent = 10006 [(.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_; + 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 of the unit operation.
+     * 
+ * + * + * string parent = 10006 [(.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) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent of the unit operation.
+     * 
+ * + * + * string parent = 10006 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent of the unit operation.
+     * 
+ * + * + * string parent = 10006 [(.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) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object unitOperationId_ = ""; + + /** + * + * + *
+     * Required. The ID value for the new unit operation.
+     * 
+ * + * string unit_operation_id = 10503 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The unitOperationId. + */ + public java.lang.String getUnitOperationId() { + java.lang.Object ref = unitOperationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + unitOperationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The ID value for the new unit operation.
+     * 
+ * + * string unit_operation_id = 10503 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for unitOperationId. + */ + public com.google.protobuf.ByteString getUnitOperationIdBytes() { + java.lang.Object ref = unitOperationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + unitOperationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The ID value for the new unit operation.
+     * 
+ * + * string unit_operation_id = 10503 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The unitOperationId to set. + * @return This builder for chaining. + */ + public Builder setUnitOperationId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + unitOperationId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The ID value for the new unit operation.
+     * 
+ * + * string unit_operation_id = 10503 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearUnitOperationId() { + unitOperationId_ = getDefaultInstance().getUnitOperationId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The ID value for the new unit operation.
+     * 
+ * + * string unit_operation_id = 10503 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for unitOperationId to set. + * @return This builder for chaining. + */ + public Builder setUnitOperationIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + unitOperationId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation unitOperation_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationOrBuilder> + unitOperationBuilder_; + + /** + * + * + *
+     * Required. The desired state for the unit operation.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation unit_operation = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the unitOperation field is set. + */ + public boolean hasUnitOperation() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Required. The desired state for the unit operation.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation unit_operation = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The unitOperation. + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation getUnitOperation() { + if (unitOperationBuilder_ == null) { + return unitOperation_ == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation + .getDefaultInstance() + : unitOperation_; + } else { + return unitOperationBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The desired state for the unit operation.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation unit_operation = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUnitOperation( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation value) { + if (unitOperationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + unitOperation_ = value; + } else { + unitOperationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The desired state for the unit operation.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation unit_operation = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUnitOperation( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation.Builder + builderForValue) { + if (unitOperationBuilder_ == null) { + unitOperation_ = builderForValue.build(); + } else { + unitOperationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The desired state for the unit operation.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation unit_operation = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUnitOperation( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation value) { + if (unitOperationBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && unitOperation_ != null + && unitOperation_ + != com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation + .getDefaultInstance()) { + getUnitOperationBuilder().mergeFrom(value); + } else { + unitOperation_ = value; + } + } else { + unitOperationBuilder_.mergeFrom(value); + } + if (unitOperation_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The desired state for the unit operation.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation unit_operation = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUnitOperation() { + bitField0_ = (bitField0_ & ~0x00000004); + unitOperation_ = null; + if (unitOperationBuilder_ != null) { + unitOperationBuilder_.dispose(); + unitOperationBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The desired state for the unit operation.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation unit_operation = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation.Builder + getUnitOperationBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getUnitOperationFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The desired state for the unit operation.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation unit_operation = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationOrBuilder + getUnitOperationOrBuilder() { + if (unitOperationBuilder_ != null) { + return unitOperationBuilder_.getMessageOrBuilder(); + } else { + return unitOperation_ == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation + .getDefaultInstance() + : unitOperation_; + } + } + + /** + * + * + *
+     * Required. The desired state for the unit operation.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation unit_operation = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationOrBuilder> + getUnitOperationFieldBuilder() { + if (unitOperationBuilder_ == null) { + unitOperationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationOrBuilder>( + getUnitOperation(), getParentForChildren(), isClean()); + unitOperation_ = null; + } + return unitOperationBuilder_; + } + + private boolean validateOnly_; + + /** + * + * + *
+     * If "validate_only" is set to true, the service will try to validate
+     * that this request would succeed, but will not actually make changes.
+     * 
+ * + * bool validate_only = 10501; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + /** + * + * + *
+     * If "validate_only" is set to true, the service will try to validate
+     * that this request would succeed, but will not actually make changes.
+     * 
+ * + * bool validate_only = 10501; + * + * @param value The validateOnly to set. + * @return This builder for chaining. + */ + public Builder setValidateOnly(boolean value) { + + validateOnly_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * If "validate_only" is set to true, the service will try to validate
+     * that this request would succeed, but will not actually make changes.
+     * 
+ * + * bool validate_only = 10501; + * + * @return This builder for chaining. + */ + public Builder clearValidateOnly() { + bitField0_ = (bitField0_ & ~0x00000008); + validateOnly_ = false; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000010; + 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.saasplatform.saasservicemgmt.v1beta1.CreateUnitOperationRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitOperationRequest) + private static final com.google.cloud.saasplatform.saasservicemgmt.v1beta1 + .CreateUnitOperationRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitOperationRequest(); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitOperationRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateUnitOperationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.saasplatform.saasservicemgmt.v1beta1.CreateUnitOperationRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/CreateUnitOperationRequestOrBuilder.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/CreateUnitOperationRequestOrBuilder.java new file mode 100644 index 000000000000..4b05919f0caa --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/CreateUnitOperationRequestOrBuilder.java @@ -0,0 +1,190 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +public interface CreateUnitOperationRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitOperationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent of the unit operation.
+   * 
+ * + * + * string parent = 10006 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The parent of the unit operation.
+   * 
+ * + * + * string parent = 10006 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The ID value for the new unit operation.
+   * 
+ * + * string unit_operation_id = 10503 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The unitOperationId. + */ + java.lang.String getUnitOperationId(); + + /** + * + * + *
+   * Required. The ID value for the new unit operation.
+   * 
+ * + * string unit_operation_id = 10503 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for unitOperationId. + */ + com.google.protobuf.ByteString getUnitOperationIdBytes(); + + /** + * + * + *
+   * Required. The desired state for the unit operation.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation unit_operation = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the unitOperation field is set. + */ + boolean hasUnitOperation(); + + /** + * + * + *
+   * Required. The desired state for the unit operation.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation unit_operation = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The unitOperation. + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation getUnitOperation(); + + /** + * + * + *
+   * Required. The desired state for the unit operation.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation unit_operation = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationOrBuilder + getUnitOperationOrBuilder(); + + /** + * + * + *
+   * If "validate_only" is set to true, the service will try to validate
+   * that this request would succeed, but will not actually make changes.
+   * 
+ * + * bool validate_only = 10501; + * + * @return The validateOnly. + */ + boolean getValidateOnly(); + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 10502; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 10502; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/CreateUnitRequest.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/CreateUnitRequest.java new file mode 100644 index 000000000000..464b1c4c093d --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/CreateUnitRequest.java @@ -0,0 +1,1545 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +/** + * + * + *
+ * The request structure for the CreateUnit method.
+ * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitRequest} + */ +public final class CreateUnitRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitRequest) + CreateUnitRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use CreateUnitRequest.newBuilder() to construct. + private CreateUnitRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateUnitRequest() { + parent_ = ""; + unitId_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateUnitRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_CreateUnitRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_CreateUnitRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitRequest.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 10006; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The parent of the unit.
+   * 
+ * + * + * string parent = 10006 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + 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 of the unit.
+   * 
+ * + * + * string parent = 10006 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + 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 UNIT_ID_FIELD_NUMBER = 10503; + + @SuppressWarnings("serial") + private volatile java.lang.Object unitId_ = ""; + + /** + * + * + *
+   * Required. The ID value for the new unit.
+   * 
+ * + * string unit_id = 10503 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The unitId. + */ + @java.lang.Override + public java.lang.String getUnitId() { + java.lang.Object ref = unitId_; + 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(); + unitId_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The ID value for the new unit.
+   * 
+ * + * string unit_id = 10503 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for unitId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUnitIdBytes() { + java.lang.Object ref = unitId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + unitId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UNIT_FIELD_NUMBER = 10504; + private com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit unit_; + + /** + * + * + *
+   * Required. The desired state for the unit.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit unit = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the unit field is set. + */ + @java.lang.Override + public boolean hasUnit() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The desired state for the unit.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit unit = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The unit. + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit getUnit() { + return unit_ == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.getDefaultInstance() + : unit_; + } + + /** + * + * + *
+   * Required. The desired state for the unit.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit unit = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOrBuilder getUnitOrBuilder() { + return unit_ == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.getDefaultInstance() + : unit_; + } + + public static final int VALIDATE_ONLY_FIELD_NUMBER = 10501; + private boolean validateOnly_ = false; + + /** + * + * + *
+   * If "validate_only" is set to true, the service will try to validate
+   * that this request would succeed, but will not actually make changes.
+   * 
+ * + * bool validate_only = 10501; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 10502; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 10502; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 10502; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10006, parent_); + } + if (validateOnly_ != false) { + output.writeBool(10501, validateOnly_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10502, requestId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(unitId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10503, unitId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(10504, getUnit()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10006, parent_); + } + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(10501, validateOnly_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10502, requestId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(unitId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10503, unitId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10504, getUnit()); + } + size += getUnknownFields().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.saasplatform.saasservicemgmt.v1beta1.CreateUnitRequest)) { + return super.equals(obj); + } + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitRequest other = + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getUnitId().equals(other.getUnitId())) return false; + if (hasUnit() != other.hasUnit()) return false; + if (hasUnit()) { + if (!getUnit().equals(other.getUnit())) return false; + } + if (getValidateOnly() != other.getValidateOnly()) return false; + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + UNIT_ID_FIELD_NUMBER; + hash = (53 * hash) + getUnitId().hashCode(); + if (hasUnit()) { + hash = (37 * hash) + UNIT_FIELD_NUMBER; + hash = (53 * hash) + getUnit().hashCode(); + } + hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitRequest 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.saasplatform.saasservicemgmt.v1beta1.CreateUnitRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitRequest 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.saasplatform.saasservicemgmt.v1beta1.CreateUnitRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitRequest 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.saasplatform.saasservicemgmt.v1beta1.CreateUnitRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitRequest + 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.saasplatform.saasservicemgmt.v1beta1.CreateUnitRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitRequest 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.saasplatform.saasservicemgmt.v1beta1.CreateUnitRequest 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 request structure for the CreateUnit method.
+   * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitRequest) + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_CreateUnitRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_CreateUnitRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitRequest.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getUnitFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + unitId_ = ""; + unit_ = null; + if (unitBuilder_ != null) { + unitBuilder_.dispose(); + unitBuilder_ = null; + } + validateOnly_ = false; + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_CreateUnitRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitRequest + getDefaultInstanceForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitRequest build() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitRequest buildPartial() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitRequest result = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.unitId_ = unitId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.unit_ = unitBuilder_ == null ? unit_ : unitBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.validateOnly_ = validateOnly_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.requestId_ = requestId_; + } + result.bitField0_ |= to_bitField0_; + } + + @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.saasplatform.saasservicemgmt.v1beta1.CreateUnitRequest) { + return mergeFrom( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitRequest other) { + if (other + == com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getUnitId().isEmpty()) { + unitId_ = other.unitId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasUnit()) { + mergeUnit(other.getUnit()); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 80050: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 80050 + case 84008: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 84008 + case 84018: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 84018 + case 84026: + { + unitId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 84026 + case 84034: + { + input.readMessage(getUnitFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 84034 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. The parent of the unit.
+     * 
+ * + * + * string parent = 10006 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @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 of the unit.
+     * 
+ * + * + * string parent = 10006 [(.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_; + 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 of the unit.
+     * 
+ * + * + * string parent = 10006 [(.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) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent of the unit.
+     * 
+ * + * + * string parent = 10006 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent of the unit.
+     * 
+ * + * + * string parent = 10006 [(.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) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object unitId_ = ""; + + /** + * + * + *
+     * Required. The ID value for the new unit.
+     * 
+ * + * string unit_id = 10503 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The unitId. + */ + public java.lang.String getUnitId() { + java.lang.Object ref = unitId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + unitId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The ID value for the new unit.
+     * 
+ * + * string unit_id = 10503 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for unitId. + */ + public com.google.protobuf.ByteString getUnitIdBytes() { + java.lang.Object ref = unitId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + unitId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The ID value for the new unit.
+     * 
+ * + * string unit_id = 10503 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The unitId to set. + * @return This builder for chaining. + */ + public Builder setUnitId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + unitId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The ID value for the new unit.
+     * 
+ * + * string unit_id = 10503 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearUnitId() { + unitId_ = getDefaultInstance().getUnitId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The ID value for the new unit.
+     * 
+ * + * string unit_id = 10503 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for unitId to set. + * @return This builder for chaining. + */ + public Builder setUnitIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + unitId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit unit_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOrBuilder> + unitBuilder_; + + /** + * + * + *
+     * Required. The desired state for the unit.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit unit = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the unit field is set. + */ + public boolean hasUnit() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Required. The desired state for the unit.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit unit = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The unit. + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit getUnit() { + if (unitBuilder_ == null) { + return unit_ == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.getDefaultInstance() + : unit_; + } else { + return unitBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The desired state for the unit.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit unit = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUnit(com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit value) { + if (unitBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + unit_ = value; + } else { + unitBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The desired state for the unit.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit unit = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUnit( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.Builder builderForValue) { + if (unitBuilder_ == null) { + unit_ = builderForValue.build(); + } else { + unitBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The desired state for the unit.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit unit = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUnit(com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit value) { + if (unitBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && unit_ != null + && unit_ + != com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit + .getDefaultInstance()) { + getUnitBuilder().mergeFrom(value); + } else { + unit_ = value; + } + } else { + unitBuilder_.mergeFrom(value); + } + if (unit_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The desired state for the unit.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit unit = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUnit() { + bitField0_ = (bitField0_ & ~0x00000004); + unit_ = null; + if (unitBuilder_ != null) { + unitBuilder_.dispose(); + unitBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The desired state for the unit.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit unit = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.Builder getUnitBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getUnitFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The desired state for the unit.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit unit = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOrBuilder getUnitOrBuilder() { + if (unitBuilder_ != null) { + return unitBuilder_.getMessageOrBuilder(); + } else { + return unit_ == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.getDefaultInstance() + : unit_; + } + } + + /** + * + * + *
+     * Required. The desired state for the unit.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit unit = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOrBuilder> + getUnitFieldBuilder() { + if (unitBuilder_ == null) { + unitBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOrBuilder>( + getUnit(), getParentForChildren(), isClean()); + unit_ = null; + } + return unitBuilder_; + } + + private boolean validateOnly_; + + /** + * + * + *
+     * If "validate_only" is set to true, the service will try to validate
+     * that this request would succeed, but will not actually make changes.
+     * 
+ * + * bool validate_only = 10501; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + /** + * + * + *
+     * If "validate_only" is set to true, the service will try to validate
+     * that this request would succeed, but will not actually make changes.
+     * 
+ * + * bool validate_only = 10501; + * + * @param value The validateOnly to set. + * @return This builder for chaining. + */ + public Builder setValidateOnly(boolean value) { + + validateOnly_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * If "validate_only" is set to true, the service will try to validate
+     * that this request would succeed, but will not actually make changes.
+     * 
+ * + * bool validate_only = 10501; + * + * @return This builder for chaining. + */ + public Builder clearValidateOnly() { + bitField0_ = (bitField0_ & ~0x00000008); + validateOnly_ = false; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000010; + 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.saasplatform.saasservicemgmt.v1beta1.CreateUnitRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitRequest) + private static final com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitRequest(); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateUnitRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.saasplatform.saasservicemgmt.v1beta1.CreateUnitRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/CreateUnitRequestOrBuilder.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/CreateUnitRequestOrBuilder.java new file mode 100644 index 000000000000..8e9379c9622c --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/CreateUnitRequestOrBuilder.java @@ -0,0 +1,189 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +public interface CreateUnitRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent of the unit.
+   * 
+ * + * + * string parent = 10006 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The parent of the unit.
+   * 
+ * + * + * string parent = 10006 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The ID value for the new unit.
+   * 
+ * + * string unit_id = 10503 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The unitId. + */ + java.lang.String getUnitId(); + + /** + * + * + *
+   * Required. The ID value for the new unit.
+   * 
+ * + * string unit_id = 10503 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for unitId. + */ + com.google.protobuf.ByteString getUnitIdBytes(); + + /** + * + * + *
+   * Required. The desired state for the unit.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit unit = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the unit field is set. + */ + boolean hasUnit(); + + /** + * + * + *
+   * Required. The desired state for the unit.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit unit = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The unit. + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit getUnit(); + + /** + * + * + *
+   * Required. The desired state for the unit.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit unit = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOrBuilder getUnitOrBuilder(); + + /** + * + * + *
+   * If "validate_only" is set to true, the service will try to validate
+   * that this request would succeed, but will not actually make changes.
+   * 
+ * + * bool validate_only = 10501; + * + * @return The validateOnly. + */ + boolean getValidateOnly(); + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 10502; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 10502; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/DeleteReleaseRequest.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/DeleteReleaseRequest.java new file mode 100644 index 000000000000..6bdc577327b5 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/DeleteReleaseRequest.java @@ -0,0 +1,1284 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +/** + * + * + *
+ * The request structure for the DeleteRelease method.
+ * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteReleaseRequest} + */ +public final class DeleteReleaseRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteReleaseRequest) + DeleteReleaseRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use DeleteReleaseRequest.newBuilder() to construct. + private DeleteReleaseRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteReleaseRequest() { + name_ = ""; + etag_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteReleaseRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_DeleteReleaseRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_DeleteReleaseRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteReleaseRequest.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteReleaseRequest.Builder + .class); + } + + public static final int NAME_FIELD_NUMBER = 10001; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The resource name of the resource within a service.
+   * 
+ * + * + * string name = 10001 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + 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 resource name of the resource within a service.
+   * 
+ * + * + * string name = 10001 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + 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 ETAG_FIELD_NUMBER = 10202; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + + /** + * + * + *
+   * The etag known to the client for the expected state of the release. This is
+   * used with state-changing methods to prevent accidental overwrites when
+   * multiple user agents might be acting in parallel on the same resource.
+   *
+   * An etag wildcard provide optimistic concurrency based on the expected
+   * existence of the release. The Any wildcard (`*`) requires that the resource
+   * must already exists, and the Not Any wildcard (`!*`) requires that it must
+   * not.
+   * 
+ * + * string etag = 10202; + * + * @return The etag. + */ + @java.lang.Override + 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 known to the client for the expected state of the release. This is
+   * used with state-changing methods to prevent accidental overwrites when
+   * multiple user agents might be acting in parallel on the same resource.
+   *
+   * An etag wildcard provide optimistic concurrency based on the expected
+   * existence of the release. The Any wildcard (`*`) requires that the resource
+   * must already exists, and the Not Any wildcard (`!*`) requires that it must
+   * not.
+   * 
+ * + * string etag = 10202; + * + * @return The bytes for etag. + */ + @java.lang.Override + 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 VALIDATE_ONLY_FIELD_NUMBER = 10501; + private boolean validateOnly_ = false; + + /** + * + * + *
+   * If "validate_only" is set to true, the service will try to validate
+   * that this request would succeed, but will not actually make changes.
+   * 
+ * + * bool validate_only = 10501; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 10502; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 10502; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 10502; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10001, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10202, etag_); + } + if (validateOnly_ != false) { + output.writeBool(10501, validateOnly_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10502, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10001, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10202, etag_); + } + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(10501, validateOnly_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10502, requestId_); + } + size += getUnknownFields().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.saasplatform.saasservicemgmt.v1beta1.DeleteReleaseRequest)) { + return super.equals(obj); + } + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteReleaseRequest other = + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteReleaseRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getEtag().equals(other.getEtag())) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteReleaseRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteReleaseRequest + 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.saasplatform.saasservicemgmt.v1beta1.DeleteReleaseRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteReleaseRequest + 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.saasplatform.saasservicemgmt.v1beta1.DeleteReleaseRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteReleaseRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteReleaseRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteReleaseRequest + 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.saasplatform.saasservicemgmt.v1beta1.DeleteReleaseRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteReleaseRequest + 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.saasplatform.saasservicemgmt.v1beta1.DeleteReleaseRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteReleaseRequest + 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.saasplatform.saasservicemgmt.v1beta1.DeleteReleaseRequest 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 request structure for the DeleteRelease method.
+   * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteReleaseRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteReleaseRequest) + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteReleaseRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_DeleteReleaseRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_DeleteReleaseRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteReleaseRequest.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteReleaseRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteReleaseRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + etag_ = ""; + validateOnly_ = false; + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_DeleteReleaseRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteReleaseRequest + getDefaultInstanceForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteReleaseRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteReleaseRequest build() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteReleaseRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteReleaseRequest + buildPartial() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteReleaseRequest result = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteReleaseRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteReleaseRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.etag_ = etag_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.validateOnly_ = validateOnly_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.requestId_ = requestId_; + } + } + + @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.saasplatform.saasservicemgmt.v1beta1.DeleteReleaseRequest) { + return mergeFrom( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteReleaseRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteReleaseRequest other) { + if (other + == com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteReleaseRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 80010: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 80010 + case 81618: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 81618 + case 84008: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 84008 + case 84018: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 84018 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. The resource name of the resource within a service.
+     * 
+ * + * + * string name = 10001 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @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 resource name of the resource within a service.
+     * 
+ * + * + * string name = 10001 [(.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_; + 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 resource name of the resource within a service.
+     * 
+ * + * + * string name = 10001 [(.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) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource name of the resource within a service.
+     * 
+ * + * + * string name = 10001 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource name of the resource within a service.
+     * 
+ * + * + * string name = 10001 [(.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) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object etag_ = ""; + + /** + * + * + *
+     * The etag known to the client for the expected state of the release. This is
+     * used with state-changing methods to prevent accidental overwrites when
+     * multiple user agents might be acting in parallel on the same resource.
+     *
+     * An etag wildcard provide optimistic concurrency based on the expected
+     * existence of the release. The Any wildcard (`*`) requires that the resource
+     * must already exists, and the Not Any wildcard (`!*`) requires that it must
+     * not.
+     * 
+ * + * string etag = 10202; + * + * @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 known to the client for the expected state of the release. This is
+     * used with state-changing methods to prevent accidental overwrites when
+     * multiple user agents might be acting in parallel on the same resource.
+     *
+     * An etag wildcard provide optimistic concurrency based on the expected
+     * existence of the release. The Any wildcard (`*`) requires that the resource
+     * must already exists, and the Not Any wildcard (`!*`) requires that it must
+     * not.
+     * 
+ * + * string etag = 10202; + * + * @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 known to the client for the expected state of the release. This is
+     * used with state-changing methods to prevent accidental overwrites when
+     * multiple user agents might be acting in parallel on the same resource.
+     *
+     * An etag wildcard provide optimistic concurrency based on the expected
+     * existence of the release. The Any wildcard (`*`) requires that the resource
+     * must already exists, and the Not Any wildcard (`!*`) requires that it must
+     * not.
+     * 
+ * + * string etag = 10202; + * + * @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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * The etag known to the client for the expected state of the release. This is
+     * used with state-changing methods to prevent accidental overwrites when
+     * multiple user agents might be acting in parallel on the same resource.
+     *
+     * An etag wildcard provide optimistic concurrency based on the expected
+     * existence of the release. The Any wildcard (`*`) requires that the resource
+     * must already exists, and the Not Any wildcard (`!*`) requires that it must
+     * not.
+     * 
+ * + * string etag = 10202; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * The etag known to the client for the expected state of the release. This is
+     * used with state-changing methods to prevent accidental overwrites when
+     * multiple user agents might be acting in parallel on the same resource.
+     *
+     * An etag wildcard provide optimistic concurrency based on the expected
+     * existence of the release. The Any wildcard (`*`) requires that the resource
+     * must already exists, and the Not Any wildcard (`!*`) requires that it must
+     * not.
+     * 
+ * + * string etag = 10202; + * + * @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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private boolean validateOnly_; + + /** + * + * + *
+     * If "validate_only" is set to true, the service will try to validate
+     * that this request would succeed, but will not actually make changes.
+     * 
+ * + * bool validate_only = 10501; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + /** + * + * + *
+     * If "validate_only" is set to true, the service will try to validate
+     * that this request would succeed, but will not actually make changes.
+     * 
+ * + * bool validate_only = 10501; + * + * @param value The validateOnly to set. + * @return This builder for chaining. + */ + public Builder setValidateOnly(boolean value) { + + validateOnly_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * If "validate_only" is set to true, the service will try to validate
+     * that this request would succeed, but will not actually make changes.
+     * 
+ * + * bool validate_only = 10501; + * + * @return This builder for chaining. + */ + public Builder clearValidateOnly() { + bitField0_ = (bitField0_ & ~0x00000004); + validateOnly_ = false; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000008; + 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.saasplatform.saasservicemgmt.v1beta1.DeleteReleaseRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteReleaseRequest) + private static final com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteReleaseRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteReleaseRequest(); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteReleaseRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteReleaseRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.saasplatform.saasservicemgmt.v1beta1.DeleteReleaseRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/DeleteReleaseRequestOrBuilder.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/DeleteReleaseRequestOrBuilder.java new file mode 100644 index 000000000000..790445b3a8fd --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/DeleteReleaseRequestOrBuilder.java @@ -0,0 +1,160 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +public interface DeleteReleaseRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteReleaseRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the resource within a service.
+   * 
+ * + * + * string name = 10001 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The resource name of the resource within a service.
+   * 
+ * + * + * string name = 10001 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * The etag known to the client for the expected state of the release. This is
+   * used with state-changing methods to prevent accidental overwrites when
+   * multiple user agents might be acting in parallel on the same resource.
+   *
+   * An etag wildcard provide optimistic concurrency based on the expected
+   * existence of the release. The Any wildcard (`*`) requires that the resource
+   * must already exists, and the Not Any wildcard (`!*`) requires that it must
+   * not.
+   * 
+ * + * string etag = 10202; + * + * @return The etag. + */ + java.lang.String getEtag(); + + /** + * + * + *
+   * The etag known to the client for the expected state of the release. This is
+   * used with state-changing methods to prevent accidental overwrites when
+   * multiple user agents might be acting in parallel on the same resource.
+   *
+   * An etag wildcard provide optimistic concurrency based on the expected
+   * existence of the release. The Any wildcard (`*`) requires that the resource
+   * must already exists, and the Not Any wildcard (`!*`) requires that it must
+   * not.
+   * 
+ * + * string etag = 10202; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); + + /** + * + * + *
+   * If "validate_only" is set to true, the service will try to validate
+   * that this request would succeed, but will not actually make changes.
+   * 
+ * + * bool validate_only = 10501; + * + * @return The validateOnly. + */ + boolean getValidateOnly(); + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 10502; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 10502; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/DeleteRolloutKindRequest.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/DeleteRolloutKindRequest.java new file mode 100644 index 000000000000..b2b34bc6df9d --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/DeleteRolloutKindRequest.java @@ -0,0 +1,1288 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/rollouts_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +/** + * + * + *
+ * The request structure for the DeleteRolloutKind method.
+ * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutKindRequest} + */ +public final class DeleteRolloutKindRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutKindRequest) + DeleteRolloutKindRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use DeleteRolloutKindRequest.newBuilder() to construct. + private DeleteRolloutKindRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteRolloutKindRequest() { + name_ = ""; + etag_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteRolloutKindRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_DeleteRolloutKindRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_DeleteRolloutKindRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutKindRequest.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutKindRequest.Builder + .class); + } + + public static final int NAME_FIELD_NUMBER = 10001; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The resource name of the resource within a service.
+   * 
+ * + * + * string name = 10001 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + 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 resource name of the resource within a service.
+   * 
+ * + * + * string name = 10001 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + 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 ETAG_FIELD_NUMBER = 10202; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + + /** + * + * + *
+   * The etag known to the client for the expected state of the rollout kind.
+   * This is used with state-changing methods to prevent accidental overwrites
+   * when multiple user agents might be acting in parallel on the same resource.
+   *
+   * An etag wildcard provide optimistic concurrency based on the expected
+   * existence of the rollout kind. The Any wildcard (`*`) requires that the
+   * resource must already exists, and the Not Any wildcard (`!*`) requires that
+   * it must not.
+   * 
+ * + * string etag = 10202; + * + * @return The etag. + */ + @java.lang.Override + 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 known to the client for the expected state of the rollout kind.
+   * This is used with state-changing methods to prevent accidental overwrites
+   * when multiple user agents might be acting in parallel on the same resource.
+   *
+   * An etag wildcard provide optimistic concurrency based on the expected
+   * existence of the rollout kind. The Any wildcard (`*`) requires that the
+   * resource must already exists, and the Not Any wildcard (`!*`) requires that
+   * it must not.
+   * 
+ * + * string etag = 10202; + * + * @return The bytes for etag. + */ + @java.lang.Override + 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 VALIDATE_ONLY_FIELD_NUMBER = 10501; + private boolean validateOnly_ = false; + + /** + * + * + *
+   * If "validate_only" is set to true, the service will try to validate
+   * that this request would succeed, but will not actually make changes.
+   * 
+ * + * bool validate_only = 10501; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 10502; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 10502; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 10502; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10001, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10202, etag_); + } + if (validateOnly_ != false) { + output.writeBool(10501, validateOnly_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10502, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10001, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10202, etag_); + } + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(10501, validateOnly_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10502, requestId_); + } + size += getUnknownFields().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.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutKindRequest)) { + return super.equals(obj); + } + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutKindRequest other = + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutKindRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getEtag().equals(other.getEtag())) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutKindRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutKindRequest + 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.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutKindRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutKindRequest + 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.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutKindRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutKindRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutKindRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutKindRequest + 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.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutKindRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutKindRequest + 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.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutKindRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutKindRequest + 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.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutKindRequest 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 request structure for the DeleteRolloutKind method.
+   * 
+ * + * Protobuf type {@code + * google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutKindRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutKindRequest) + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutKindRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_DeleteRolloutKindRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_DeleteRolloutKindRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutKindRequest.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutKindRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutKindRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + etag_ = ""; + validateOnly_ = false; + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_DeleteRolloutKindRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutKindRequest + getDefaultInstanceForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutKindRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutKindRequest build() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutKindRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutKindRequest + buildPartial() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutKindRequest result = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutKindRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutKindRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.etag_ = etag_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.validateOnly_ = validateOnly_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.requestId_ = requestId_; + } + } + + @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.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutKindRequest) { + return mergeFrom( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutKindRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutKindRequest other) { + if (other + == com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutKindRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 80010: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 80010 + case 81618: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 81618 + case 84008: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 84008 + case 84018: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 84018 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. The resource name of the resource within a service.
+     * 
+ * + * + * string name = 10001 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @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 resource name of the resource within a service.
+     * 
+ * + * + * string name = 10001 [(.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_; + 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 resource name of the resource within a service.
+     * 
+ * + * + * string name = 10001 [(.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) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource name of the resource within a service.
+     * 
+ * + * + * string name = 10001 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource name of the resource within a service.
+     * 
+ * + * + * string name = 10001 [(.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) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object etag_ = ""; + + /** + * + * + *
+     * The etag known to the client for the expected state of the rollout kind.
+     * This is used with state-changing methods to prevent accidental overwrites
+     * when multiple user agents might be acting in parallel on the same resource.
+     *
+     * An etag wildcard provide optimistic concurrency based on the expected
+     * existence of the rollout kind. The Any wildcard (`*`) requires that the
+     * resource must already exists, and the Not Any wildcard (`!*`) requires that
+     * it must not.
+     * 
+ * + * string etag = 10202; + * + * @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 known to the client for the expected state of the rollout kind.
+     * This is used with state-changing methods to prevent accidental overwrites
+     * when multiple user agents might be acting in parallel on the same resource.
+     *
+     * An etag wildcard provide optimistic concurrency based on the expected
+     * existence of the rollout kind. The Any wildcard (`*`) requires that the
+     * resource must already exists, and the Not Any wildcard (`!*`) requires that
+     * it must not.
+     * 
+ * + * string etag = 10202; + * + * @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 known to the client for the expected state of the rollout kind.
+     * This is used with state-changing methods to prevent accidental overwrites
+     * when multiple user agents might be acting in parallel on the same resource.
+     *
+     * An etag wildcard provide optimistic concurrency based on the expected
+     * existence of the rollout kind. The Any wildcard (`*`) requires that the
+     * resource must already exists, and the Not Any wildcard (`!*`) requires that
+     * it must not.
+     * 
+ * + * string etag = 10202; + * + * @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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * The etag known to the client for the expected state of the rollout kind.
+     * This is used with state-changing methods to prevent accidental overwrites
+     * when multiple user agents might be acting in parallel on the same resource.
+     *
+     * An etag wildcard provide optimistic concurrency based on the expected
+     * existence of the rollout kind. The Any wildcard (`*`) requires that the
+     * resource must already exists, and the Not Any wildcard (`!*`) requires that
+     * it must not.
+     * 
+ * + * string etag = 10202; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * The etag known to the client for the expected state of the rollout kind.
+     * This is used with state-changing methods to prevent accidental overwrites
+     * when multiple user agents might be acting in parallel on the same resource.
+     *
+     * An etag wildcard provide optimistic concurrency based on the expected
+     * existence of the rollout kind. The Any wildcard (`*`) requires that the
+     * resource must already exists, and the Not Any wildcard (`!*`) requires that
+     * it must not.
+     * 
+ * + * string etag = 10202; + * + * @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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private boolean validateOnly_; + + /** + * + * + *
+     * If "validate_only" is set to true, the service will try to validate
+     * that this request would succeed, but will not actually make changes.
+     * 
+ * + * bool validate_only = 10501; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + /** + * + * + *
+     * If "validate_only" is set to true, the service will try to validate
+     * that this request would succeed, but will not actually make changes.
+     * 
+ * + * bool validate_only = 10501; + * + * @param value The validateOnly to set. + * @return This builder for chaining. + */ + public Builder setValidateOnly(boolean value) { + + validateOnly_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * If "validate_only" is set to true, the service will try to validate
+     * that this request would succeed, but will not actually make changes.
+     * 
+ * + * bool validate_only = 10501; + * + * @return This builder for chaining. + */ + public Builder clearValidateOnly() { + bitField0_ = (bitField0_ & ~0x00000004); + validateOnly_ = false; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000008; + 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.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutKindRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutKindRequest) + private static final com.google.cloud.saasplatform.saasservicemgmt.v1beta1 + .DeleteRolloutKindRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutKindRequest(); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutKindRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteRolloutKindRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutKindRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/DeleteRolloutKindRequestOrBuilder.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/DeleteRolloutKindRequestOrBuilder.java new file mode 100644 index 000000000000..416fe13d2980 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/DeleteRolloutKindRequestOrBuilder.java @@ -0,0 +1,160 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/rollouts_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +public interface DeleteRolloutKindRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutKindRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the resource within a service.
+   * 
+ * + * + * string name = 10001 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The resource name of the resource within a service.
+   * 
+ * + * + * string name = 10001 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * The etag known to the client for the expected state of the rollout kind.
+   * This is used with state-changing methods to prevent accidental overwrites
+   * when multiple user agents might be acting in parallel on the same resource.
+   *
+   * An etag wildcard provide optimistic concurrency based on the expected
+   * existence of the rollout kind. The Any wildcard (`*`) requires that the
+   * resource must already exists, and the Not Any wildcard (`!*`) requires that
+   * it must not.
+   * 
+ * + * string etag = 10202; + * + * @return The etag. + */ + java.lang.String getEtag(); + + /** + * + * + *
+   * The etag known to the client for the expected state of the rollout kind.
+   * This is used with state-changing methods to prevent accidental overwrites
+   * when multiple user agents might be acting in parallel on the same resource.
+   *
+   * An etag wildcard provide optimistic concurrency based on the expected
+   * existence of the rollout kind. The Any wildcard (`*`) requires that the
+   * resource must already exists, and the Not Any wildcard (`!*`) requires that
+   * it must not.
+   * 
+ * + * string etag = 10202; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); + + /** + * + * + *
+   * If "validate_only" is set to true, the service will try to validate
+   * that this request would succeed, but will not actually make changes.
+   * 
+ * + * bool validate_only = 10501; + * + * @return The validateOnly. + */ + boolean getValidateOnly(); + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 10502; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 10502; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/DeleteRolloutRequest.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/DeleteRolloutRequest.java new file mode 100644 index 000000000000..b833236984ce --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/DeleteRolloutRequest.java @@ -0,0 +1,1284 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/rollouts_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +/** + * + * + *
+ * The request structure for the DeleteRollout method.
+ * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutRequest} + */ +public final class DeleteRolloutRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutRequest) + DeleteRolloutRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use DeleteRolloutRequest.newBuilder() to construct. + private DeleteRolloutRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteRolloutRequest() { + name_ = ""; + etag_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteRolloutRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_DeleteRolloutRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_DeleteRolloutRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutRequest.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutRequest.Builder + .class); + } + + public static final int NAME_FIELD_NUMBER = 10001; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The resource name of the resource within a service.
+   * 
+ * + * + * string name = 10001 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + 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 resource name of the resource within a service.
+   * 
+ * + * + * string name = 10001 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + 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 ETAG_FIELD_NUMBER = 10202; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + + /** + * + * + *
+   * The etag known to the client for the expected state of the rollout. This is
+   * used with state-changing methods to prevent accidental overwrites when
+   * multiple user agents might be acting in parallel on the same resource.
+   *
+   * An etag wildcard provide optimistic concurrency based on the expected
+   * existence of the rollout. The Any wildcard (`*`) requires that the resource
+   * must already exists, and the Not Any wildcard (`!*`) requires that it must
+   * not.
+   * 
+ * + * string etag = 10202; + * + * @return The etag. + */ + @java.lang.Override + 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 known to the client for the expected state of the rollout. This is
+   * used with state-changing methods to prevent accidental overwrites when
+   * multiple user agents might be acting in parallel on the same resource.
+   *
+   * An etag wildcard provide optimistic concurrency based on the expected
+   * existence of the rollout. The Any wildcard (`*`) requires that the resource
+   * must already exists, and the Not Any wildcard (`!*`) requires that it must
+   * not.
+   * 
+ * + * string etag = 10202; + * + * @return The bytes for etag. + */ + @java.lang.Override + 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 VALIDATE_ONLY_FIELD_NUMBER = 10501; + private boolean validateOnly_ = false; + + /** + * + * + *
+   * If "validate_only" is set to true, the service will try to validate
+   * that this request would succeed, but will not actually make changes.
+   * 
+ * + * bool validate_only = 10501; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 10502; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 10502; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 10502; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10001, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10202, etag_); + } + if (validateOnly_ != false) { + output.writeBool(10501, validateOnly_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10502, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10001, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10202, etag_); + } + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(10501, validateOnly_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10502, requestId_); + } + size += getUnknownFields().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.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutRequest)) { + return super.equals(obj); + } + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutRequest other = + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getEtag().equals(other.getEtag())) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutRequest + 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.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutRequest + 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.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutRequest + 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.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutRequest + 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.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutRequest + 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.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutRequest 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 request structure for the DeleteRollout method.
+   * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutRequest) + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_DeleteRolloutRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_DeleteRolloutRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutRequest.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + etag_ = ""; + validateOnly_ = false; + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_DeleteRolloutRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutRequest + getDefaultInstanceForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutRequest build() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutRequest + buildPartial() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutRequest result = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.etag_ = etag_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.validateOnly_ = validateOnly_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.requestId_ = requestId_; + } + } + + @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.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutRequest) { + return mergeFrom( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutRequest other) { + if (other + == com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 80010: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 80010 + case 81618: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 81618 + case 84008: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 84008 + case 84018: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 84018 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. The resource name of the resource within a service.
+     * 
+ * + * + * string name = 10001 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @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 resource name of the resource within a service.
+     * 
+ * + * + * string name = 10001 [(.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_; + 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 resource name of the resource within a service.
+     * 
+ * + * + * string name = 10001 [(.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) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource name of the resource within a service.
+     * 
+ * + * + * string name = 10001 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource name of the resource within a service.
+     * 
+ * + * + * string name = 10001 [(.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) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object etag_ = ""; + + /** + * + * + *
+     * The etag known to the client for the expected state of the rollout. This is
+     * used with state-changing methods to prevent accidental overwrites when
+     * multiple user agents might be acting in parallel on the same resource.
+     *
+     * An etag wildcard provide optimistic concurrency based on the expected
+     * existence of the rollout. The Any wildcard (`*`) requires that the resource
+     * must already exists, and the Not Any wildcard (`!*`) requires that it must
+     * not.
+     * 
+ * + * string etag = 10202; + * + * @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 known to the client for the expected state of the rollout. This is
+     * used with state-changing methods to prevent accidental overwrites when
+     * multiple user agents might be acting in parallel on the same resource.
+     *
+     * An etag wildcard provide optimistic concurrency based on the expected
+     * existence of the rollout. The Any wildcard (`*`) requires that the resource
+     * must already exists, and the Not Any wildcard (`!*`) requires that it must
+     * not.
+     * 
+ * + * string etag = 10202; + * + * @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 known to the client for the expected state of the rollout. This is
+     * used with state-changing methods to prevent accidental overwrites when
+     * multiple user agents might be acting in parallel on the same resource.
+     *
+     * An etag wildcard provide optimistic concurrency based on the expected
+     * existence of the rollout. The Any wildcard (`*`) requires that the resource
+     * must already exists, and the Not Any wildcard (`!*`) requires that it must
+     * not.
+     * 
+ * + * string etag = 10202; + * + * @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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * The etag known to the client for the expected state of the rollout. This is
+     * used with state-changing methods to prevent accidental overwrites when
+     * multiple user agents might be acting in parallel on the same resource.
+     *
+     * An etag wildcard provide optimistic concurrency based on the expected
+     * existence of the rollout. The Any wildcard (`*`) requires that the resource
+     * must already exists, and the Not Any wildcard (`!*`) requires that it must
+     * not.
+     * 
+ * + * string etag = 10202; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * The etag known to the client for the expected state of the rollout. This is
+     * used with state-changing methods to prevent accidental overwrites when
+     * multiple user agents might be acting in parallel on the same resource.
+     *
+     * An etag wildcard provide optimistic concurrency based on the expected
+     * existence of the rollout. The Any wildcard (`*`) requires that the resource
+     * must already exists, and the Not Any wildcard (`!*`) requires that it must
+     * not.
+     * 
+ * + * string etag = 10202; + * + * @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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private boolean validateOnly_; + + /** + * + * + *
+     * If "validate_only" is set to true, the service will try to validate
+     * that this request would succeed, but will not actually make changes.
+     * 
+ * + * bool validate_only = 10501; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + /** + * + * + *
+     * If "validate_only" is set to true, the service will try to validate
+     * that this request would succeed, but will not actually make changes.
+     * 
+ * + * bool validate_only = 10501; + * + * @param value The validateOnly to set. + * @return This builder for chaining. + */ + public Builder setValidateOnly(boolean value) { + + validateOnly_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * If "validate_only" is set to true, the service will try to validate
+     * that this request would succeed, but will not actually make changes.
+     * 
+ * + * bool validate_only = 10501; + * + * @return This builder for chaining. + */ + public Builder clearValidateOnly() { + bitField0_ = (bitField0_ & ~0x00000004); + validateOnly_ = false; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000008; + 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.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutRequest) + private static final com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutRequest(); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteRolloutRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/DeleteRolloutRequestOrBuilder.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/DeleteRolloutRequestOrBuilder.java new file mode 100644 index 000000000000..03ff326ed9db --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/DeleteRolloutRequestOrBuilder.java @@ -0,0 +1,160 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/rollouts_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +public interface DeleteRolloutRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the resource within a service.
+   * 
+ * + * + * string name = 10001 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The resource name of the resource within a service.
+   * 
+ * + * + * string name = 10001 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * The etag known to the client for the expected state of the rollout. This is
+   * used with state-changing methods to prevent accidental overwrites when
+   * multiple user agents might be acting in parallel on the same resource.
+   *
+   * An etag wildcard provide optimistic concurrency based on the expected
+   * existence of the rollout. The Any wildcard (`*`) requires that the resource
+   * must already exists, and the Not Any wildcard (`!*`) requires that it must
+   * not.
+   * 
+ * + * string etag = 10202; + * + * @return The etag. + */ + java.lang.String getEtag(); + + /** + * + * + *
+   * The etag known to the client for the expected state of the rollout. This is
+   * used with state-changing methods to prevent accidental overwrites when
+   * multiple user agents might be acting in parallel on the same resource.
+   *
+   * An etag wildcard provide optimistic concurrency based on the expected
+   * existence of the rollout. The Any wildcard (`*`) requires that the resource
+   * must already exists, and the Not Any wildcard (`!*`) requires that it must
+   * not.
+   * 
+ * + * string etag = 10202; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); + + /** + * + * + *
+   * If "validate_only" is set to true, the service will try to validate
+   * that this request would succeed, but will not actually make changes.
+   * 
+ * + * bool validate_only = 10501; + * + * @return The validateOnly. + */ + boolean getValidateOnly(); + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 10502; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 10502; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/DeleteSaasRequest.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/DeleteSaasRequest.java new file mode 100644 index 000000000000..8c117e36dff8 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/DeleteSaasRequest.java @@ -0,0 +1,1276 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +/** + * + * + *
+ * The request structure for the DeleteSaas method.
+ * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteSaasRequest} + */ +public final class DeleteSaasRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteSaasRequest) + DeleteSaasRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use DeleteSaasRequest.newBuilder() to construct. + private DeleteSaasRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteSaasRequest() { + name_ = ""; + etag_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteSaasRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_DeleteSaasRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_DeleteSaasRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteSaasRequest.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteSaasRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 10001; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The resource name of the resource within a service.
+   * 
+ * + * + * string name = 10001 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + 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 resource name of the resource within a service.
+   * 
+ * + * + * string name = 10001 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + 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 ETAG_FIELD_NUMBER = 10202; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + + /** + * + * + *
+   * The etag known to the client for the expected state of the saas. This is
+   * used with state-changing methods to prevent accidental overwrites when
+   * multiple user agents might be acting in parallel on the same resource.
+   *
+   * An etag wildcard provide optimistic concurrency based on the expected
+   * existence of the saas. The Any wildcard (`*`) requires that the resource
+   * must already exists, and the Not Any wildcard (`!*`) requires that it must
+   * not.
+   * 
+ * + * string etag = 10202; + * + * @return The etag. + */ + @java.lang.Override + 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 known to the client for the expected state of the saas. This is
+   * used with state-changing methods to prevent accidental overwrites when
+   * multiple user agents might be acting in parallel on the same resource.
+   *
+   * An etag wildcard provide optimistic concurrency based on the expected
+   * existence of the saas. The Any wildcard (`*`) requires that the resource
+   * must already exists, and the Not Any wildcard (`!*`) requires that it must
+   * not.
+   * 
+ * + * string etag = 10202; + * + * @return The bytes for etag. + */ + @java.lang.Override + 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 VALIDATE_ONLY_FIELD_NUMBER = 10501; + private boolean validateOnly_ = false; + + /** + * + * + *
+   * If "validate_only" is set to true, the service will try to validate
+   * that this request would succeed, but will not actually make changes.
+   * 
+ * + * bool validate_only = 10501; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 10502; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 10502; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 10502; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10001, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10202, etag_); + } + if (validateOnly_ != false) { + output.writeBool(10501, validateOnly_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10502, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10001, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10202, etag_); + } + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(10501, validateOnly_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10502, requestId_); + } + size += getUnknownFields().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.saasplatform.saasservicemgmt.v1beta1.DeleteSaasRequest)) { + return super.equals(obj); + } + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteSaasRequest other = + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteSaasRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getEtag().equals(other.getEtag())) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteSaasRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteSaasRequest 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.saasplatform.saasservicemgmt.v1beta1.DeleteSaasRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteSaasRequest 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.saasplatform.saasservicemgmt.v1beta1.DeleteSaasRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteSaasRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteSaasRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteSaasRequest 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.saasplatform.saasservicemgmt.v1beta1.DeleteSaasRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteSaasRequest + 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.saasplatform.saasservicemgmt.v1beta1.DeleteSaasRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteSaasRequest 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.saasplatform.saasservicemgmt.v1beta1.DeleteSaasRequest 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 request structure for the DeleteSaas method.
+   * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteSaasRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteSaasRequest) + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteSaasRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_DeleteSaasRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_DeleteSaasRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteSaasRequest.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteSaasRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteSaasRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + etag_ = ""; + validateOnly_ = false; + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_DeleteSaasRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteSaasRequest + getDefaultInstanceForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteSaasRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteSaasRequest build() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteSaasRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteSaasRequest buildPartial() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteSaasRequest result = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteSaasRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteSaasRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.etag_ = etag_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.validateOnly_ = validateOnly_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.requestId_ = requestId_; + } + } + + @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.saasplatform.saasservicemgmt.v1beta1.DeleteSaasRequest) { + return mergeFrom( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteSaasRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteSaasRequest other) { + if (other + == com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteSaasRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 80010: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 80010 + case 81618: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 81618 + case 84008: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 84008 + case 84018: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 84018 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. The resource name of the resource within a service.
+     * 
+ * + * + * string name = 10001 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @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 resource name of the resource within a service.
+     * 
+ * + * + * string name = 10001 [(.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_; + 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 resource name of the resource within a service.
+     * 
+ * + * + * string name = 10001 [(.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) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource name of the resource within a service.
+     * 
+ * + * + * string name = 10001 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource name of the resource within a service.
+     * 
+ * + * + * string name = 10001 [(.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) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object etag_ = ""; + + /** + * + * + *
+     * The etag known to the client for the expected state of the saas. This is
+     * used with state-changing methods to prevent accidental overwrites when
+     * multiple user agents might be acting in parallel on the same resource.
+     *
+     * An etag wildcard provide optimistic concurrency based on the expected
+     * existence of the saas. The Any wildcard (`*`) requires that the resource
+     * must already exists, and the Not Any wildcard (`!*`) requires that it must
+     * not.
+     * 
+ * + * string etag = 10202; + * + * @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 known to the client for the expected state of the saas. This is
+     * used with state-changing methods to prevent accidental overwrites when
+     * multiple user agents might be acting in parallel on the same resource.
+     *
+     * An etag wildcard provide optimistic concurrency based on the expected
+     * existence of the saas. The Any wildcard (`*`) requires that the resource
+     * must already exists, and the Not Any wildcard (`!*`) requires that it must
+     * not.
+     * 
+ * + * string etag = 10202; + * + * @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 known to the client for the expected state of the saas. This is
+     * used with state-changing methods to prevent accidental overwrites when
+     * multiple user agents might be acting in parallel on the same resource.
+     *
+     * An etag wildcard provide optimistic concurrency based on the expected
+     * existence of the saas. The Any wildcard (`*`) requires that the resource
+     * must already exists, and the Not Any wildcard (`!*`) requires that it must
+     * not.
+     * 
+ * + * string etag = 10202; + * + * @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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * The etag known to the client for the expected state of the saas. This is
+     * used with state-changing methods to prevent accidental overwrites when
+     * multiple user agents might be acting in parallel on the same resource.
+     *
+     * An etag wildcard provide optimistic concurrency based on the expected
+     * existence of the saas. The Any wildcard (`*`) requires that the resource
+     * must already exists, and the Not Any wildcard (`!*`) requires that it must
+     * not.
+     * 
+ * + * string etag = 10202; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * The etag known to the client for the expected state of the saas. This is
+     * used with state-changing methods to prevent accidental overwrites when
+     * multiple user agents might be acting in parallel on the same resource.
+     *
+     * An etag wildcard provide optimistic concurrency based on the expected
+     * existence of the saas. The Any wildcard (`*`) requires that the resource
+     * must already exists, and the Not Any wildcard (`!*`) requires that it must
+     * not.
+     * 
+ * + * string etag = 10202; + * + * @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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private boolean validateOnly_; + + /** + * + * + *
+     * If "validate_only" is set to true, the service will try to validate
+     * that this request would succeed, but will not actually make changes.
+     * 
+ * + * bool validate_only = 10501; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + /** + * + * + *
+     * If "validate_only" is set to true, the service will try to validate
+     * that this request would succeed, but will not actually make changes.
+     * 
+ * + * bool validate_only = 10501; + * + * @param value The validateOnly to set. + * @return This builder for chaining. + */ + public Builder setValidateOnly(boolean value) { + + validateOnly_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * If "validate_only" is set to true, the service will try to validate
+     * that this request would succeed, but will not actually make changes.
+     * 
+ * + * bool validate_only = 10501; + * + * @return This builder for chaining. + */ + public Builder clearValidateOnly() { + bitField0_ = (bitField0_ & ~0x00000004); + validateOnly_ = false; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000008; + 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.saasplatform.saasservicemgmt.v1beta1.DeleteSaasRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteSaasRequest) + private static final com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteSaasRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteSaasRequest(); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteSaasRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteSaasRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.saasplatform.saasservicemgmt.v1beta1.DeleteSaasRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/DeleteSaasRequestOrBuilder.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/DeleteSaasRequestOrBuilder.java new file mode 100644 index 000000000000..7280e5766275 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/DeleteSaasRequestOrBuilder.java @@ -0,0 +1,160 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +public interface DeleteSaasRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteSaasRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the resource within a service.
+   * 
+ * + * + * string name = 10001 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The resource name of the resource within a service.
+   * 
+ * + * + * string name = 10001 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * The etag known to the client for the expected state of the saas. This is
+   * used with state-changing methods to prevent accidental overwrites when
+   * multiple user agents might be acting in parallel on the same resource.
+   *
+   * An etag wildcard provide optimistic concurrency based on the expected
+   * existence of the saas. The Any wildcard (`*`) requires that the resource
+   * must already exists, and the Not Any wildcard (`!*`) requires that it must
+   * not.
+   * 
+ * + * string etag = 10202; + * + * @return The etag. + */ + java.lang.String getEtag(); + + /** + * + * + *
+   * The etag known to the client for the expected state of the saas. This is
+   * used with state-changing methods to prevent accidental overwrites when
+   * multiple user agents might be acting in parallel on the same resource.
+   *
+   * An etag wildcard provide optimistic concurrency based on the expected
+   * existence of the saas. The Any wildcard (`*`) requires that the resource
+   * must already exists, and the Not Any wildcard (`!*`) requires that it must
+   * not.
+   * 
+ * + * string etag = 10202; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); + + /** + * + * + *
+   * If "validate_only" is set to true, the service will try to validate
+   * that this request would succeed, but will not actually make changes.
+   * 
+ * + * bool validate_only = 10501; + * + * @return The validateOnly. + */ + boolean getValidateOnly(); + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 10502; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 10502; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/DeleteTenantRequest.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/DeleteTenantRequest.java new file mode 100644 index 000000000000..cbf39d1b6514 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/DeleteTenantRequest.java @@ -0,0 +1,1279 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +/** + * + * + *
+ * The request structure for the DeleteTenant method.
+ * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteTenantRequest} + */ +public final class DeleteTenantRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteTenantRequest) + DeleteTenantRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use DeleteTenantRequest.newBuilder() to construct. + private DeleteTenantRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteTenantRequest() { + name_ = ""; + etag_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteTenantRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_DeleteTenantRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_DeleteTenantRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteTenantRequest.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteTenantRequest.Builder + .class); + } + + public static final int NAME_FIELD_NUMBER = 10001; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The resource name of the resource within a service.
+   * 
+ * + * + * string name = 10001 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + 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 resource name of the resource within a service.
+   * 
+ * + * + * string name = 10001 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + 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 ETAG_FIELD_NUMBER = 10202; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + + /** + * + * + *
+   * The etag known to the client for the expected state of the tenant. This is
+   * used with state-changing methods to prevent accidental overwrites when
+   * multiple user agents might be acting in parallel on the same resource.
+   *
+   * An etag wildcard provide optimistic concurrency based on the expected
+   * existence of the tenant. The Any wildcard (`*`) requires that the resource
+   * must already exists, and the Not Any wildcard (`!*`) requires that it must
+   * not.
+   * 
+ * + * string etag = 10202; + * + * @return The etag. + */ + @java.lang.Override + 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 known to the client for the expected state of the tenant. This is
+   * used with state-changing methods to prevent accidental overwrites when
+   * multiple user agents might be acting in parallel on the same resource.
+   *
+   * An etag wildcard provide optimistic concurrency based on the expected
+   * existence of the tenant. The Any wildcard (`*`) requires that the resource
+   * must already exists, and the Not Any wildcard (`!*`) requires that it must
+   * not.
+   * 
+ * + * string etag = 10202; + * + * @return The bytes for etag. + */ + @java.lang.Override + 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 VALIDATE_ONLY_FIELD_NUMBER = 10501; + private boolean validateOnly_ = false; + + /** + * + * + *
+   * If "validate_only" is set to true, the service will try to validate
+   * that this request would succeed, but will not actually make changes.
+   * 
+ * + * bool validate_only = 10501; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 10502; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 10502; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 10502; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10001, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10202, etag_); + } + if (validateOnly_ != false) { + output.writeBool(10501, validateOnly_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10502, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10001, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10202, etag_); + } + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(10501, validateOnly_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10502, requestId_); + } + size += getUnknownFields().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.saasplatform.saasservicemgmt.v1beta1.DeleteTenantRequest)) { + return super.equals(obj); + } + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteTenantRequest other = + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteTenantRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getEtag().equals(other.getEtag())) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteTenantRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteTenantRequest 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.saasplatform.saasservicemgmt.v1beta1.DeleteTenantRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteTenantRequest 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.saasplatform.saasservicemgmt.v1beta1.DeleteTenantRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteTenantRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteTenantRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteTenantRequest 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.saasplatform.saasservicemgmt.v1beta1.DeleteTenantRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteTenantRequest + 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.saasplatform.saasservicemgmt.v1beta1.DeleteTenantRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteTenantRequest 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.saasplatform.saasservicemgmt.v1beta1.DeleteTenantRequest 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 request structure for the DeleteTenant method.
+   * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteTenantRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteTenantRequest) + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteTenantRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_DeleteTenantRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_DeleteTenantRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteTenantRequest.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteTenantRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteTenantRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + etag_ = ""; + validateOnly_ = false; + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_DeleteTenantRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteTenantRequest + getDefaultInstanceForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteTenantRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteTenantRequest build() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteTenantRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteTenantRequest + buildPartial() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteTenantRequest result = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteTenantRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteTenantRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.etag_ = etag_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.validateOnly_ = validateOnly_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.requestId_ = requestId_; + } + } + + @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.saasplatform.saasservicemgmt.v1beta1.DeleteTenantRequest) { + return mergeFrom( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteTenantRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteTenantRequest other) { + if (other + == com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteTenantRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 80010: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 80010 + case 81618: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 81618 + case 84008: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 84008 + case 84018: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 84018 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. The resource name of the resource within a service.
+     * 
+ * + * + * string name = 10001 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @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 resource name of the resource within a service.
+     * 
+ * + * + * string name = 10001 [(.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_; + 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 resource name of the resource within a service.
+     * 
+ * + * + * string name = 10001 [(.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) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource name of the resource within a service.
+     * 
+ * + * + * string name = 10001 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource name of the resource within a service.
+     * 
+ * + * + * string name = 10001 [(.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) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object etag_ = ""; + + /** + * + * + *
+     * The etag known to the client for the expected state of the tenant. This is
+     * used with state-changing methods to prevent accidental overwrites when
+     * multiple user agents might be acting in parallel on the same resource.
+     *
+     * An etag wildcard provide optimistic concurrency based on the expected
+     * existence of the tenant. The Any wildcard (`*`) requires that the resource
+     * must already exists, and the Not Any wildcard (`!*`) requires that it must
+     * not.
+     * 
+ * + * string etag = 10202; + * + * @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 known to the client for the expected state of the tenant. This is
+     * used with state-changing methods to prevent accidental overwrites when
+     * multiple user agents might be acting in parallel on the same resource.
+     *
+     * An etag wildcard provide optimistic concurrency based on the expected
+     * existence of the tenant. The Any wildcard (`*`) requires that the resource
+     * must already exists, and the Not Any wildcard (`!*`) requires that it must
+     * not.
+     * 
+ * + * string etag = 10202; + * + * @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 known to the client for the expected state of the tenant. This is
+     * used with state-changing methods to prevent accidental overwrites when
+     * multiple user agents might be acting in parallel on the same resource.
+     *
+     * An etag wildcard provide optimistic concurrency based on the expected
+     * existence of the tenant. The Any wildcard (`*`) requires that the resource
+     * must already exists, and the Not Any wildcard (`!*`) requires that it must
+     * not.
+     * 
+ * + * string etag = 10202; + * + * @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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * The etag known to the client for the expected state of the tenant. This is
+     * used with state-changing methods to prevent accidental overwrites when
+     * multiple user agents might be acting in parallel on the same resource.
+     *
+     * An etag wildcard provide optimistic concurrency based on the expected
+     * existence of the tenant. The Any wildcard (`*`) requires that the resource
+     * must already exists, and the Not Any wildcard (`!*`) requires that it must
+     * not.
+     * 
+ * + * string etag = 10202; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * The etag known to the client for the expected state of the tenant. This is
+     * used with state-changing methods to prevent accidental overwrites when
+     * multiple user agents might be acting in parallel on the same resource.
+     *
+     * An etag wildcard provide optimistic concurrency based on the expected
+     * existence of the tenant. The Any wildcard (`*`) requires that the resource
+     * must already exists, and the Not Any wildcard (`!*`) requires that it must
+     * not.
+     * 
+ * + * string etag = 10202; + * + * @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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private boolean validateOnly_; + + /** + * + * + *
+     * If "validate_only" is set to true, the service will try to validate
+     * that this request would succeed, but will not actually make changes.
+     * 
+ * + * bool validate_only = 10501; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + /** + * + * + *
+     * If "validate_only" is set to true, the service will try to validate
+     * that this request would succeed, but will not actually make changes.
+     * 
+ * + * bool validate_only = 10501; + * + * @param value The validateOnly to set. + * @return This builder for chaining. + */ + public Builder setValidateOnly(boolean value) { + + validateOnly_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * If "validate_only" is set to true, the service will try to validate
+     * that this request would succeed, but will not actually make changes.
+     * 
+ * + * bool validate_only = 10501; + * + * @return This builder for chaining. + */ + public Builder clearValidateOnly() { + bitField0_ = (bitField0_ & ~0x00000004); + validateOnly_ = false; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000008; + 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.saasplatform.saasservicemgmt.v1beta1.DeleteTenantRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteTenantRequest) + private static final com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteTenantRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteTenantRequest(); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteTenantRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteTenantRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.saasplatform.saasservicemgmt.v1beta1.DeleteTenantRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/DeleteTenantRequestOrBuilder.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/DeleteTenantRequestOrBuilder.java new file mode 100644 index 000000000000..a335f4be501b --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/DeleteTenantRequestOrBuilder.java @@ -0,0 +1,160 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +public interface DeleteTenantRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteTenantRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the resource within a service.
+   * 
+ * + * + * string name = 10001 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The resource name of the resource within a service.
+   * 
+ * + * + * string name = 10001 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * The etag known to the client for the expected state of the tenant. This is
+   * used with state-changing methods to prevent accidental overwrites when
+   * multiple user agents might be acting in parallel on the same resource.
+   *
+   * An etag wildcard provide optimistic concurrency based on the expected
+   * existence of the tenant. The Any wildcard (`*`) requires that the resource
+   * must already exists, and the Not Any wildcard (`!*`) requires that it must
+   * not.
+   * 
+ * + * string etag = 10202; + * + * @return The etag. + */ + java.lang.String getEtag(); + + /** + * + * + *
+   * The etag known to the client for the expected state of the tenant. This is
+   * used with state-changing methods to prevent accidental overwrites when
+   * multiple user agents might be acting in parallel on the same resource.
+   *
+   * An etag wildcard provide optimistic concurrency based on the expected
+   * existence of the tenant. The Any wildcard (`*`) requires that the resource
+   * must already exists, and the Not Any wildcard (`!*`) requires that it must
+   * not.
+   * 
+ * + * string etag = 10202; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); + + /** + * + * + *
+   * If "validate_only" is set to true, the service will try to validate
+   * that this request would succeed, but will not actually make changes.
+   * 
+ * + * bool validate_only = 10501; + * + * @return The validateOnly. + */ + boolean getValidateOnly(); + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 10502; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 10502; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/DeleteUnitKindRequest.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/DeleteUnitKindRequest.java new file mode 100644 index 000000000000..48632f9c4d09 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/DeleteUnitKindRequest.java @@ -0,0 +1,1284 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +/** + * + * + *
+ * The request structure for the DeleteUnitKind method.
+ * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitKindRequest} + */ +public final class DeleteUnitKindRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitKindRequest) + DeleteUnitKindRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use DeleteUnitKindRequest.newBuilder() to construct. + private DeleteUnitKindRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteUnitKindRequest() { + name_ = ""; + etag_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteUnitKindRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_DeleteUnitKindRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_DeleteUnitKindRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitKindRequest.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitKindRequest.Builder + .class); + } + + public static final int NAME_FIELD_NUMBER = 10001; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The resource name of the resource within a service.
+   * 
+ * + * + * string name = 10001 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + 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 resource name of the resource within a service.
+   * 
+ * + * + * string name = 10001 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + 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 ETAG_FIELD_NUMBER = 10202; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + + /** + * + * + *
+   * The etag known to the client for the expected state of the unit kind. This
+   * is used with state-changing methods to prevent accidental overwrites when
+   * multiple user agents might be acting in parallel on the same resource.
+   *
+   * An etag wildcard provide optimistic concurrency based on the expected
+   * existence of the unit kind. The Any wildcard (`*`) requires that the
+   * resource must already exists, and the Not Any wildcard (`!*`) requires that
+   * it must not.
+   * 
+ * + * string etag = 10202; + * + * @return The etag. + */ + @java.lang.Override + 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 known to the client for the expected state of the unit kind. This
+   * is used with state-changing methods to prevent accidental overwrites when
+   * multiple user agents might be acting in parallel on the same resource.
+   *
+   * An etag wildcard provide optimistic concurrency based on the expected
+   * existence of the unit kind. The Any wildcard (`*`) requires that the
+   * resource must already exists, and the Not Any wildcard (`!*`) requires that
+   * it must not.
+   * 
+ * + * string etag = 10202; + * + * @return The bytes for etag. + */ + @java.lang.Override + 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 VALIDATE_ONLY_FIELD_NUMBER = 10501; + private boolean validateOnly_ = false; + + /** + * + * + *
+   * If "validate_only" is set to true, the service will try to validate
+   * that this request would succeed, but will not actually make changes.
+   * 
+ * + * bool validate_only = 10501; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 10502; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 10502; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 10502; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10001, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10202, etag_); + } + if (validateOnly_ != false) { + output.writeBool(10501, validateOnly_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10502, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10001, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10202, etag_); + } + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(10501, validateOnly_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10502, requestId_); + } + size += getUnknownFields().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.saasplatform.saasservicemgmt.v1beta1.DeleteUnitKindRequest)) { + return super.equals(obj); + } + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitKindRequest other = + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitKindRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getEtag().equals(other.getEtag())) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitKindRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitKindRequest + 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.saasplatform.saasservicemgmt.v1beta1.DeleteUnitKindRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitKindRequest + 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.saasplatform.saasservicemgmt.v1beta1.DeleteUnitKindRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitKindRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitKindRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitKindRequest + 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.saasplatform.saasservicemgmt.v1beta1.DeleteUnitKindRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitKindRequest + 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.saasplatform.saasservicemgmt.v1beta1.DeleteUnitKindRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitKindRequest + 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.saasplatform.saasservicemgmt.v1beta1.DeleteUnitKindRequest 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 request structure for the DeleteUnitKind method.
+   * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitKindRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitKindRequest) + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitKindRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_DeleteUnitKindRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_DeleteUnitKindRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitKindRequest.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitKindRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitKindRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + etag_ = ""; + validateOnly_ = false; + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_DeleteUnitKindRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitKindRequest + getDefaultInstanceForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitKindRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitKindRequest build() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitKindRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitKindRequest + buildPartial() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitKindRequest result = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitKindRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitKindRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.etag_ = etag_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.validateOnly_ = validateOnly_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.requestId_ = requestId_; + } + } + + @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.saasplatform.saasservicemgmt.v1beta1.DeleteUnitKindRequest) { + return mergeFrom( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitKindRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitKindRequest other) { + if (other + == com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitKindRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 80010: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 80010 + case 81618: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 81618 + case 84008: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 84008 + case 84018: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 84018 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. The resource name of the resource within a service.
+     * 
+ * + * + * string name = 10001 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @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 resource name of the resource within a service.
+     * 
+ * + * + * string name = 10001 [(.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_; + 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 resource name of the resource within a service.
+     * 
+ * + * + * string name = 10001 [(.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) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource name of the resource within a service.
+     * 
+ * + * + * string name = 10001 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource name of the resource within a service.
+     * 
+ * + * + * string name = 10001 [(.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) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object etag_ = ""; + + /** + * + * + *
+     * The etag known to the client for the expected state of the unit kind. This
+     * is used with state-changing methods to prevent accidental overwrites when
+     * multiple user agents might be acting in parallel on the same resource.
+     *
+     * An etag wildcard provide optimistic concurrency based on the expected
+     * existence of the unit kind. The Any wildcard (`*`) requires that the
+     * resource must already exists, and the Not Any wildcard (`!*`) requires that
+     * it must not.
+     * 
+ * + * string etag = 10202; + * + * @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 known to the client for the expected state of the unit kind. This
+     * is used with state-changing methods to prevent accidental overwrites when
+     * multiple user agents might be acting in parallel on the same resource.
+     *
+     * An etag wildcard provide optimistic concurrency based on the expected
+     * existence of the unit kind. The Any wildcard (`*`) requires that the
+     * resource must already exists, and the Not Any wildcard (`!*`) requires that
+     * it must not.
+     * 
+ * + * string etag = 10202; + * + * @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 known to the client for the expected state of the unit kind. This
+     * is used with state-changing methods to prevent accidental overwrites when
+     * multiple user agents might be acting in parallel on the same resource.
+     *
+     * An etag wildcard provide optimistic concurrency based on the expected
+     * existence of the unit kind. The Any wildcard (`*`) requires that the
+     * resource must already exists, and the Not Any wildcard (`!*`) requires that
+     * it must not.
+     * 
+ * + * string etag = 10202; + * + * @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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * The etag known to the client for the expected state of the unit kind. This
+     * is used with state-changing methods to prevent accidental overwrites when
+     * multiple user agents might be acting in parallel on the same resource.
+     *
+     * An etag wildcard provide optimistic concurrency based on the expected
+     * existence of the unit kind. The Any wildcard (`*`) requires that the
+     * resource must already exists, and the Not Any wildcard (`!*`) requires that
+     * it must not.
+     * 
+ * + * string etag = 10202; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * The etag known to the client for the expected state of the unit kind. This
+     * is used with state-changing methods to prevent accidental overwrites when
+     * multiple user agents might be acting in parallel on the same resource.
+     *
+     * An etag wildcard provide optimistic concurrency based on the expected
+     * existence of the unit kind. The Any wildcard (`*`) requires that the
+     * resource must already exists, and the Not Any wildcard (`!*`) requires that
+     * it must not.
+     * 
+ * + * string etag = 10202; + * + * @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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private boolean validateOnly_; + + /** + * + * + *
+     * If "validate_only" is set to true, the service will try to validate
+     * that this request would succeed, but will not actually make changes.
+     * 
+ * + * bool validate_only = 10501; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + /** + * + * + *
+     * If "validate_only" is set to true, the service will try to validate
+     * that this request would succeed, but will not actually make changes.
+     * 
+ * + * bool validate_only = 10501; + * + * @param value The validateOnly to set. + * @return This builder for chaining. + */ + public Builder setValidateOnly(boolean value) { + + validateOnly_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * If "validate_only" is set to true, the service will try to validate
+     * that this request would succeed, but will not actually make changes.
+     * 
+ * + * bool validate_only = 10501; + * + * @return This builder for chaining. + */ + public Builder clearValidateOnly() { + bitField0_ = (bitField0_ & ~0x00000004); + validateOnly_ = false; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000008; + 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.saasplatform.saasservicemgmt.v1beta1.DeleteUnitKindRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitKindRequest) + private static final com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitKindRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitKindRequest(); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitKindRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteUnitKindRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.saasplatform.saasservicemgmt.v1beta1.DeleteUnitKindRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/DeleteUnitKindRequestOrBuilder.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/DeleteUnitKindRequestOrBuilder.java new file mode 100644 index 000000000000..da752b961e86 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/DeleteUnitKindRequestOrBuilder.java @@ -0,0 +1,160 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +public interface DeleteUnitKindRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitKindRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the resource within a service.
+   * 
+ * + * + * string name = 10001 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The resource name of the resource within a service.
+   * 
+ * + * + * string name = 10001 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * The etag known to the client for the expected state of the unit kind. This
+   * is used with state-changing methods to prevent accidental overwrites when
+   * multiple user agents might be acting in parallel on the same resource.
+   *
+   * An etag wildcard provide optimistic concurrency based on the expected
+   * existence of the unit kind. The Any wildcard (`*`) requires that the
+   * resource must already exists, and the Not Any wildcard (`!*`) requires that
+   * it must not.
+   * 
+ * + * string etag = 10202; + * + * @return The etag. + */ + java.lang.String getEtag(); + + /** + * + * + *
+   * The etag known to the client for the expected state of the unit kind. This
+   * is used with state-changing methods to prevent accidental overwrites when
+   * multiple user agents might be acting in parallel on the same resource.
+   *
+   * An etag wildcard provide optimistic concurrency based on the expected
+   * existence of the unit kind. The Any wildcard (`*`) requires that the
+   * resource must already exists, and the Not Any wildcard (`!*`) requires that
+   * it must not.
+   * 
+ * + * string etag = 10202; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); + + /** + * + * + *
+   * If "validate_only" is set to true, the service will try to validate
+   * that this request would succeed, but will not actually make changes.
+   * 
+ * + * bool validate_only = 10501; + * + * @return The validateOnly. + */ + boolean getValidateOnly(); + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 10502; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 10502; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/DeleteUnitOperationRequest.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/DeleteUnitOperationRequest.java new file mode 100644 index 000000000000..c588d3ae27e3 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/DeleteUnitOperationRequest.java @@ -0,0 +1,1293 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +/** + * + * + *
+ * The request structure for the DeleteUnitOperation method.
+ * 
+ * + * Protobuf type {@code + * google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitOperationRequest} + */ +public final class DeleteUnitOperationRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitOperationRequest) + DeleteUnitOperationRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use DeleteUnitOperationRequest.newBuilder() to construct. + private DeleteUnitOperationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteUnitOperationRequest() { + name_ = ""; + etag_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteUnitOperationRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_DeleteUnitOperationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_DeleteUnitOperationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitOperationRequest.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitOperationRequest.Builder + .class); + } + + public static final int NAME_FIELD_NUMBER = 10001; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The resource name of the resource within a service.
+   * 
+ * + * + * string name = 10001 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + 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 resource name of the resource within a service.
+   * 
+ * + * + * string name = 10001 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + 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 ETAG_FIELD_NUMBER = 10202; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + + /** + * + * + *
+   * The etag known to the client for the expected state of the unit operation.
+   * This is used with state-changing methods to prevent accidental overwrites
+   * when multiple user agents might be acting in parallel on the same resource.
+   *
+   * An etag wildcard provide optimistic concurrency based on the expected
+   * existence of the unit operation. The Any wildcard (`*`) requires that the
+   * resource must already exists, and the Not Any wildcard (`!*`) requires that
+   * it must not.
+   * 
+ * + * string etag = 10202; + * + * @return The etag. + */ + @java.lang.Override + 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 known to the client for the expected state of the unit operation.
+   * This is used with state-changing methods to prevent accidental overwrites
+   * when multiple user agents might be acting in parallel on the same resource.
+   *
+   * An etag wildcard provide optimistic concurrency based on the expected
+   * existence of the unit operation. The Any wildcard (`*`) requires that the
+   * resource must already exists, and the Not Any wildcard (`!*`) requires that
+   * it must not.
+   * 
+ * + * string etag = 10202; + * + * @return The bytes for etag. + */ + @java.lang.Override + 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 VALIDATE_ONLY_FIELD_NUMBER = 10501; + private boolean validateOnly_ = false; + + /** + * + * + *
+   * If "validate_only" is set to true, the service will try to validate
+   * that this request would succeed, but will not actually make changes.
+   * 
+ * + * bool validate_only = 10501; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 10502; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 10502; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 10502; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10001, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10202, etag_); + } + if (validateOnly_ != false) { + output.writeBool(10501, validateOnly_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10502, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10001, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10202, etag_); + } + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(10501, validateOnly_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10502, requestId_); + } + size += getUnknownFields().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.saasplatform.saasservicemgmt.v1beta1.DeleteUnitOperationRequest)) { + return super.equals(obj); + } + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitOperationRequest other = + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitOperationRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getEtag().equals(other.getEtag())) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitOperationRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitOperationRequest + 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.saasplatform.saasservicemgmt.v1beta1.DeleteUnitOperationRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitOperationRequest + 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.saasplatform.saasservicemgmt.v1beta1.DeleteUnitOperationRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitOperationRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitOperationRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitOperationRequest + 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.saasplatform.saasservicemgmt.v1beta1.DeleteUnitOperationRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitOperationRequest + 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.saasplatform.saasservicemgmt.v1beta1.DeleteUnitOperationRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitOperationRequest + 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.saasplatform.saasservicemgmt.v1beta1.DeleteUnitOperationRequest 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 request structure for the DeleteUnitOperation method.
+   * 
+ * + * Protobuf type {@code + * google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitOperationRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitOperationRequest) + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitOperationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_DeleteUnitOperationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_DeleteUnitOperationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitOperationRequest + .class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitOperationRequest + .Builder.class); + } + + // Construct using + // com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitOperationRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + etag_ = ""; + validateOnly_ = false; + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_DeleteUnitOperationRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitOperationRequest + getDefaultInstanceForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitOperationRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitOperationRequest + build() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitOperationRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitOperationRequest + buildPartial() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitOperationRequest result = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitOperationRequest( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitOperationRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.etag_ = etag_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.validateOnly_ = validateOnly_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.requestId_ = requestId_; + } + } + + @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.saasplatform.saasservicemgmt.v1beta1.DeleteUnitOperationRequest) { + return mergeFrom( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitOperationRequest) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitOperationRequest other) { + if (other + == com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitOperationRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 80010: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 80010 + case 81618: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 81618 + case 84008: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 84008 + case 84018: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 84018 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. The resource name of the resource within a service.
+     * 
+ * + * + * string name = 10001 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @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 resource name of the resource within a service.
+     * 
+ * + * + * string name = 10001 [(.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_; + 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 resource name of the resource within a service.
+     * 
+ * + * + * string name = 10001 [(.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) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource name of the resource within a service.
+     * 
+ * + * + * string name = 10001 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource name of the resource within a service.
+     * 
+ * + * + * string name = 10001 [(.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) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object etag_ = ""; + + /** + * + * + *
+     * The etag known to the client for the expected state of the unit operation.
+     * This is used with state-changing methods to prevent accidental overwrites
+     * when multiple user agents might be acting in parallel on the same resource.
+     *
+     * An etag wildcard provide optimistic concurrency based on the expected
+     * existence of the unit operation. The Any wildcard (`*`) requires that the
+     * resource must already exists, and the Not Any wildcard (`!*`) requires that
+     * it must not.
+     * 
+ * + * string etag = 10202; + * + * @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 known to the client for the expected state of the unit operation.
+     * This is used with state-changing methods to prevent accidental overwrites
+     * when multiple user agents might be acting in parallel on the same resource.
+     *
+     * An etag wildcard provide optimistic concurrency based on the expected
+     * existence of the unit operation. The Any wildcard (`*`) requires that the
+     * resource must already exists, and the Not Any wildcard (`!*`) requires that
+     * it must not.
+     * 
+ * + * string etag = 10202; + * + * @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 known to the client for the expected state of the unit operation.
+     * This is used with state-changing methods to prevent accidental overwrites
+     * when multiple user agents might be acting in parallel on the same resource.
+     *
+     * An etag wildcard provide optimistic concurrency based on the expected
+     * existence of the unit operation. The Any wildcard (`*`) requires that the
+     * resource must already exists, and the Not Any wildcard (`!*`) requires that
+     * it must not.
+     * 
+ * + * string etag = 10202; + * + * @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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * The etag known to the client for the expected state of the unit operation.
+     * This is used with state-changing methods to prevent accidental overwrites
+     * when multiple user agents might be acting in parallel on the same resource.
+     *
+     * An etag wildcard provide optimistic concurrency based on the expected
+     * existence of the unit operation. The Any wildcard (`*`) requires that the
+     * resource must already exists, and the Not Any wildcard (`!*`) requires that
+     * it must not.
+     * 
+ * + * string etag = 10202; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * The etag known to the client for the expected state of the unit operation.
+     * This is used with state-changing methods to prevent accidental overwrites
+     * when multiple user agents might be acting in parallel on the same resource.
+     *
+     * An etag wildcard provide optimistic concurrency based on the expected
+     * existence of the unit operation. The Any wildcard (`*`) requires that the
+     * resource must already exists, and the Not Any wildcard (`!*`) requires that
+     * it must not.
+     * 
+ * + * string etag = 10202; + * + * @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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private boolean validateOnly_; + + /** + * + * + *
+     * If "validate_only" is set to true, the service will try to validate
+     * that this request would succeed, but will not actually make changes.
+     * 
+ * + * bool validate_only = 10501; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + /** + * + * + *
+     * If "validate_only" is set to true, the service will try to validate
+     * that this request would succeed, but will not actually make changes.
+     * 
+ * + * bool validate_only = 10501; + * + * @param value The validateOnly to set. + * @return This builder for chaining. + */ + public Builder setValidateOnly(boolean value) { + + validateOnly_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * If "validate_only" is set to true, the service will try to validate
+     * that this request would succeed, but will not actually make changes.
+     * 
+ * + * bool validate_only = 10501; + * + * @return This builder for chaining. + */ + public Builder clearValidateOnly() { + bitField0_ = (bitField0_ & ~0x00000004); + validateOnly_ = false; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000008; + 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.saasplatform.saasservicemgmt.v1beta1.DeleteUnitOperationRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitOperationRequest) + private static final com.google.cloud.saasplatform.saasservicemgmt.v1beta1 + .DeleteUnitOperationRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitOperationRequest(); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitOperationRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteUnitOperationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.saasplatform.saasservicemgmt.v1beta1.DeleteUnitOperationRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/DeleteUnitOperationRequestOrBuilder.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/DeleteUnitOperationRequestOrBuilder.java new file mode 100644 index 000000000000..969bf73b3402 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/DeleteUnitOperationRequestOrBuilder.java @@ -0,0 +1,160 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +public interface DeleteUnitOperationRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitOperationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the resource within a service.
+   * 
+ * + * + * string name = 10001 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The resource name of the resource within a service.
+   * 
+ * + * + * string name = 10001 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * The etag known to the client for the expected state of the unit operation.
+   * This is used with state-changing methods to prevent accidental overwrites
+   * when multiple user agents might be acting in parallel on the same resource.
+   *
+   * An etag wildcard provide optimistic concurrency based on the expected
+   * existence of the unit operation. The Any wildcard (`*`) requires that the
+   * resource must already exists, and the Not Any wildcard (`!*`) requires that
+   * it must not.
+   * 
+ * + * string etag = 10202; + * + * @return The etag. + */ + java.lang.String getEtag(); + + /** + * + * + *
+   * The etag known to the client for the expected state of the unit operation.
+   * This is used with state-changing methods to prevent accidental overwrites
+   * when multiple user agents might be acting in parallel on the same resource.
+   *
+   * An etag wildcard provide optimistic concurrency based on the expected
+   * existence of the unit operation. The Any wildcard (`*`) requires that the
+   * resource must already exists, and the Not Any wildcard (`!*`) requires that
+   * it must not.
+   * 
+ * + * string etag = 10202; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); + + /** + * + * + *
+   * If "validate_only" is set to true, the service will try to validate
+   * that this request would succeed, but will not actually make changes.
+   * 
+ * + * bool validate_only = 10501; + * + * @return The validateOnly. + */ + boolean getValidateOnly(); + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 10502; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 10502; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/DeleteUnitRequest.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/DeleteUnitRequest.java new file mode 100644 index 000000000000..1bf9a5ad941d --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/DeleteUnitRequest.java @@ -0,0 +1,1276 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +/** + * + * + *
+ * The request structure for the DeleteUnit method.
+ * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitRequest} + */ +public final class DeleteUnitRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitRequest) + DeleteUnitRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use DeleteUnitRequest.newBuilder() to construct. + private DeleteUnitRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteUnitRequest() { + name_ = ""; + etag_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteUnitRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_DeleteUnitRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_DeleteUnitRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitRequest.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 10001; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The resource name of the resource within a service.
+   * 
+ * + * + * string name = 10001 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + 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 resource name of the resource within a service.
+   * 
+ * + * + * string name = 10001 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + 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 ETAG_FIELD_NUMBER = 10202; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + + /** + * + * + *
+   * The etag known to the client for the expected state of the unit. This is
+   * used with state-changing methods to prevent accidental overwrites when
+   * multiple user agents might be acting in parallel on the same resource.
+   *
+   * An etag wildcard provide optimistic concurrency based on the expected
+   * existence of the unit. The Any wildcard (`*`) requires that the resource
+   * must already exists, and the Not Any wildcard (`!*`) requires that it must
+   * not.
+   * 
+ * + * string etag = 10202; + * + * @return The etag. + */ + @java.lang.Override + 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 known to the client for the expected state of the unit. This is
+   * used with state-changing methods to prevent accidental overwrites when
+   * multiple user agents might be acting in parallel on the same resource.
+   *
+   * An etag wildcard provide optimistic concurrency based on the expected
+   * existence of the unit. The Any wildcard (`*`) requires that the resource
+   * must already exists, and the Not Any wildcard (`!*`) requires that it must
+   * not.
+   * 
+ * + * string etag = 10202; + * + * @return The bytes for etag. + */ + @java.lang.Override + 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 VALIDATE_ONLY_FIELD_NUMBER = 10501; + private boolean validateOnly_ = false; + + /** + * + * + *
+   * If "validate_only" is set to true, the service will try to validate
+   * that this request would succeed, but will not actually make changes.
+   * 
+ * + * bool validate_only = 10501; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 10502; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 10502; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 10502; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10001, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10202, etag_); + } + if (validateOnly_ != false) { + output.writeBool(10501, validateOnly_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10502, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10001, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10202, etag_); + } + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(10501, validateOnly_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10502, requestId_); + } + size += getUnknownFields().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.saasplatform.saasservicemgmt.v1beta1.DeleteUnitRequest)) { + return super.equals(obj); + } + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitRequest other = + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getEtag().equals(other.getEtag())) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitRequest 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.saasplatform.saasservicemgmt.v1beta1.DeleteUnitRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitRequest 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.saasplatform.saasservicemgmt.v1beta1.DeleteUnitRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitRequest 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.saasplatform.saasservicemgmt.v1beta1.DeleteUnitRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitRequest + 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.saasplatform.saasservicemgmt.v1beta1.DeleteUnitRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitRequest 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.saasplatform.saasservicemgmt.v1beta1.DeleteUnitRequest 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 request structure for the DeleteUnit method.
+   * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitRequest) + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_DeleteUnitRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_DeleteUnitRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitRequest.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + etag_ = ""; + validateOnly_ = false; + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_DeleteUnitRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitRequest + getDefaultInstanceForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitRequest build() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitRequest buildPartial() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitRequest result = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.etag_ = etag_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.validateOnly_ = validateOnly_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.requestId_ = requestId_; + } + } + + @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.saasplatform.saasservicemgmt.v1beta1.DeleteUnitRequest) { + return mergeFrom( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitRequest other) { + if (other + == com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 80010: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 80010 + case 81618: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 81618 + case 84008: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 84008 + case 84018: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 84018 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. The resource name of the resource within a service.
+     * 
+ * + * + * string name = 10001 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @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 resource name of the resource within a service.
+     * 
+ * + * + * string name = 10001 [(.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_; + 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 resource name of the resource within a service.
+     * 
+ * + * + * string name = 10001 [(.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) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource name of the resource within a service.
+     * 
+ * + * + * string name = 10001 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource name of the resource within a service.
+     * 
+ * + * + * string name = 10001 [(.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) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object etag_ = ""; + + /** + * + * + *
+     * The etag known to the client for the expected state of the unit. This is
+     * used with state-changing methods to prevent accidental overwrites when
+     * multiple user agents might be acting in parallel on the same resource.
+     *
+     * An etag wildcard provide optimistic concurrency based on the expected
+     * existence of the unit. The Any wildcard (`*`) requires that the resource
+     * must already exists, and the Not Any wildcard (`!*`) requires that it must
+     * not.
+     * 
+ * + * string etag = 10202; + * + * @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 known to the client for the expected state of the unit. This is
+     * used with state-changing methods to prevent accidental overwrites when
+     * multiple user agents might be acting in parallel on the same resource.
+     *
+     * An etag wildcard provide optimistic concurrency based on the expected
+     * existence of the unit. The Any wildcard (`*`) requires that the resource
+     * must already exists, and the Not Any wildcard (`!*`) requires that it must
+     * not.
+     * 
+ * + * string etag = 10202; + * + * @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 known to the client for the expected state of the unit. This is
+     * used with state-changing methods to prevent accidental overwrites when
+     * multiple user agents might be acting in parallel on the same resource.
+     *
+     * An etag wildcard provide optimistic concurrency based on the expected
+     * existence of the unit. The Any wildcard (`*`) requires that the resource
+     * must already exists, and the Not Any wildcard (`!*`) requires that it must
+     * not.
+     * 
+ * + * string etag = 10202; + * + * @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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * The etag known to the client for the expected state of the unit. This is
+     * used with state-changing methods to prevent accidental overwrites when
+     * multiple user agents might be acting in parallel on the same resource.
+     *
+     * An etag wildcard provide optimistic concurrency based on the expected
+     * existence of the unit. The Any wildcard (`*`) requires that the resource
+     * must already exists, and the Not Any wildcard (`!*`) requires that it must
+     * not.
+     * 
+ * + * string etag = 10202; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * The etag known to the client for the expected state of the unit. This is
+     * used with state-changing methods to prevent accidental overwrites when
+     * multiple user agents might be acting in parallel on the same resource.
+     *
+     * An etag wildcard provide optimistic concurrency based on the expected
+     * existence of the unit. The Any wildcard (`*`) requires that the resource
+     * must already exists, and the Not Any wildcard (`!*`) requires that it must
+     * not.
+     * 
+ * + * string etag = 10202; + * + * @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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private boolean validateOnly_; + + /** + * + * + *
+     * If "validate_only" is set to true, the service will try to validate
+     * that this request would succeed, but will not actually make changes.
+     * 
+ * + * bool validate_only = 10501; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + /** + * + * + *
+     * If "validate_only" is set to true, the service will try to validate
+     * that this request would succeed, but will not actually make changes.
+     * 
+ * + * bool validate_only = 10501; + * + * @param value The validateOnly to set. + * @return This builder for chaining. + */ + public Builder setValidateOnly(boolean value) { + + validateOnly_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * If "validate_only" is set to true, the service will try to validate
+     * that this request would succeed, but will not actually make changes.
+     * 
+ * + * bool validate_only = 10501; + * + * @return This builder for chaining. + */ + public Builder clearValidateOnly() { + bitField0_ = (bitField0_ & ~0x00000004); + validateOnly_ = false; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000008; + 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.saasplatform.saasservicemgmt.v1beta1.DeleteUnitRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitRequest) + private static final com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitRequest(); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteUnitRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.saasplatform.saasservicemgmt.v1beta1.DeleteUnitRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/DeleteUnitRequestOrBuilder.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/DeleteUnitRequestOrBuilder.java new file mode 100644 index 000000000000..4be4fea974cd --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/DeleteUnitRequestOrBuilder.java @@ -0,0 +1,160 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +public interface DeleteUnitRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the resource within a service.
+   * 
+ * + * + * string name = 10001 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The resource name of the resource within a service.
+   * 
+ * + * + * string name = 10001 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * The etag known to the client for the expected state of the unit. This is
+   * used with state-changing methods to prevent accidental overwrites when
+   * multiple user agents might be acting in parallel on the same resource.
+   *
+   * An etag wildcard provide optimistic concurrency based on the expected
+   * existence of the unit. The Any wildcard (`*`) requires that the resource
+   * must already exists, and the Not Any wildcard (`!*`) requires that it must
+   * not.
+   * 
+ * + * string etag = 10202; + * + * @return The etag. + */ + java.lang.String getEtag(); + + /** + * + * + *
+   * The etag known to the client for the expected state of the unit. This is
+   * used with state-changing methods to prevent accidental overwrites when
+   * multiple user agents might be acting in parallel on the same resource.
+   *
+   * An etag wildcard provide optimistic concurrency based on the expected
+   * existence of the unit. The Any wildcard (`*`) requires that the resource
+   * must already exists, and the Not Any wildcard (`!*`) requires that it must
+   * not.
+   * 
+ * + * string etag = 10202; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); + + /** + * + * + *
+   * If "validate_only" is set to true, the service will try to validate
+   * that this request would succeed, but will not actually make changes.
+   * 
+ * + * bool validate_only = 10501; + * + * @return The validateOnly. + */ + boolean getValidateOnly(); + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 10502; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 10502; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/Dependency.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/Dependency.java new file mode 100644 index 000000000000..f871067d1bcd --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/Dependency.java @@ -0,0 +1,845 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_resources.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +/** + * + * + *
+ * Dependency represent a single dependency with another unit kind by alias.
+ * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.Dependency} + */ +public final class Dependency extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.Dependency) + DependencyOrBuilder { + private static final long serialVersionUID = 0L; + + // Use Dependency.newBuilder() to construct. + private Dependency(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Dependency() { + unitKind_ = ""; + alias_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Dependency(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Dependency_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Dependency_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Dependency.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Dependency.Builder.class); + } + + public static final int UNIT_KIND_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object unitKind_ = ""; + + /** + * + * + *
+   * Required. Immutable. The unit kind of the dependency.
+   * 
+ * + * + * string unit_kind = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The unitKind. + */ + @java.lang.Override + public java.lang.String getUnitKind() { + java.lang.Object ref = unitKind_; + 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(); + unitKind_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. Immutable. The unit kind of the dependency.
+   * 
+ * + * + * string unit_kind = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for unitKind. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUnitKindBytes() { + java.lang.Object ref = unitKind_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + unitKind_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ALIAS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object alias_ = ""; + + /** + * + * + *
+   * Required. An alias for the dependency. Used for input variable mapping.
+   * 
+ * + * string alias = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The alias. + */ + @java.lang.Override + public java.lang.String getAlias() { + java.lang.Object ref = alias_; + 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(); + alias_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. An alias for the dependency. Used for input variable mapping.
+   * 
+ * + * string alias = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for alias. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAliasBytes() { + java.lang.Object ref = alias_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + alias_ = 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(unitKind_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, unitKind_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(alias_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, alias_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(unitKind_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, unitKind_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(alias_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, alias_); + } + size += getUnknownFields().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.saasplatform.saasservicemgmt.v1beta1.Dependency)) { + return super.equals(obj); + } + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Dependency other = + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Dependency) obj; + + if (!getUnitKind().equals(other.getUnitKind())) return false; + if (!getAlias().equals(other.getAlias())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + UNIT_KIND_FIELD_NUMBER; + hash = (53 * hash) + getUnitKind().hashCode(); + hash = (37 * hash) + ALIAS_FIELD_NUMBER; + hash = (53 * hash) + getAlias().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Dependency parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Dependency 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.saasplatform.saasservicemgmt.v1beta1.Dependency parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Dependency 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.saasplatform.saasservicemgmt.v1beta1.Dependency parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Dependency parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Dependency parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Dependency 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.saasplatform.saasservicemgmt.v1beta1.Dependency parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Dependency 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.saasplatform.saasservicemgmt.v1beta1.Dependency parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Dependency 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.saasplatform.saasservicemgmt.v1beta1.Dependency 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; + } + + /** + * + * + *
+   * Dependency represent a single dependency with another unit kind by alias.
+   * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.Dependency} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.Dependency) + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DependencyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Dependency_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Dependency_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Dependency.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Dependency.Builder.class); + } + + // Construct using com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Dependency.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + unitKind_ = ""; + alias_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Dependency_descriptor; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Dependency + getDefaultInstanceForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Dependency.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Dependency build() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Dependency result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Dependency buildPartial() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Dependency result = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Dependency(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Dependency result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.unitKind_ = unitKind_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.alias_ = alias_; + } + } + + @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.saasplatform.saasservicemgmt.v1beta1.Dependency) { + return mergeFrom((com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Dependency) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Dependency other) { + if (other + == com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Dependency.getDefaultInstance()) + return this; + if (!other.getUnitKind().isEmpty()) { + unitKind_ = other.unitKind_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getAlias().isEmpty()) { + alias_ = other.alias_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + unitKind_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + alias_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object unitKind_ = ""; + + /** + * + * + *
+     * Required. Immutable. The unit kind of the dependency.
+     * 
+ * + * + * string unit_kind = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The unitKind. + */ + public java.lang.String getUnitKind() { + java.lang.Object ref = unitKind_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + unitKind_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. Immutable. The unit kind of the dependency.
+     * 
+ * + * + * string unit_kind = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for unitKind. + */ + public com.google.protobuf.ByteString getUnitKindBytes() { + java.lang.Object ref = unitKind_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + unitKind_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. Immutable. The unit kind of the dependency.
+     * 
+ * + * + * string unit_kind = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @param value The unitKind to set. + * @return This builder for chaining. + */ + public Builder setUnitKind(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + unitKind_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Immutable. The unit kind of the dependency.
+     * 
+ * + * + * string unit_kind = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearUnitKind() { + unitKind_ = getDefaultInstance().getUnitKind(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Immutable. The unit kind of the dependency.
+     * 
+ * + * + * string unit_kind = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for unitKind to set. + * @return This builder for chaining. + */ + public Builder setUnitKindBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + unitKind_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object alias_ = ""; + + /** + * + * + *
+     * Required. An alias for the dependency. Used for input variable mapping.
+     * 
+ * + * string alias = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The alias. + */ + public java.lang.String getAlias() { + java.lang.Object ref = alias_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + alias_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. An alias for the dependency. Used for input variable mapping.
+     * 
+ * + * string alias = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for alias. + */ + public com.google.protobuf.ByteString getAliasBytes() { + java.lang.Object ref = alias_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + alias_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. An alias for the dependency. Used for input variable mapping.
+     * 
+ * + * string alias = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The alias to set. + * @return This builder for chaining. + */ + public Builder setAlias(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + alias_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. An alias for the dependency. Used for input variable mapping.
+     * 
+ * + * string alias = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearAlias() { + alias_ = getDefaultInstance().getAlias(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. An alias for the dependency. Used for input variable mapping.
+     * 
+ * + * string alias = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for alias to set. + * @return This builder for chaining. + */ + public Builder setAliasBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + alias_ = value; + bitField0_ |= 0x00000002; + 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.saasplatform.saasservicemgmt.v1beta1.Dependency) + } + + // @@protoc_insertion_point(class_scope:google.cloud.saasplatform.saasservicemgmt.v1beta1.Dependency) + private static final com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Dependency + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Dependency(); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Dependency + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Dependency parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.saasplatform.saasservicemgmt.v1beta1.Dependency + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/DependencyOrBuilder.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/DependencyOrBuilder.java new file mode 100644 index 000000000000..1f7c6ea8b5b3 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/DependencyOrBuilder.java @@ -0,0 +1,82 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_resources.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +public interface DependencyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.saasplatform.saasservicemgmt.v1beta1.Dependency) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Immutable. The unit kind of the dependency.
+   * 
+ * + * + * string unit_kind = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The unitKind. + */ + java.lang.String getUnitKind(); + + /** + * + * + *
+   * Required. Immutable. The unit kind of the dependency.
+   * 
+ * + * + * string unit_kind = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for unitKind. + */ + com.google.protobuf.ByteString getUnitKindBytes(); + + /** + * + * + *
+   * Required. An alias for the dependency. Used for input variable mapping.
+   * 
+ * + * string alias = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The alias. + */ + java.lang.String getAlias(); + + /** + * + * + *
+   * Required. An alias for the dependency. Used for input variable mapping.
+   * 
+ * + * string alias = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for alias. + */ + com.google.protobuf.ByteString getAliasBytes(); +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/Deprovision.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/Deprovision.java new file mode 100644 index 000000000000..705b38cc2a2c --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/Deprovision.java @@ -0,0 +1,447 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_resources.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +/** + * + * + *
+ * Deprovision is the unit operation that deprovision the underlying
+ * resources represented by a Unit. Can only execute if the Unit is currently
+ * provisioned.
+ * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.Deprovision} + */ +public final class Deprovision extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.Deprovision) + DeprovisionOrBuilder { + private static final long serialVersionUID = 0L; + + // Use Deprovision.newBuilder() to construct. + private Deprovision(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Deprovision() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Deprovision(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Deprovision_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Deprovision_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Deprovision.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Deprovision.Builder.class); + } + + 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 { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().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.saasplatform.saasservicemgmt.v1beta1.Deprovision)) { + return super.equals(obj); + } + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Deprovision other = + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Deprovision) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Deprovision parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Deprovision 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.saasplatform.saasservicemgmt.v1beta1.Deprovision parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Deprovision 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.saasplatform.saasservicemgmt.v1beta1.Deprovision parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Deprovision parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Deprovision parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Deprovision 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.saasplatform.saasservicemgmt.v1beta1.Deprovision + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Deprovision + 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.saasplatform.saasservicemgmt.v1beta1.Deprovision parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Deprovision 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.saasplatform.saasservicemgmt.v1beta1.Deprovision 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; + } + + /** + * + * + *
+   * Deprovision is the unit operation that deprovision the underlying
+   * resources represented by a Unit. Can only execute if the Unit is currently
+   * provisioned.
+   * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.Deprovision} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.Deprovision) + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeprovisionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Deprovision_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Deprovision_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Deprovision.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Deprovision.Builder.class); + } + + // Construct using + // com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Deprovision.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Deprovision_descriptor; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Deprovision + getDefaultInstanceForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Deprovision.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Deprovision build() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Deprovision result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Deprovision buildPartial() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Deprovision result = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Deprovision(this); + 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.saasplatform.saasservicemgmt.v1beta1.Deprovision) { + return mergeFrom((com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Deprovision) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Deprovision other) { + if (other + == com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Deprovision.getDefaultInstance()) + return this; + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + 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.saasplatform.saasservicemgmt.v1beta1.Deprovision) + } + + // @@protoc_insertion_point(class_scope:google.cloud.saasplatform.saasservicemgmt.v1beta1.Deprovision) + private static final com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Deprovision + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Deprovision(); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Deprovision + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Deprovision parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.saasplatform.saasservicemgmt.v1beta1.Deprovision + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/DeprovisionOrBuilder.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/DeprovisionOrBuilder.java new file mode 100644 index 000000000000..fd538b363301 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/DeprovisionOrBuilder.java @@ -0,0 +1,25 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_resources.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +public interface DeprovisionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.saasplatform.saasservicemgmt.v1beta1.Deprovision) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ErrorBudget.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ErrorBudget.java new file mode 100644 index 000000000000..082db2106e42 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ErrorBudget.java @@ -0,0 +1,658 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/rollouts_resources.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +/** + * + * + *
+ * The configuration for error budget. If the number of failed units exceeds
+ * max(allowed_count, allowed_ratio * total_units), the rollout will be paused.
+ * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.ErrorBudget} + */ +public final class ErrorBudget extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.ErrorBudget) + ErrorBudgetOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ErrorBudget.newBuilder() to construct. + private ErrorBudget(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ErrorBudget() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ErrorBudget(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ErrorBudget_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ErrorBudget_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ErrorBudget.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ErrorBudget.Builder.class); + } + + public static final int ALLOWED_COUNT_FIELD_NUMBER = 1; + private int allowedCount_ = 0; + + /** + * + * + *
+   * Optional. The maximum number of failed units allowed in a location without
+   * pausing the rollout.
+   * 
+ * + * int32 allowed_count = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The allowedCount. + */ + @java.lang.Override + public int getAllowedCount() { + return allowedCount_; + } + + public static final int ALLOWED_PERCENTAGE_FIELD_NUMBER = 2; + private int allowedPercentage_ = 0; + + /** + * + * + *
+   * Optional. The maximum percentage of units allowed to fail (0, 100] within a
+   * location without pausing the rollout.
+   * 
+ * + * int32 allowed_percentage = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The allowedPercentage. + */ + @java.lang.Override + public int getAllowedPercentage() { + return allowedPercentage_; + } + + 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 (allowedCount_ != 0) { + output.writeInt32(1, allowedCount_); + } + if (allowedPercentage_ != 0) { + output.writeInt32(2, allowedPercentage_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (allowedCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, allowedCount_); + } + if (allowedPercentage_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, allowedPercentage_); + } + size += getUnknownFields().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.saasplatform.saasservicemgmt.v1beta1.ErrorBudget)) { + return super.equals(obj); + } + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ErrorBudget other = + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ErrorBudget) obj; + + if (getAllowedCount() != other.getAllowedCount()) return false; + if (getAllowedPercentage() != other.getAllowedPercentage()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + ALLOWED_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getAllowedCount(); + hash = (37 * hash) + ALLOWED_PERCENTAGE_FIELD_NUMBER; + hash = (53 * hash) + getAllowedPercentage(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ErrorBudget parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ErrorBudget 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.saasplatform.saasservicemgmt.v1beta1.ErrorBudget parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ErrorBudget 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.saasplatform.saasservicemgmt.v1beta1.ErrorBudget parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ErrorBudget parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ErrorBudget parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ErrorBudget 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.saasplatform.saasservicemgmt.v1beta1.ErrorBudget + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ErrorBudget + 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.saasplatform.saasservicemgmt.v1beta1.ErrorBudget parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ErrorBudget 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.saasplatform.saasservicemgmt.v1beta1.ErrorBudget 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 configuration for error budget. If the number of failed units exceeds
+   * max(allowed_count, allowed_ratio * total_units), the rollout will be paused.
+   * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.ErrorBudget} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.ErrorBudget) + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ErrorBudgetOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ErrorBudget_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ErrorBudget_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ErrorBudget.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ErrorBudget.Builder.class); + } + + // Construct using + // com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ErrorBudget.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + allowedCount_ = 0; + allowedPercentage_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ErrorBudget_descriptor; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ErrorBudget + getDefaultInstanceForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ErrorBudget.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ErrorBudget build() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ErrorBudget result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ErrorBudget buildPartial() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ErrorBudget result = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ErrorBudget(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ErrorBudget result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.allowedCount_ = allowedCount_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.allowedPercentage_ = allowedPercentage_; + } + } + + @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.saasplatform.saasservicemgmt.v1beta1.ErrorBudget) { + return mergeFrom((com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ErrorBudget) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ErrorBudget other) { + if (other + == com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ErrorBudget.getDefaultInstance()) + return this; + if (other.getAllowedCount() != 0) { + setAllowedCount(other.getAllowedCount()); + } + if (other.getAllowedPercentage() != 0) { + setAllowedPercentage(other.getAllowedPercentage()); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + allowedCount_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + allowedPercentage_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int allowedCount_; + + /** + * + * + *
+     * Optional. The maximum number of failed units allowed in a location without
+     * pausing the rollout.
+     * 
+ * + * int32 allowed_count = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The allowedCount. + */ + @java.lang.Override + public int getAllowedCount() { + return allowedCount_; + } + + /** + * + * + *
+     * Optional. The maximum number of failed units allowed in a location without
+     * pausing the rollout.
+     * 
+ * + * int32 allowed_count = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The allowedCount to set. + * @return This builder for chaining. + */ + public Builder setAllowedCount(int value) { + + allowedCount_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The maximum number of failed units allowed in a location without
+     * pausing the rollout.
+     * 
+ * + * int32 allowed_count = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAllowedCount() { + bitField0_ = (bitField0_ & ~0x00000001); + allowedCount_ = 0; + onChanged(); + return this; + } + + private int allowedPercentage_; + + /** + * + * + *
+     * Optional. The maximum percentage of units allowed to fail (0, 100] within a
+     * location without pausing the rollout.
+     * 
+ * + * int32 allowed_percentage = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The allowedPercentage. + */ + @java.lang.Override + public int getAllowedPercentage() { + return allowedPercentage_; + } + + /** + * + * + *
+     * Optional. The maximum percentage of units allowed to fail (0, 100] within a
+     * location without pausing the rollout.
+     * 
+ * + * int32 allowed_percentage = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The allowedPercentage to set. + * @return This builder for chaining. + */ + public Builder setAllowedPercentage(int value) { + + allowedPercentage_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The maximum percentage of units allowed to fail (0, 100] within a
+     * location without pausing the rollout.
+     * 
+ * + * int32 allowed_percentage = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAllowedPercentage() { + bitField0_ = (bitField0_ & ~0x00000002); + allowedPercentage_ = 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.saasplatform.saasservicemgmt.v1beta1.ErrorBudget) + } + + // @@protoc_insertion_point(class_scope:google.cloud.saasplatform.saasservicemgmt.v1beta1.ErrorBudget) + private static final com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ErrorBudget + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ErrorBudget(); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ErrorBudget + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ErrorBudget parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.saasplatform.saasservicemgmt.v1beta1.ErrorBudget + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ErrorBudgetOrBuilder.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ErrorBudgetOrBuilder.java new file mode 100644 index 000000000000..9c2280901cb5 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ErrorBudgetOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/rollouts_resources.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +public interface ErrorBudgetOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.saasplatform.saasservicemgmt.v1beta1.ErrorBudget) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. The maximum number of failed units allowed in a location without
+   * pausing the rollout.
+   * 
+ * + * int32 allowed_count = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The allowedCount. + */ + int getAllowedCount(); + + /** + * + * + *
+   * Optional. The maximum percentage of units allowed to fail (0, 100] within a
+   * location without pausing the rollout.
+   * 
+ * + * int32 allowed_percentage = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The allowedPercentage. + */ + int getAllowedPercentage(); +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/FromMapping.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/FromMapping.java new file mode 100644 index 000000000000..96df4f2717c5 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/FromMapping.java @@ -0,0 +1,840 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_resources.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +/** + * + * + *
+ * Output variables whose values will be passed on to dependencies
+ * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.FromMapping} + */ +public final class FromMapping extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.FromMapping) + FromMappingOrBuilder { + private static final long serialVersionUID = 0L; + + // Use FromMapping.newBuilder() to construct. + private FromMapping(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FromMapping() { + dependency_ = ""; + outputVariable_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FromMapping(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_FromMapping_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_FromMapping_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.FromMapping.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.FromMapping.Builder.class); + } + + public static final int DEPENDENCY_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object dependency_ = ""; + + /** + * + * + *
+   * Required. Alias of the dependency that the outputVariable will pass its
+   * value to
+   * 
+ * + * string dependency = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The dependency. + */ + @java.lang.Override + public java.lang.String getDependency() { + java.lang.Object ref = dependency_; + 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(); + dependency_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. Alias of the dependency that the outputVariable will pass its
+   * value to
+   * 
+ * + * string dependency = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for dependency. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDependencyBytes() { + java.lang.Object ref = dependency_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dependency_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OUTPUT_VARIABLE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object outputVariable_ = ""; + + /** + * + * + *
+   * Required. Name of the outputVariable on the dependency
+   * 
+ * + * string output_variable = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The outputVariable. + */ + @java.lang.Override + public java.lang.String getOutputVariable() { + java.lang.Object ref = outputVariable_; + 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(); + outputVariable_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. Name of the outputVariable on the dependency
+   * 
+ * + * string output_variable = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for outputVariable. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOutputVariableBytes() { + java.lang.Object ref = outputVariable_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + outputVariable_ = 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dependency_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dependency_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputVariable_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, outputVariable_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dependency_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, dependency_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputVariable_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, outputVariable_); + } + size += getUnknownFields().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.saasplatform.saasservicemgmt.v1beta1.FromMapping)) { + return super.equals(obj); + } + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.FromMapping other = + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.FromMapping) obj; + + if (!getDependency().equals(other.getDependency())) return false; + if (!getOutputVariable().equals(other.getOutputVariable())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + DEPENDENCY_FIELD_NUMBER; + hash = (53 * hash) + getDependency().hashCode(); + hash = (37 * hash) + OUTPUT_VARIABLE_FIELD_NUMBER; + hash = (53 * hash) + getOutputVariable().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.FromMapping parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.FromMapping 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.saasplatform.saasservicemgmt.v1beta1.FromMapping parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.FromMapping 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.saasplatform.saasservicemgmt.v1beta1.FromMapping parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.FromMapping parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.FromMapping parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.FromMapping 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.saasplatform.saasservicemgmt.v1beta1.FromMapping + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.FromMapping + 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.saasplatform.saasservicemgmt.v1beta1.FromMapping parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.FromMapping 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.saasplatform.saasservicemgmt.v1beta1.FromMapping 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; + } + + /** + * + * + *
+   * Output variables whose values will be passed on to dependencies
+   * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.FromMapping} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.FromMapping) + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.FromMappingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_FromMapping_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_FromMapping_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.FromMapping.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.FromMapping.Builder.class); + } + + // Construct using + // com.google.cloud.saasplatform.saasservicemgmt.v1beta1.FromMapping.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + dependency_ = ""; + outputVariable_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_FromMapping_descriptor; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.FromMapping + getDefaultInstanceForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.FromMapping.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.FromMapping build() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.FromMapping result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.FromMapping buildPartial() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.FromMapping result = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.FromMapping(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.FromMapping result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.dependency_ = dependency_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.outputVariable_ = outputVariable_; + } + } + + @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.saasplatform.saasservicemgmt.v1beta1.FromMapping) { + return mergeFrom((com.google.cloud.saasplatform.saasservicemgmt.v1beta1.FromMapping) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.FromMapping other) { + if (other + == com.google.cloud.saasplatform.saasservicemgmt.v1beta1.FromMapping.getDefaultInstance()) + return this; + if (!other.getDependency().isEmpty()) { + dependency_ = other.dependency_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getOutputVariable().isEmpty()) { + outputVariable_ = other.outputVariable_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + dependency_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + outputVariable_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object dependency_ = ""; + + /** + * + * + *
+     * Required. Alias of the dependency that the outputVariable will pass its
+     * value to
+     * 
+ * + * string dependency = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The dependency. + */ + public java.lang.String getDependency() { + java.lang.Object ref = dependency_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dependency_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. Alias of the dependency that the outputVariable will pass its
+     * value to
+     * 
+ * + * string dependency = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for dependency. + */ + public com.google.protobuf.ByteString getDependencyBytes() { + java.lang.Object ref = dependency_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dependency_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. Alias of the dependency that the outputVariable will pass its
+     * value to
+     * 
+ * + * string dependency = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The dependency to set. + * @return This builder for chaining. + */ + public Builder setDependency(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + dependency_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Alias of the dependency that the outputVariable will pass its
+     * value to
+     * 
+ * + * string dependency = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDependency() { + dependency_ = getDefaultInstance().getDependency(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Alias of the dependency that the outputVariable will pass its
+     * value to
+     * 
+ * + * string dependency = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for dependency to set. + * @return This builder for chaining. + */ + public Builder setDependencyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dependency_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object outputVariable_ = ""; + + /** + * + * + *
+     * Required. Name of the outputVariable on the dependency
+     * 
+ * + * string output_variable = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The outputVariable. + */ + public java.lang.String getOutputVariable() { + java.lang.Object ref = outputVariable_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + outputVariable_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. Name of the outputVariable on the dependency
+     * 
+ * + * string output_variable = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for outputVariable. + */ + public com.google.protobuf.ByteString getOutputVariableBytes() { + java.lang.Object ref = outputVariable_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + outputVariable_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. Name of the outputVariable on the dependency
+     * 
+ * + * string output_variable = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The outputVariable to set. + * @return This builder for chaining. + */ + public Builder setOutputVariable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + outputVariable_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Name of the outputVariable on the dependency
+     * 
+ * + * string output_variable = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearOutputVariable() { + outputVariable_ = getDefaultInstance().getOutputVariable(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Name of the outputVariable on the dependency
+     * 
+ * + * string output_variable = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for outputVariable to set. + * @return This builder for chaining. + */ + public Builder setOutputVariableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + outputVariable_ = value; + bitField0_ |= 0x00000002; + 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.saasplatform.saasservicemgmt.v1beta1.FromMapping) + } + + // @@protoc_insertion_point(class_scope:google.cloud.saasplatform.saasservicemgmt.v1beta1.FromMapping) + private static final com.google.cloud.saasplatform.saasservicemgmt.v1beta1.FromMapping + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.FromMapping(); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.FromMapping + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FromMapping parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.saasplatform.saasservicemgmt.v1beta1.FromMapping + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/FromMappingOrBuilder.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/FromMappingOrBuilder.java new file mode 100644 index 000000000000..4e64cc34fb45 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/FromMappingOrBuilder.java @@ -0,0 +1,80 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_resources.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +public interface FromMappingOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.saasplatform.saasservicemgmt.v1beta1.FromMapping) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Alias of the dependency that the outputVariable will pass its
+   * value to
+   * 
+ * + * string dependency = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The dependency. + */ + java.lang.String getDependency(); + + /** + * + * + *
+   * Required. Alias of the dependency that the outputVariable will pass its
+   * value to
+   * 
+ * + * string dependency = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for dependency. + */ + com.google.protobuf.ByteString getDependencyBytes(); + + /** + * + * + *
+   * Required. Name of the outputVariable on the dependency
+   * 
+ * + * string output_variable = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The outputVariable. + */ + java.lang.String getOutputVariable(); + + /** + * + * + *
+   * Required. Name of the outputVariable on the dependency
+   * 
+ * + * string output_variable = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for outputVariable. + */ + com.google.protobuf.ByteString getOutputVariableBytes(); +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/GetReleaseRequest.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/GetReleaseRequest.java new file mode 100644 index 000000000000..f1b4dcfaa960 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/GetReleaseRequest.java @@ -0,0 +1,664 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +/** + * + * + *
+ * The request structure for the GetRelease method.
+ * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.GetReleaseRequest} + */ +public final class GetReleaseRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.GetReleaseRequest) + GetReleaseRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use GetReleaseRequest.newBuilder() to construct. + private GetReleaseRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetReleaseRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetReleaseRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_GetReleaseRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_GetReleaseRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetReleaseRequest.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetReleaseRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 10001; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The resource name of the resource within a service.
+   * 
+ * + * + * string name = 10001 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + 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 resource name of the resource within a service.
+   * 
+ * + * + * string name = 10001 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10001, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10001, name_); + } + size += getUnknownFields().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.saasplatform.saasservicemgmt.v1beta1.GetReleaseRequest)) { + return super.equals(obj); + } + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetReleaseRequest other = + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetReleaseRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetReleaseRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetReleaseRequest 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.saasplatform.saasservicemgmt.v1beta1.GetReleaseRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetReleaseRequest 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.saasplatform.saasservicemgmt.v1beta1.GetReleaseRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetReleaseRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetReleaseRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetReleaseRequest 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.saasplatform.saasservicemgmt.v1beta1.GetReleaseRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetReleaseRequest + 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.saasplatform.saasservicemgmt.v1beta1.GetReleaseRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetReleaseRequest 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.saasplatform.saasservicemgmt.v1beta1.GetReleaseRequest 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 request structure for the GetRelease method.
+   * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.GetReleaseRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.GetReleaseRequest) + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetReleaseRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_GetReleaseRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_GetReleaseRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetReleaseRequest.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetReleaseRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetReleaseRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_GetReleaseRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetReleaseRequest + getDefaultInstanceForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetReleaseRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetReleaseRequest build() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetReleaseRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetReleaseRequest buildPartial() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetReleaseRequest result = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetReleaseRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetReleaseRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @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.saasplatform.saasservicemgmt.v1beta1.GetReleaseRequest) { + return mergeFrom( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetReleaseRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetReleaseRequest other) { + if (other + == com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetReleaseRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 80010: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 80010 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. The resource name of the resource within a service.
+     * 
+ * + * + * string name = 10001 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @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 resource name of the resource within a service.
+     * 
+ * + * + * string name = 10001 [(.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_; + 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 resource name of the resource within a service.
+     * 
+ * + * + * string name = 10001 [(.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) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource name of the resource within a service.
+     * 
+ * + * + * string name = 10001 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource name of the resource within a service.
+     * 
+ * + * + * string name = 10001 [(.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) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + 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.saasplatform.saasservicemgmt.v1beta1.GetReleaseRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.saasplatform.saasservicemgmt.v1beta1.GetReleaseRequest) + private static final com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetReleaseRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetReleaseRequest(); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetReleaseRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetReleaseRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.saasplatform.saasservicemgmt.v1beta1.GetReleaseRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/GetReleaseRequestOrBuilder.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/GetReleaseRequestOrBuilder.java new file mode 100644 index 000000000000..5fe4add61706 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/GetReleaseRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +public interface GetReleaseRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.saasplatform.saasservicemgmt.v1beta1.GetReleaseRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the resource within a service.
+   * 
+ * + * + * string name = 10001 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The resource name of the resource within a service.
+   * 
+ * + * + * string name = 10001 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/GetRolloutKindRequest.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/GetRolloutKindRequest.java new file mode 100644 index 000000000000..362af4c8f4fb --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/GetRolloutKindRequest.java @@ -0,0 +1,672 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/rollouts_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +/** + * + * + *
+ * The request structure for the GetRolloutKind method.
+ * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutKindRequest} + */ +public final class GetRolloutKindRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutKindRequest) + GetRolloutKindRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use GetRolloutKindRequest.newBuilder() to construct. + private GetRolloutKindRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetRolloutKindRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetRolloutKindRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_GetRolloutKindRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_GetRolloutKindRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutKindRequest.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutKindRequest.Builder + .class); + } + + public static final int NAME_FIELD_NUMBER = 10001; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The resource name of the resource within a service.
+   * 
+ * + * + * string name = 10001 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + 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 resource name of the resource within a service.
+   * 
+ * + * + * string name = 10001 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10001, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10001, name_); + } + size += getUnknownFields().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.saasplatform.saasservicemgmt.v1beta1.GetRolloutKindRequest)) { + return super.equals(obj); + } + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutKindRequest other = + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutKindRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutKindRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutKindRequest + 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.saasplatform.saasservicemgmt.v1beta1.GetRolloutKindRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutKindRequest + 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.saasplatform.saasservicemgmt.v1beta1.GetRolloutKindRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutKindRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutKindRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutKindRequest + 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.saasplatform.saasservicemgmt.v1beta1.GetRolloutKindRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutKindRequest + 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.saasplatform.saasservicemgmt.v1beta1.GetRolloutKindRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutKindRequest + 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.saasplatform.saasservicemgmt.v1beta1.GetRolloutKindRequest 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 request structure for the GetRolloutKind method.
+   * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutKindRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutKindRequest) + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutKindRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_GetRolloutKindRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_GetRolloutKindRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutKindRequest.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutKindRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutKindRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_GetRolloutKindRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutKindRequest + getDefaultInstanceForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutKindRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutKindRequest build() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutKindRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutKindRequest + buildPartial() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutKindRequest result = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutKindRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutKindRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @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.saasplatform.saasservicemgmt.v1beta1.GetRolloutKindRequest) { + return mergeFrom( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutKindRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutKindRequest other) { + if (other + == com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutKindRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 80010: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 80010 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. The resource name of the resource within a service.
+     * 
+ * + * + * string name = 10001 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @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 resource name of the resource within a service.
+     * 
+ * + * + * string name = 10001 [(.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_; + 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 resource name of the resource within a service.
+     * 
+ * + * + * string name = 10001 [(.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) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource name of the resource within a service.
+     * 
+ * + * + * string name = 10001 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource name of the resource within a service.
+     * 
+ * + * + * string name = 10001 [(.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) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + 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.saasplatform.saasservicemgmt.v1beta1.GetRolloutKindRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutKindRequest) + private static final com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutKindRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutKindRequest(); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutKindRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetRolloutKindRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.saasplatform.saasservicemgmt.v1beta1.GetRolloutKindRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/GetRolloutKindRequestOrBuilder.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/GetRolloutKindRequestOrBuilder.java new file mode 100644 index 000000000000..7559f246abc2 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/GetRolloutKindRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/rollouts_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +public interface GetRolloutKindRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutKindRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the resource within a service.
+   * 
+ * + * + * string name = 10001 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The resource name of the resource within a service.
+   * 
+ * + * + * string name = 10001 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/GetRolloutRequest.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/GetRolloutRequest.java new file mode 100644 index 000000000000..3e22addcc54a --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/GetRolloutRequest.java @@ -0,0 +1,664 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/rollouts_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +/** + * + * + *
+ * The request structure for the GetRollout method.
+ * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutRequest} + */ +public final class GetRolloutRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutRequest) + GetRolloutRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use GetRolloutRequest.newBuilder() to construct. + private GetRolloutRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetRolloutRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetRolloutRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_GetRolloutRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_GetRolloutRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutRequest.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 10001; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The resource name of the resource within a service.
+   * 
+ * + * + * string name = 10001 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + 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 resource name of the resource within a service.
+   * 
+ * + * + * string name = 10001 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10001, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10001, name_); + } + size += getUnknownFields().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.saasplatform.saasservicemgmt.v1beta1.GetRolloutRequest)) { + return super.equals(obj); + } + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutRequest other = + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutRequest 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.saasplatform.saasservicemgmt.v1beta1.GetRolloutRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutRequest 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.saasplatform.saasservicemgmt.v1beta1.GetRolloutRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutRequest 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.saasplatform.saasservicemgmt.v1beta1.GetRolloutRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutRequest + 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.saasplatform.saasservicemgmt.v1beta1.GetRolloutRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutRequest 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.saasplatform.saasservicemgmt.v1beta1.GetRolloutRequest 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 request structure for the GetRollout method.
+   * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutRequest) + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_GetRolloutRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_GetRolloutRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutRequest.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_GetRolloutRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutRequest + getDefaultInstanceForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutRequest build() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutRequest buildPartial() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutRequest result = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @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.saasplatform.saasservicemgmt.v1beta1.GetRolloutRequest) { + return mergeFrom( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutRequest other) { + if (other + == com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 80010: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 80010 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. The resource name of the resource within a service.
+     * 
+ * + * + * string name = 10001 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @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 resource name of the resource within a service.
+     * 
+ * + * + * string name = 10001 [(.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_; + 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 resource name of the resource within a service.
+     * 
+ * + * + * string name = 10001 [(.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) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource name of the resource within a service.
+     * 
+ * + * + * string name = 10001 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource name of the resource within a service.
+     * 
+ * + * + * string name = 10001 [(.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) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + 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.saasplatform.saasservicemgmt.v1beta1.GetRolloutRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutRequest) + private static final com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutRequest(); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetRolloutRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.saasplatform.saasservicemgmt.v1beta1.GetRolloutRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/GetRolloutRequestOrBuilder.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/GetRolloutRequestOrBuilder.java new file mode 100644 index 000000000000..df5148b82f72 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/GetRolloutRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/rollouts_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +public interface GetRolloutRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the resource within a service.
+   * 
+ * + * + * string name = 10001 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The resource name of the resource within a service.
+   * 
+ * + * + * string name = 10001 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/GetSaasRequest.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/GetSaasRequest.java new file mode 100644 index 000000000000..f7154362658c --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/GetSaasRequest.java @@ -0,0 +1,660 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +/** + * + * + *
+ * The request structure for the GetSaas method.
+ * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.GetSaasRequest} + */ +public final class GetSaasRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.GetSaasRequest) + GetSaasRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use GetSaasRequest.newBuilder() to construct. + private GetSaasRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetSaasRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetSaasRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_GetSaasRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_GetSaasRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetSaasRequest.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetSaasRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 10001; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The resource name of the resource within a service.
+   * 
+ * + * + * string name = 10001 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + 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 resource name of the resource within a service.
+   * 
+ * + * + * string name = 10001 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10001, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10001, name_); + } + size += getUnknownFields().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.saasplatform.saasservicemgmt.v1beta1.GetSaasRequest)) { + return super.equals(obj); + } + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetSaasRequest other = + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetSaasRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetSaasRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetSaasRequest 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.saasplatform.saasservicemgmt.v1beta1.GetSaasRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetSaasRequest 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.saasplatform.saasservicemgmt.v1beta1.GetSaasRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetSaasRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetSaasRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetSaasRequest 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.saasplatform.saasservicemgmt.v1beta1.GetSaasRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetSaasRequest + 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.saasplatform.saasservicemgmt.v1beta1.GetSaasRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetSaasRequest 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.saasplatform.saasservicemgmt.v1beta1.GetSaasRequest 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 request structure for the GetSaas method.
+   * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.GetSaasRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.GetSaasRequest) + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetSaasRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_GetSaasRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_GetSaasRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetSaasRequest.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetSaasRequest.Builder.class); + } + + // Construct using + // com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetSaasRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_GetSaasRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetSaasRequest + getDefaultInstanceForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetSaasRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetSaasRequest build() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetSaasRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetSaasRequest buildPartial() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetSaasRequest result = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetSaasRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetSaasRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @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.saasplatform.saasservicemgmt.v1beta1.GetSaasRequest) { + return mergeFrom( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetSaasRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetSaasRequest other) { + if (other + == com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetSaasRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 80010: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 80010 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. The resource name of the resource within a service.
+     * 
+ * + * + * string name = 10001 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @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 resource name of the resource within a service.
+     * 
+ * + * + * string name = 10001 [(.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_; + 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 resource name of the resource within a service.
+     * 
+ * + * + * string name = 10001 [(.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) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource name of the resource within a service.
+     * 
+ * + * + * string name = 10001 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource name of the resource within a service.
+     * 
+ * + * + * string name = 10001 [(.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) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + 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.saasplatform.saasservicemgmt.v1beta1.GetSaasRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.saasplatform.saasservicemgmt.v1beta1.GetSaasRequest) + private static final com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetSaasRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetSaasRequest(); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetSaasRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSaasRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.saasplatform.saasservicemgmt.v1beta1.GetSaasRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/GetSaasRequestOrBuilder.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/GetSaasRequestOrBuilder.java new file mode 100644 index 000000000000..1faa24c2eb07 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/GetSaasRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +public interface GetSaasRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.saasplatform.saasservicemgmt.v1beta1.GetSaasRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the resource within a service.
+   * 
+ * + * + * string name = 10001 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The resource name of the resource within a service.
+   * 
+ * + * + * string name = 10001 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/GetTenantRequest.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/GetTenantRequest.java new file mode 100644 index 000000000000..a73f0c684799 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/GetTenantRequest.java @@ -0,0 +1,661 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +/** + * + * + *
+ * The request structure for the GetTenant method.
+ * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.GetTenantRequest} + */ +public final class GetTenantRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.GetTenantRequest) + GetTenantRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use GetTenantRequest.newBuilder() to construct. + private GetTenantRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetTenantRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetTenantRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_GetTenantRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_GetTenantRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetTenantRequest.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetTenantRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 10001; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The resource name of the resource within a service.
+   * 
+ * + * + * string name = 10001 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + 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 resource name of the resource within a service.
+   * 
+ * + * + * string name = 10001 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10001, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10001, name_); + } + size += getUnknownFields().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.saasplatform.saasservicemgmt.v1beta1.GetTenantRequest)) { + return super.equals(obj); + } + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetTenantRequest other = + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetTenantRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetTenantRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetTenantRequest 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.saasplatform.saasservicemgmt.v1beta1.GetTenantRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetTenantRequest 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.saasplatform.saasservicemgmt.v1beta1.GetTenantRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetTenantRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetTenantRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetTenantRequest 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.saasplatform.saasservicemgmt.v1beta1.GetTenantRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetTenantRequest + 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.saasplatform.saasservicemgmt.v1beta1.GetTenantRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetTenantRequest 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.saasplatform.saasservicemgmt.v1beta1.GetTenantRequest 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 request structure for the GetTenant method.
+   * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.GetTenantRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.GetTenantRequest) + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetTenantRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_GetTenantRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_GetTenantRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetTenantRequest.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetTenantRequest.Builder.class); + } + + // Construct using + // com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetTenantRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_GetTenantRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetTenantRequest + getDefaultInstanceForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetTenantRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetTenantRequest build() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetTenantRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetTenantRequest buildPartial() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetTenantRequest result = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetTenantRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetTenantRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @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.saasplatform.saasservicemgmt.v1beta1.GetTenantRequest) { + return mergeFrom( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetTenantRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetTenantRequest other) { + if (other + == com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetTenantRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 80010: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 80010 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. The resource name of the resource within a service.
+     * 
+ * + * + * string name = 10001 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @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 resource name of the resource within a service.
+     * 
+ * + * + * string name = 10001 [(.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_; + 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 resource name of the resource within a service.
+     * 
+ * + * + * string name = 10001 [(.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) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource name of the resource within a service.
+     * 
+ * + * + * string name = 10001 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource name of the resource within a service.
+     * 
+ * + * + * string name = 10001 [(.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) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + 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.saasplatform.saasservicemgmt.v1beta1.GetTenantRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.saasplatform.saasservicemgmt.v1beta1.GetTenantRequest) + private static final com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetTenantRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetTenantRequest(); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetTenantRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetTenantRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.saasplatform.saasservicemgmt.v1beta1.GetTenantRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/GetTenantRequestOrBuilder.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/GetTenantRequestOrBuilder.java new file mode 100644 index 000000000000..189cc6753671 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/GetTenantRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +public interface GetTenantRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.saasplatform.saasservicemgmt.v1beta1.GetTenantRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the resource within a service.
+   * 
+ * + * + * string name = 10001 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The resource name of the resource within a service.
+   * 
+ * + * + * string name = 10001 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/GetUnitKindRequest.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/GetUnitKindRequest.java new file mode 100644 index 000000000000..39539cd73945 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/GetUnitKindRequest.java @@ -0,0 +1,665 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +/** + * + * + *
+ * The request structure for the GetUnitKind method.
+ * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitKindRequest} + */ +public final class GetUnitKindRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitKindRequest) + GetUnitKindRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use GetUnitKindRequest.newBuilder() to construct. + private GetUnitKindRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetUnitKindRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetUnitKindRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_GetUnitKindRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_GetUnitKindRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitKindRequest.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitKindRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 10001; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The resource name of the resource within a service.
+   * 
+ * + * + * string name = 10001 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + 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 resource name of the resource within a service.
+   * 
+ * + * + * string name = 10001 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10001, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10001, name_); + } + size += getUnknownFields().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.saasplatform.saasservicemgmt.v1beta1.GetUnitKindRequest)) { + return super.equals(obj); + } + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitKindRequest other = + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitKindRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitKindRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitKindRequest 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.saasplatform.saasservicemgmt.v1beta1.GetUnitKindRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitKindRequest 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.saasplatform.saasservicemgmt.v1beta1.GetUnitKindRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitKindRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitKindRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitKindRequest 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.saasplatform.saasservicemgmt.v1beta1.GetUnitKindRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitKindRequest + 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.saasplatform.saasservicemgmt.v1beta1.GetUnitKindRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitKindRequest 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.saasplatform.saasservicemgmt.v1beta1.GetUnitKindRequest 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 request structure for the GetUnitKind method.
+   * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitKindRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitKindRequest) + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitKindRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_GetUnitKindRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_GetUnitKindRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitKindRequest.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitKindRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitKindRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_GetUnitKindRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitKindRequest + getDefaultInstanceForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitKindRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitKindRequest build() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitKindRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitKindRequest buildPartial() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitKindRequest result = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitKindRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitKindRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @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.saasplatform.saasservicemgmt.v1beta1.GetUnitKindRequest) { + return mergeFrom( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitKindRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitKindRequest other) { + if (other + == com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitKindRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 80010: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 80010 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. The resource name of the resource within a service.
+     * 
+ * + * + * string name = 10001 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @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 resource name of the resource within a service.
+     * 
+ * + * + * string name = 10001 [(.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_; + 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 resource name of the resource within a service.
+     * 
+ * + * + * string name = 10001 [(.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) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource name of the resource within a service.
+     * 
+ * + * + * string name = 10001 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource name of the resource within a service.
+     * 
+ * + * + * string name = 10001 [(.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) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + 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.saasplatform.saasservicemgmt.v1beta1.GetUnitKindRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitKindRequest) + private static final com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitKindRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitKindRequest(); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitKindRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetUnitKindRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.saasplatform.saasservicemgmt.v1beta1.GetUnitKindRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/GetUnitKindRequestOrBuilder.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/GetUnitKindRequestOrBuilder.java new file mode 100644 index 000000000000..2fdf32d74454 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/GetUnitKindRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +public interface GetUnitKindRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitKindRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the resource within a service.
+   * 
+ * + * + * string name = 10001 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The resource name of the resource within a service.
+   * 
+ * + * + * string name = 10001 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/GetUnitOperationRequest.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/GetUnitOperationRequest.java new file mode 100644 index 000000000000..5a0a52bf3e62 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/GetUnitOperationRequest.java @@ -0,0 +1,673 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +/** + * + * + *
+ * The request structure for the GetUnitOperation method.
+ * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitOperationRequest} + */ +public final class GetUnitOperationRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitOperationRequest) + GetUnitOperationRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use GetUnitOperationRequest.newBuilder() to construct. + private GetUnitOperationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetUnitOperationRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetUnitOperationRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_GetUnitOperationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_GetUnitOperationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitOperationRequest.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitOperationRequest.Builder + .class); + } + + public static final int NAME_FIELD_NUMBER = 10001; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The resource name of the resource within a service.
+   * 
+ * + * + * string name = 10001 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + 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 resource name of the resource within a service.
+   * 
+ * + * + * string name = 10001 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10001, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10001, name_); + } + size += getUnknownFields().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.saasplatform.saasservicemgmt.v1beta1.GetUnitOperationRequest)) { + return super.equals(obj); + } + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitOperationRequest other = + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitOperationRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitOperationRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitOperationRequest + 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.saasplatform.saasservicemgmt.v1beta1.GetUnitOperationRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitOperationRequest + 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.saasplatform.saasservicemgmt.v1beta1.GetUnitOperationRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitOperationRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitOperationRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitOperationRequest + 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.saasplatform.saasservicemgmt.v1beta1.GetUnitOperationRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitOperationRequest + 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.saasplatform.saasservicemgmt.v1beta1.GetUnitOperationRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitOperationRequest + 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.saasplatform.saasservicemgmt.v1beta1.GetUnitOperationRequest 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 request structure for the GetUnitOperation method.
+   * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitOperationRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitOperationRequest) + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitOperationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_GetUnitOperationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_GetUnitOperationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitOperationRequest.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitOperationRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitOperationRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_GetUnitOperationRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitOperationRequest + getDefaultInstanceForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitOperationRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitOperationRequest build() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitOperationRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitOperationRequest + buildPartial() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitOperationRequest result = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitOperationRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitOperationRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @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.saasplatform.saasservicemgmt.v1beta1.GetUnitOperationRequest) { + return mergeFrom( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitOperationRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitOperationRequest other) { + if (other + == com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitOperationRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 80010: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 80010 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. The resource name of the resource within a service.
+     * 
+ * + * + * string name = 10001 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @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 resource name of the resource within a service.
+     * 
+ * + * + * string name = 10001 [(.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_; + 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 resource name of the resource within a service.
+     * 
+ * + * + * string name = 10001 [(.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) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource name of the resource within a service.
+     * 
+ * + * + * string name = 10001 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource name of the resource within a service.
+     * 
+ * + * + * string name = 10001 [(.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) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + 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.saasplatform.saasservicemgmt.v1beta1.GetUnitOperationRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitOperationRequest) + private static final com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitOperationRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitOperationRequest(); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitOperationRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetUnitOperationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.saasplatform.saasservicemgmt.v1beta1.GetUnitOperationRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/GetUnitOperationRequestOrBuilder.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/GetUnitOperationRequestOrBuilder.java new file mode 100644 index 000000000000..ce9f2ee76a62 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/GetUnitOperationRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +public interface GetUnitOperationRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitOperationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the resource within a service.
+   * 
+ * + * + * string name = 10001 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The resource name of the resource within a service.
+   * 
+ * + * + * string name = 10001 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/GetUnitRequest.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/GetUnitRequest.java new file mode 100644 index 000000000000..bb679360591b --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/GetUnitRequest.java @@ -0,0 +1,660 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +/** + * + * + *
+ * The request structure for the GetUnit method.
+ * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitRequest} + */ +public final class GetUnitRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitRequest) + GetUnitRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use GetUnitRequest.newBuilder() to construct. + private GetUnitRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetUnitRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetUnitRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_GetUnitRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_GetUnitRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitRequest.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 10001; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The resource name of the resource within a service.
+   * 
+ * + * + * string name = 10001 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + 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 resource name of the resource within a service.
+   * 
+ * + * + * string name = 10001 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10001, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10001, name_); + } + size += getUnknownFields().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.saasplatform.saasservicemgmt.v1beta1.GetUnitRequest)) { + return super.equals(obj); + } + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitRequest other = + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitRequest 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.saasplatform.saasservicemgmt.v1beta1.GetUnitRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitRequest 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.saasplatform.saasservicemgmt.v1beta1.GetUnitRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitRequest 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.saasplatform.saasservicemgmt.v1beta1.GetUnitRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitRequest + 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.saasplatform.saasservicemgmt.v1beta1.GetUnitRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitRequest 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.saasplatform.saasservicemgmt.v1beta1.GetUnitRequest 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 request structure for the GetUnit method.
+   * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitRequest) + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_GetUnitRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_GetUnitRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitRequest.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitRequest.Builder.class); + } + + // Construct using + // com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_GetUnitRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitRequest + getDefaultInstanceForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitRequest build() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitRequest buildPartial() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitRequest result = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @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.saasplatform.saasservicemgmt.v1beta1.GetUnitRequest) { + return mergeFrom( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitRequest other) { + if (other + == com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 80010: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 80010 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. The resource name of the resource within a service.
+     * 
+ * + * + * string name = 10001 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @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 resource name of the resource within a service.
+     * 
+ * + * + * string name = 10001 [(.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_; + 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 resource name of the resource within a service.
+     * 
+ * + * + * string name = 10001 [(.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) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource name of the resource within a service.
+     * 
+ * + * + * string name = 10001 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource name of the resource within a service.
+     * 
+ * + * + * string name = 10001 [(.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) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + 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.saasplatform.saasservicemgmt.v1beta1.GetUnitRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitRequest) + private static final com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitRequest(); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetUnitRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.saasplatform.saasservicemgmt.v1beta1.GetUnitRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/GetUnitRequestOrBuilder.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/GetUnitRequestOrBuilder.java new file mode 100644 index 000000000000..7549c5b46dc3 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/GetUnitRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +public interface GetUnitRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the resource within a service.
+   * 
+ * + * + * string name = 10001 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The resource name of the resource within a service.
+   * 
+ * + * + * string name = 10001 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ListReleasesRequest.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ListReleasesRequest.java new file mode 100644 index 000000000000..583b8066e7d2 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ListReleasesRequest.java @@ -0,0 +1,1338 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +/** + * + * + *
+ * The request structure for the ListReleases method.
+ * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesRequest} + */ +public final class ListReleasesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesRequest) + ListReleasesRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListReleasesRequest.newBuilder() to construct. + private ListReleasesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListReleasesRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListReleasesRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListReleasesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListReleasesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesRequest.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesRequest.Builder + .class); + } + + public static final int PARENT_FIELD_NUMBER = 10006; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The parent of the release.
+   * 
+ * + * + * string parent = 10006 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + 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 of the release.
+   * 
+ * + * + * string parent = 10006 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + 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 = 10505; + private int pageSize_ = 0; + + /** + * + * + *
+   * The maximum number of releases to send per page.
+   * 
+ * + * int32 page_size = 10505; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 10506; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
+   * The page token: If the next_page_token from a previous response
+   * is provided, this request will send the subsequent page.
+   * 
+ * + * string page_token = 10506; + * + * @return The pageToken. + */ + @java.lang.Override + 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; + } + } + + /** + * + * + *
+   * The page token: If the next_page_token from a previous response
+   * is provided, this request will send the subsequent page.
+   * 
+ * + * string page_token = 10506; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + 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 = 10507; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
+   * Filter the list as specified in https://google.aip.dev/160.
+   * 
+ * + * string filter = 10507; + * + * @return The filter. + */ + @java.lang.Override + 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; + } + } + + /** + * + * + *
+   * Filter the list as specified in https://google.aip.dev/160.
+   * 
+ * + * string filter = 10507; + * + * @return The bytes for filter. + */ + @java.lang.Override + 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 = 10508; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
+   * Order results as specified in https://google.aip.dev/132.
+   * 
+ * + * string order_by = 10508; + * + * @return The orderBy. + */ + @java.lang.Override + 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; + } + } + + /** + * + * + *
+   * Order results as specified in https://google.aip.dev/132.
+   * 
+ * + * string order_by = 10508; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10006, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(10505, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10506, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10507, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10508, orderBy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10006, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(10505, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10506, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10507, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10508, orderBy_); + } + size += getUnknownFields().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.saasplatform.saasservicemgmt.v1beta1.ListReleasesRequest)) { + return super.equals(obj); + } + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesRequest other = + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesRequest) 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesRequest 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.saasplatform.saasservicemgmt.v1beta1.ListReleasesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesRequest 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.saasplatform.saasservicemgmt.v1beta1.ListReleasesRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesRequest 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.saasplatform.saasservicemgmt.v1beta1.ListReleasesRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesRequest + 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.saasplatform.saasservicemgmt.v1beta1.ListReleasesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesRequest 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.saasplatform.saasservicemgmt.v1beta1.ListReleasesRequest 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 request structure for the ListReleases method.
+   * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesRequest) + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListReleasesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListReleasesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesRequest.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListReleasesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesRequest + getDefaultInstanceForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesRequest build() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesRequest + buildPartial() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesRequest result = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + } + + @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.saasplatform.saasservicemgmt.v1beta1.ListReleasesRequest) { + return mergeFrom( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesRequest other) { + if (other + == com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 80050: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 80050 + case 84040: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 84040 + case 84050: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 84050 + case 84058: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 84058 + case 84066: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 84066 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. The parent of the release.
+     * 
+ * + * + * string parent = 10006 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @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 of the release.
+     * 
+ * + * + * string parent = 10006 [(.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_; + 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 of the release.
+     * 
+ * + * + * string parent = 10006 [(.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) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent of the release.
+     * 
+ * + * + * string parent = 10006 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent of the release.
+     * 
+ * + * + * string parent = 10006 [(.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) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
+     * The maximum number of releases to send per page.
+     * 
+ * + * int32 page_size = 10505; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
+     * The maximum number of releases to send per page.
+     * 
+ * + * int32 page_size = 10505; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * The maximum number of releases to send per page.
+     * 
+ * + * int32 page_size = 10505; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
+     * The page token: If the next_page_token from a previous response
+     * is provided, this request will send the subsequent page.
+     * 
+ * + * string page_token = 10506; + * + * @return The pageToken. + */ + 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; + } + } + + /** + * + * + *
+     * The page token: If the next_page_token from a previous response
+     * is provided, this request will send the subsequent page.
+     * 
+ * + * string page_token = 10506; + * + * @return The bytes for pageToken. + */ + 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; + } + } + + /** + * + * + *
+     * The page token: If the next_page_token from a previous response
+     * is provided, this request will send the subsequent page.
+     * 
+ * + * string page_token = 10506; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * The page token: If the next_page_token from a previous response
+     * is provided, this request will send the subsequent page.
+     * 
+ * + * string page_token = 10506; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * The page token: If the next_page_token from a previous response
+     * is provided, this request will send the subsequent page.
+     * 
+ * + * string page_token = 10506; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
+     * Filter the list as specified in https://google.aip.dev/160.
+     * 
+ * + * string filter = 10507; + * + * @return The filter. + */ + 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; + } + } + + /** + * + * + *
+     * Filter the list as specified in https://google.aip.dev/160.
+     * 
+ * + * string filter = 10507; + * + * @return The bytes for filter. + */ + 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; + } + } + + /** + * + * + *
+     * Filter the list as specified in https://google.aip.dev/160.
+     * 
+ * + * string filter = 10507; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Filter the list as specified in https://google.aip.dev/160.
+     * 
+ * + * string filter = 10507; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Filter the list as specified in https://google.aip.dev/160.
+     * 
+ * + * string filter = 10507; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
+     * Order results as specified in https://google.aip.dev/132.
+     * 
+ * + * string order_by = 10508; + * + * @return The orderBy. + */ + 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; + } + } + + /** + * + * + *
+     * Order results as specified in https://google.aip.dev/132.
+     * 
+ * + * string order_by = 10508; + * + * @return The bytes for orderBy. + */ + 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; + } + } + + /** + * + * + *
+     * Order results as specified in https://google.aip.dev/132.
+     * 
+ * + * string order_by = 10508; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Order results as specified in https://google.aip.dev/132.
+     * 
+ * + * string order_by = 10508; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Order results as specified in https://google.aip.dev/132.
+     * 
+ * + * string order_by = 10508; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + 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.saasplatform.saasservicemgmt.v1beta1.ListReleasesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesRequest) + private static final com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesRequest(); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListReleasesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.saasplatform.saasservicemgmt.v1beta1.ListReleasesRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ListReleasesRequestOrBuilder.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ListReleasesRequestOrBuilder.java new file mode 100644 index 000000000000..1eb57a461d4a --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ListReleasesRequestOrBuilder.java @@ -0,0 +1,149 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +public interface ListReleasesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent of the release.
+   * 
+ * + * + * string parent = 10006 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The parent of the release.
+   * 
+ * + * + * string parent = 10006 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * The maximum number of releases to send per page.
+   * 
+ * + * int32 page_size = 10505; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * The page token: If the next_page_token from a previous response
+   * is provided, this request will send the subsequent page.
+   * 
+ * + * string page_token = 10506; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
+   * The page token: If the next_page_token from a previous response
+   * is provided, this request will send the subsequent page.
+   * 
+ * + * string page_token = 10506; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Filter the list as specified in https://google.aip.dev/160.
+   * 
+ * + * string filter = 10507; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
+   * Filter the list as specified in https://google.aip.dev/160.
+   * 
+ * + * string filter = 10507; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Order results as specified in https://google.aip.dev/132.
+   * 
+ * + * string order_by = 10508; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
+   * Order results as specified in https://google.aip.dev/132.
+   * 
+ * + * string order_by = 10508; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ListReleasesResponse.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ListReleasesResponse.java new file mode 100644 index 000000000000..1429d1406813 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ListReleasesResponse.java @@ -0,0 +1,1522 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +/** + * + * + *
+ * The response structure for the ListReleases method.
+ * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesResponse} + */ +public final class ListReleasesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesResponse) + ListReleasesResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListReleasesResponse.newBuilder() to construct. + private ListReleasesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListReleasesResponse() { + releases_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListReleasesResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListReleasesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListReleasesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesResponse.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesResponse.Builder + .class); + } + + public static final int RELEASES_FIELD_NUMBER = 10509; + + @SuppressWarnings("serial") + private java.util.List releases_; + + /** + * + * + *
+   * The resulting releases.
+   * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Release releases = 10509; + * + */ + @java.lang.Override + public java.util.List + getReleasesList() { + return releases_; + } + + /** + * + * + *
+   * The resulting releases.
+   * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Release releases = 10509; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ReleaseOrBuilder> + getReleasesOrBuilderList() { + return releases_; + } + + /** + * + * + *
+   * The resulting releases.
+   * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Release releases = 10509; + * + */ + @java.lang.Override + public int getReleasesCount() { + return releases_.size(); + } + + /** + * + * + *
+   * The resulting releases.
+   * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Release releases = 10509; + * + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release getReleases(int index) { + return releases_.get(index); + } + + /** + * + * + *
+   * The resulting releases.
+   * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Release releases = 10509; + * + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ReleaseOrBuilder + getReleasesOrBuilder(int index) { + return releases_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 10510; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * If present, the next page token can be provided to a subsequent
+   * ListReleases call to list the next page.
+   * If empty, there are no more pages.
+   * 
+ * + * string next_page_token = 10510; + * + * @return The nextPageToken. + */ + @java.lang.Override + 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; + } + } + + /** + * + * + *
+   * If present, the next page token can be provided to a subsequent
+   * ListReleases call to list the next page.
+   * If empty, there are no more pages.
+   * 
+ * + * string next_page_token = 10510; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + 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_FIELD_NUMBER = 10511; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 10511; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 10511; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 10511; + * + * @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); + } + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 10511; + * + * @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 < releases_.size(); i++) { + output.writeMessage(10509, releases_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10510, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10511, unreachable_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < releases_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10509, releases_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10510, nextPageToken_); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 3 * getUnreachableList().size(); + } + size += getUnknownFields().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.saasplatform.saasservicemgmt.v1beta1.ListReleasesResponse)) { + return super.equals(obj); + } + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesResponse other = + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesResponse) obj; + + if (!getReleasesList().equals(other.getReleasesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getReleasesCount() > 0) { + hash = (37 * hash) + RELEASES_FIELD_NUMBER; + hash = (53 * hash) + getReleasesList().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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesResponse + 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.saasplatform.saasservicemgmt.v1beta1.ListReleasesResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesResponse + 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.saasplatform.saasservicemgmt.v1beta1.ListReleasesResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesResponse + 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.saasplatform.saasservicemgmt.v1beta1.ListReleasesResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesResponse + 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.saasplatform.saasservicemgmt.v1beta1.ListReleasesResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesResponse + 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.saasplatform.saasservicemgmt.v1beta1.ListReleasesResponse 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 response structure for the ListReleases method.
+   * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesResponse) + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListReleasesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListReleasesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesResponse.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesResponse.Builder + .class); + } + + // Construct using + // com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (releasesBuilder_ == null) { + releases_ = java.util.Collections.emptyList(); + } else { + releases_ = null; + releasesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListReleasesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesResponse + getDefaultInstanceForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesResponse build() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesResponse + buildPartial() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesResponse result = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesResponse result) { + if (releasesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + releases_ = java.util.Collections.unmodifiableList(releases_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.releases_ = releases_; + } else { + result.releases_ = releasesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } + } + + @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.saasplatform.saasservicemgmt.v1beta1.ListReleasesResponse) { + return mergeFrom( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesResponse other) { + if (other + == com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesResponse + .getDefaultInstance()) return this; + if (releasesBuilder_ == null) { + if (!other.releases_.isEmpty()) { + if (releases_.isEmpty()) { + releases_ = other.releases_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureReleasesIsMutable(); + releases_.addAll(other.releases_); + } + onChanged(); + } + } else { + if (!other.releases_.isEmpty()) { + if (releasesBuilder_.isEmpty()) { + releasesBuilder_.dispose(); + releasesBuilder_ = null; + releases_ = other.releases_; + bitField0_ = (bitField0_ & ~0x00000001); + releasesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getReleasesFieldBuilder() + : null; + } else { + releasesBuilder_.addAllMessages(other.releases_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ |= 0x00000004; + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 84074: + { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release m = + input.readMessage( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.parser(), + extensionRegistry); + if (releasesBuilder_ == null) { + ensureReleasesIsMutable(); + releases_.add(m); + } else { + releasesBuilder_.addMessage(m); + } + break; + } // case 84074 + case 84082: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 84082 + case 84090: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 84090 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List + releases_ = java.util.Collections.emptyList(); + + private void ensureReleasesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + releases_ = + new java.util.ArrayList( + releases_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ReleaseOrBuilder> + releasesBuilder_; + + /** + * + * + *
+     * The resulting releases.
+     * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Release releases = 10509; + * + */ + public java.util.List + getReleasesList() { + if (releasesBuilder_ == null) { + return java.util.Collections.unmodifiableList(releases_); + } else { + return releasesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * The resulting releases.
+     * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Release releases = 10509; + * + */ + public int getReleasesCount() { + if (releasesBuilder_ == null) { + return releases_.size(); + } else { + return releasesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * The resulting releases.
+     * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Release releases = 10509; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release getReleases(int index) { + if (releasesBuilder_ == null) { + return releases_.get(index); + } else { + return releasesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * The resulting releases.
+     * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Release releases = 10509; + * + */ + public Builder setReleases( + int index, com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release value) { + if (releasesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureReleasesIsMutable(); + releases_.set(index, value); + onChanged(); + } else { + releasesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The resulting releases.
+     * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Release releases = 10509; + * + */ + public Builder setReleases( + int index, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.Builder builderForValue) { + if (releasesBuilder_ == null) { + ensureReleasesIsMutable(); + releases_.set(index, builderForValue.build()); + onChanged(); + } else { + releasesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The resulting releases.
+     * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Release releases = 10509; + * + */ + public Builder addReleases( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release value) { + if (releasesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureReleasesIsMutable(); + releases_.add(value); + onChanged(); + } else { + releasesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * The resulting releases.
+     * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Release releases = 10509; + * + */ + public Builder addReleases( + int index, com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release value) { + if (releasesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureReleasesIsMutable(); + releases_.add(index, value); + onChanged(); + } else { + releasesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The resulting releases.
+     * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Release releases = 10509; + * + */ + public Builder addReleases( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.Builder builderForValue) { + if (releasesBuilder_ == null) { + ensureReleasesIsMutable(); + releases_.add(builderForValue.build()); + onChanged(); + } else { + releasesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The resulting releases.
+     * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Release releases = 10509; + * + */ + public Builder addReleases( + int index, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.Builder builderForValue) { + if (releasesBuilder_ == null) { + ensureReleasesIsMutable(); + releases_.add(index, builderForValue.build()); + onChanged(); + } else { + releasesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The resulting releases.
+     * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Release releases = 10509; + * + */ + public Builder addAllReleases( + java.lang.Iterable + values) { + if (releasesBuilder_ == null) { + ensureReleasesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, releases_); + onChanged(); + } else { + releasesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * The resulting releases.
+     * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Release releases = 10509; + * + */ + public Builder clearReleases() { + if (releasesBuilder_ == null) { + releases_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + releasesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The resulting releases.
+     * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Release releases = 10509; + * + */ + public Builder removeReleases(int index) { + if (releasesBuilder_ == null) { + ensureReleasesIsMutable(); + releases_.remove(index); + onChanged(); + } else { + releasesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * The resulting releases.
+     * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Release releases = 10509; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.Builder getReleasesBuilder( + int index) { + return getReleasesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * The resulting releases.
+     * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Release releases = 10509; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ReleaseOrBuilder + getReleasesOrBuilder(int index) { + if (releasesBuilder_ == null) { + return releases_.get(index); + } else { + return releasesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * The resulting releases.
+     * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Release releases = 10509; + * + */ + public java.util.List< + ? extends com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ReleaseOrBuilder> + getReleasesOrBuilderList() { + if (releasesBuilder_ != null) { + return releasesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(releases_); + } + } + + /** + * + * + *
+     * The resulting releases.
+     * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Release releases = 10509; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.Builder + addReleasesBuilder() { + return getReleasesFieldBuilder() + .addBuilder( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.getDefaultInstance()); + } + + /** + * + * + *
+     * The resulting releases.
+     * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Release releases = 10509; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.Builder addReleasesBuilder( + int index) { + return getReleasesFieldBuilder() + .addBuilder( + index, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.getDefaultInstance()); + } + + /** + * + * + *
+     * The resulting releases.
+     * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Release releases = 10509; + * + */ + public java.util.List + getReleasesBuilderList() { + return getReleasesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ReleaseOrBuilder> + getReleasesFieldBuilder() { + if (releasesBuilder_ == null) { + releasesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ReleaseOrBuilder>( + releases_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + releases_ = null; + } + return releasesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * If present, the next page token can be provided to a subsequent
+     * ListReleases call to list the next page.
+     * If empty, there are no more pages.
+     * 
+ * + * string next_page_token = 10510; + * + * @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; + } + } + + /** + * + * + *
+     * If present, the next page token can be provided to a subsequent
+     * ListReleases call to list the next page.
+     * If empty, there are no more pages.
+     * 
+ * + * string next_page_token = 10510; + * + * @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; + } + } + + /** + * + * + *
+     * If present, the next page token can be provided to a subsequent
+     * ListReleases call to list the next page.
+     * If empty, there are no more pages.
+     * 
+ * + * string next_page_token = 10510; + * + * @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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * If present, the next page token can be provided to a subsequent
+     * ListReleases call to list the next page.
+     * If empty, there are no more pages.
+     * 
+ * + * string next_page_token = 10510; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * If present, the next page token can be provided to a subsequent
+     * ListReleases call to list the next page.
+     * If empty, there are no more pages.
+     * 
+ * + * string next_page_token = 10510; + * + * @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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureUnreachableIsMutable() { + if (!unreachable_.isModifiable()) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 10511; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 10511; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 10511; + * + * @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); + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 10511; + * + * @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); + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 10511; + * + * @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); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 10511; + * + * @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); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 10511; + * + * @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_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 10511; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 10511; + * + * @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); + bitField0_ |= 0x00000004; + 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.saasplatform.saasservicemgmt.v1beta1.ListReleasesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesResponse) + private static final com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesResponse(); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListReleasesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.saasplatform.saasservicemgmt.v1beta1.ListReleasesResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ListReleasesResponseOrBuilder.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ListReleasesResponseOrBuilder.java new file mode 100644 index 000000000000..3ba9aa9d1b82 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ListReleasesResponseOrBuilder.java @@ -0,0 +1,172 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +public interface ListReleasesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The resulting releases.
+   * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Release releases = 10509; + * + */ + java.util.List getReleasesList(); + + /** + * + * + *
+   * The resulting releases.
+   * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Release releases = 10509; + * + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release getReleases(int index); + + /** + * + * + *
+   * The resulting releases.
+   * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Release releases = 10509; + * + */ + int getReleasesCount(); + + /** + * + * + *
+   * The resulting releases.
+   * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Release releases = 10509; + * + */ + java.util.List + getReleasesOrBuilderList(); + + /** + * + * + *
+   * The resulting releases.
+   * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Release releases = 10509; + * + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ReleaseOrBuilder getReleasesOrBuilder( + int index); + + /** + * + * + *
+   * If present, the next page token can be provided to a subsequent
+   * ListReleases call to list the next page.
+   * If empty, there are no more pages.
+   * 
+ * + * string next_page_token = 10510; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
+   * If present, the next page token can be provided to a subsequent
+   * ListReleases call to list the next page.
+   * If empty, there are no more pages.
+   * 
+ * + * string next_page_token = 10510; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 10511; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 10511; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 10511; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 10511; + * + * @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/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ListRolloutKindsRequest.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ListRolloutKindsRequest.java new file mode 100644 index 000000000000..8e85626aa951 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ListRolloutKindsRequest.java @@ -0,0 +1,1344 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/rollouts_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +/** + * + * + *
+ * The request structure for the ListRolloutKinds method.
+ * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsRequest} + */ +public final class ListRolloutKindsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsRequest) + ListRolloutKindsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListRolloutKindsRequest.newBuilder() to construct. + private ListRolloutKindsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListRolloutKindsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListRolloutKindsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListRolloutKindsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListRolloutKindsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsRequest.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsRequest.Builder + .class); + } + + public static final int PARENT_FIELD_NUMBER = 10006; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The parent of the rollout kind.
+   * 
+ * + * + * string parent = 10006 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + 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 of the rollout kind.
+   * 
+ * + * + * string parent = 10006 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + 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 = 10505; + private int pageSize_ = 0; + + /** + * + * + *
+   * The maximum number of rollout kinds to send per page.
+   * 
+ * + * int32 page_size = 10505; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 10506; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
+   * The page token: If the next_page_token from a previous response
+   * is provided, this request will send the subsequent page.
+   * 
+ * + * string page_token = 10506; + * + * @return The pageToken. + */ + @java.lang.Override + 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; + } + } + + /** + * + * + *
+   * The page token: If the next_page_token from a previous response
+   * is provided, this request will send the subsequent page.
+   * 
+ * + * string page_token = 10506; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + 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 = 10507; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
+   * Filter the list as specified in https://google.aip.dev/160.
+   * 
+ * + * string filter = 10507; + * + * @return The filter. + */ + @java.lang.Override + 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; + } + } + + /** + * + * + *
+   * Filter the list as specified in https://google.aip.dev/160.
+   * 
+ * + * string filter = 10507; + * + * @return The bytes for filter. + */ + @java.lang.Override + 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 = 10508; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
+   * Order results as specified in https://google.aip.dev/132.
+   * 
+ * + * string order_by = 10508; + * + * @return The orderBy. + */ + @java.lang.Override + 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; + } + } + + /** + * + * + *
+   * Order results as specified in https://google.aip.dev/132.
+   * 
+ * + * string order_by = 10508; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10006, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(10505, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10506, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10507, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10508, orderBy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10006, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(10505, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10506, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10507, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10508, orderBy_); + } + size += getUnknownFields().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.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsRequest)) { + return super.equals(obj); + } + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsRequest other = + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsRequest) 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsRequest + 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.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsRequest + 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.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsRequest + 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.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsRequest + 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.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsRequest + 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.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsRequest 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 request structure for the ListRolloutKinds method.
+   * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsRequest) + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListRolloutKindsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListRolloutKindsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsRequest.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListRolloutKindsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsRequest + getDefaultInstanceForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsRequest build() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsRequest + buildPartial() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsRequest result = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + } + + @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.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsRequest) { + return mergeFrom( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsRequest other) { + if (other + == com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 80050: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 80050 + case 84040: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 84040 + case 84050: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 84050 + case 84058: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 84058 + case 84066: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 84066 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. The parent of the rollout kind.
+     * 
+ * + * + * string parent = 10006 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @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 of the rollout kind.
+     * 
+ * + * + * string parent = 10006 [(.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_; + 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 of the rollout kind.
+     * 
+ * + * + * string parent = 10006 [(.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) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent of the rollout kind.
+     * 
+ * + * + * string parent = 10006 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent of the rollout kind.
+     * 
+ * + * + * string parent = 10006 [(.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) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
+     * The maximum number of rollout kinds to send per page.
+     * 
+ * + * int32 page_size = 10505; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
+     * The maximum number of rollout kinds to send per page.
+     * 
+ * + * int32 page_size = 10505; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * The maximum number of rollout kinds to send per page.
+     * 
+ * + * int32 page_size = 10505; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
+     * The page token: If the next_page_token from a previous response
+     * is provided, this request will send the subsequent page.
+     * 
+ * + * string page_token = 10506; + * + * @return The pageToken. + */ + 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; + } + } + + /** + * + * + *
+     * The page token: If the next_page_token from a previous response
+     * is provided, this request will send the subsequent page.
+     * 
+ * + * string page_token = 10506; + * + * @return The bytes for pageToken. + */ + 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; + } + } + + /** + * + * + *
+     * The page token: If the next_page_token from a previous response
+     * is provided, this request will send the subsequent page.
+     * 
+ * + * string page_token = 10506; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * The page token: If the next_page_token from a previous response
+     * is provided, this request will send the subsequent page.
+     * 
+ * + * string page_token = 10506; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * The page token: If the next_page_token from a previous response
+     * is provided, this request will send the subsequent page.
+     * 
+ * + * string page_token = 10506; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
+     * Filter the list as specified in https://google.aip.dev/160.
+     * 
+ * + * string filter = 10507; + * + * @return The filter. + */ + 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; + } + } + + /** + * + * + *
+     * Filter the list as specified in https://google.aip.dev/160.
+     * 
+ * + * string filter = 10507; + * + * @return The bytes for filter. + */ + 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; + } + } + + /** + * + * + *
+     * Filter the list as specified in https://google.aip.dev/160.
+     * 
+ * + * string filter = 10507; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Filter the list as specified in https://google.aip.dev/160.
+     * 
+ * + * string filter = 10507; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Filter the list as specified in https://google.aip.dev/160.
+     * 
+ * + * string filter = 10507; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
+     * Order results as specified in https://google.aip.dev/132.
+     * 
+ * + * string order_by = 10508; + * + * @return The orderBy. + */ + 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; + } + } + + /** + * + * + *
+     * Order results as specified in https://google.aip.dev/132.
+     * 
+ * + * string order_by = 10508; + * + * @return The bytes for orderBy. + */ + 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; + } + } + + /** + * + * + *
+     * Order results as specified in https://google.aip.dev/132.
+     * 
+ * + * string order_by = 10508; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Order results as specified in https://google.aip.dev/132.
+     * 
+ * + * string order_by = 10508; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Order results as specified in https://google.aip.dev/132.
+     * 
+ * + * string order_by = 10508; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + 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.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsRequest) + private static final com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsRequest(); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListRolloutKindsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ListRolloutKindsRequestOrBuilder.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ListRolloutKindsRequestOrBuilder.java new file mode 100644 index 000000000000..76fce79eb8f3 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ListRolloutKindsRequestOrBuilder.java @@ -0,0 +1,149 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/rollouts_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +public interface ListRolloutKindsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent of the rollout kind.
+   * 
+ * + * + * string parent = 10006 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The parent of the rollout kind.
+   * 
+ * + * + * string parent = 10006 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * The maximum number of rollout kinds to send per page.
+   * 
+ * + * int32 page_size = 10505; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * The page token: If the next_page_token from a previous response
+   * is provided, this request will send the subsequent page.
+   * 
+ * + * string page_token = 10506; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
+   * The page token: If the next_page_token from a previous response
+   * is provided, this request will send the subsequent page.
+   * 
+ * + * string page_token = 10506; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Filter the list as specified in https://google.aip.dev/160.
+   * 
+ * + * string filter = 10507; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
+   * Filter the list as specified in https://google.aip.dev/160.
+   * 
+ * + * string filter = 10507; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Order results as specified in https://google.aip.dev/132.
+   * 
+ * + * string order_by = 10508; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
+   * Order results as specified in https://google.aip.dev/132.
+   * 
+ * + * string order_by = 10508; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ListRolloutKindsResponse.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ListRolloutKindsResponse.java new file mode 100644 index 000000000000..62d8fe0afb4a --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ListRolloutKindsResponse.java @@ -0,0 +1,1555 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/rollouts_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +/** + * + * + *
+ * The response structure for the ListRolloutKinds method.
+ * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsResponse} + */ +public final class ListRolloutKindsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsResponse) + ListRolloutKindsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListRolloutKindsResponse.newBuilder() to construct. + private ListRolloutKindsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListRolloutKindsResponse() { + rolloutKinds_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListRolloutKindsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListRolloutKindsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListRolloutKindsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsResponse.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsResponse.Builder + .class); + } + + public static final int ROLLOUT_KINDS_FIELD_NUMBER = 10509; + + @SuppressWarnings("serial") + private java.util.List + rolloutKinds_; + + /** + * + * + *
+   * The resulting rollout kinds.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind rollout_kinds = 10509; + * + */ + @java.lang.Override + public java.util.List + getRolloutKindsList() { + return rolloutKinds_; + } + + /** + * + * + *
+   * The resulting rollout kinds.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind rollout_kinds = 10509; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKindOrBuilder> + getRolloutKindsOrBuilderList() { + return rolloutKinds_; + } + + /** + * + * + *
+   * The resulting rollout kinds.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind rollout_kinds = 10509; + * + */ + @java.lang.Override + public int getRolloutKindsCount() { + return rolloutKinds_.size(); + } + + /** + * + * + *
+   * The resulting rollout kinds.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind rollout_kinds = 10509; + * + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind getRolloutKinds( + int index) { + return rolloutKinds_.get(index); + } + + /** + * + * + *
+   * The resulting rollout kinds.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind rollout_kinds = 10509; + * + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKindOrBuilder + getRolloutKindsOrBuilder(int index) { + return rolloutKinds_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 10510; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * If present, the next page token can be provided to a subsequent
+   * ListRolloutKinds call to list the next page.
+   * If empty, there are no more pages.
+   * 
+ * + * string next_page_token = 10510; + * + * @return The nextPageToken. + */ + @java.lang.Override + 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; + } + } + + /** + * + * + *
+   * If present, the next page token can be provided to a subsequent
+   * ListRolloutKinds call to list the next page.
+   * If empty, there are no more pages.
+   * 
+ * + * string next_page_token = 10510; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + 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_FIELD_NUMBER = 10511; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 10511; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 10511; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 10511; + * + * @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); + } + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 10511; + * + * @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 < rolloutKinds_.size(); i++) { + output.writeMessage(10509, rolloutKinds_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10510, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10511, unreachable_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < rolloutKinds_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10509, rolloutKinds_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10510, nextPageToken_); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 3 * getUnreachableList().size(); + } + size += getUnknownFields().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.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsResponse)) { + return super.equals(obj); + } + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsResponse other = + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsResponse) obj; + + if (!getRolloutKindsList().equals(other.getRolloutKindsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getRolloutKindsCount() > 0) { + hash = (37 * hash) + ROLLOUT_KINDS_FIELD_NUMBER; + hash = (53 * hash) + getRolloutKindsList().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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsResponse + 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.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsResponse + 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.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsResponse + 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.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsResponse + 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.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsResponse + 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.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsResponse 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 response structure for the ListRolloutKinds method.
+   * 
+ * + * Protobuf type {@code + * google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsResponse) + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListRolloutKindsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListRolloutKindsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsResponse.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsResponse.Builder + .class); + } + + // Construct using + // com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (rolloutKindsBuilder_ == null) { + rolloutKinds_ = java.util.Collections.emptyList(); + } else { + rolloutKinds_ = null; + rolloutKindsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListRolloutKindsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsResponse + getDefaultInstanceForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsResponse build() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsResponse + buildPartial() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsResponse result = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsResponse result) { + if (rolloutKindsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + rolloutKinds_ = java.util.Collections.unmodifiableList(rolloutKinds_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.rolloutKinds_ = rolloutKinds_; + } else { + result.rolloutKinds_ = rolloutKindsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } + } + + @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.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsResponse) { + return mergeFrom( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsResponse other) { + if (other + == com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsResponse + .getDefaultInstance()) return this; + if (rolloutKindsBuilder_ == null) { + if (!other.rolloutKinds_.isEmpty()) { + if (rolloutKinds_.isEmpty()) { + rolloutKinds_ = other.rolloutKinds_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureRolloutKindsIsMutable(); + rolloutKinds_.addAll(other.rolloutKinds_); + } + onChanged(); + } + } else { + if (!other.rolloutKinds_.isEmpty()) { + if (rolloutKindsBuilder_.isEmpty()) { + rolloutKindsBuilder_.dispose(); + rolloutKindsBuilder_ = null; + rolloutKinds_ = other.rolloutKinds_; + bitField0_ = (bitField0_ & ~0x00000001); + rolloutKindsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRolloutKindsFieldBuilder() + : null; + } else { + rolloutKindsBuilder_.addAllMessages(other.rolloutKinds_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ |= 0x00000004; + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 84074: + { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind m = + input.readMessage( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind.parser(), + extensionRegistry); + if (rolloutKindsBuilder_ == null) { + ensureRolloutKindsIsMutable(); + rolloutKinds_.add(m); + } else { + rolloutKindsBuilder_.addMessage(m); + } + break; + } // case 84074 + case 84082: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 84082 + case 84090: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 84090 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List + rolloutKinds_ = java.util.Collections.emptyList(); + + private void ensureRolloutKindsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + rolloutKinds_ = + new java.util.ArrayList< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind>(rolloutKinds_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKindOrBuilder> + rolloutKindsBuilder_; + + /** + * + * + *
+     * The resulting rollout kinds.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind rollout_kinds = 10509; + * + */ + public java.util.List + getRolloutKindsList() { + if (rolloutKindsBuilder_ == null) { + return java.util.Collections.unmodifiableList(rolloutKinds_); + } else { + return rolloutKindsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * The resulting rollout kinds.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind rollout_kinds = 10509; + * + */ + public int getRolloutKindsCount() { + if (rolloutKindsBuilder_ == null) { + return rolloutKinds_.size(); + } else { + return rolloutKindsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * The resulting rollout kinds.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind rollout_kinds = 10509; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind getRolloutKinds( + int index) { + if (rolloutKindsBuilder_ == null) { + return rolloutKinds_.get(index); + } else { + return rolloutKindsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * The resulting rollout kinds.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind rollout_kinds = 10509; + * + */ + public Builder setRolloutKinds( + int index, com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind value) { + if (rolloutKindsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRolloutKindsIsMutable(); + rolloutKinds_.set(index, value); + onChanged(); + } else { + rolloutKindsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The resulting rollout kinds.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind rollout_kinds = 10509; + * + */ + public Builder setRolloutKinds( + int index, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind.Builder builderForValue) { + if (rolloutKindsBuilder_ == null) { + ensureRolloutKindsIsMutable(); + rolloutKinds_.set(index, builderForValue.build()); + onChanged(); + } else { + rolloutKindsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The resulting rollout kinds.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind rollout_kinds = 10509; + * + */ + public Builder addRolloutKinds( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind value) { + if (rolloutKindsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRolloutKindsIsMutable(); + rolloutKinds_.add(value); + onChanged(); + } else { + rolloutKindsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * The resulting rollout kinds.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind rollout_kinds = 10509; + * + */ + public Builder addRolloutKinds( + int index, com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind value) { + if (rolloutKindsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRolloutKindsIsMutable(); + rolloutKinds_.add(index, value); + onChanged(); + } else { + rolloutKindsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The resulting rollout kinds.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind rollout_kinds = 10509; + * + */ + public Builder addRolloutKinds( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind.Builder builderForValue) { + if (rolloutKindsBuilder_ == null) { + ensureRolloutKindsIsMutable(); + rolloutKinds_.add(builderForValue.build()); + onChanged(); + } else { + rolloutKindsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The resulting rollout kinds.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind rollout_kinds = 10509; + * + */ + public Builder addRolloutKinds( + int index, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind.Builder builderForValue) { + if (rolloutKindsBuilder_ == null) { + ensureRolloutKindsIsMutable(); + rolloutKinds_.add(index, builderForValue.build()); + onChanged(); + } else { + rolloutKindsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The resulting rollout kinds.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind rollout_kinds = 10509; + * + */ + public Builder addAllRolloutKinds( + java.lang.Iterable< + ? extends com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind> + values) { + if (rolloutKindsBuilder_ == null) { + ensureRolloutKindsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, rolloutKinds_); + onChanged(); + } else { + rolloutKindsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * The resulting rollout kinds.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind rollout_kinds = 10509; + * + */ + public Builder clearRolloutKinds() { + if (rolloutKindsBuilder_ == null) { + rolloutKinds_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + rolloutKindsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The resulting rollout kinds.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind rollout_kinds = 10509; + * + */ + public Builder removeRolloutKinds(int index) { + if (rolloutKindsBuilder_ == null) { + ensureRolloutKindsIsMutable(); + rolloutKinds_.remove(index); + onChanged(); + } else { + rolloutKindsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * The resulting rollout kinds.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind rollout_kinds = 10509; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind.Builder + getRolloutKindsBuilder(int index) { + return getRolloutKindsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * The resulting rollout kinds.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind rollout_kinds = 10509; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKindOrBuilder + getRolloutKindsOrBuilder(int index) { + if (rolloutKindsBuilder_ == null) { + return rolloutKinds_.get(index); + } else { + return rolloutKindsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * The resulting rollout kinds.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind rollout_kinds = 10509; + * + */ + public java.util.List< + ? extends com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKindOrBuilder> + getRolloutKindsOrBuilderList() { + if (rolloutKindsBuilder_ != null) { + return rolloutKindsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(rolloutKinds_); + } + } + + /** + * + * + *
+     * The resulting rollout kinds.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind rollout_kinds = 10509; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind.Builder + addRolloutKindsBuilder() { + return getRolloutKindsFieldBuilder() + .addBuilder( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind + .getDefaultInstance()); + } + + /** + * + * + *
+     * The resulting rollout kinds.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind rollout_kinds = 10509; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind.Builder + addRolloutKindsBuilder(int index) { + return getRolloutKindsFieldBuilder() + .addBuilder( + index, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind + .getDefaultInstance()); + } + + /** + * + * + *
+     * The resulting rollout kinds.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind rollout_kinds = 10509; + * + */ + public java.util.List + getRolloutKindsBuilderList() { + return getRolloutKindsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKindOrBuilder> + getRolloutKindsFieldBuilder() { + if (rolloutKindsBuilder_ == null) { + rolloutKindsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKindOrBuilder>( + rolloutKinds_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + rolloutKinds_ = null; + } + return rolloutKindsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * If present, the next page token can be provided to a subsequent
+     * ListRolloutKinds call to list the next page.
+     * If empty, there are no more pages.
+     * 
+ * + * string next_page_token = 10510; + * + * @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; + } + } + + /** + * + * + *
+     * If present, the next page token can be provided to a subsequent
+     * ListRolloutKinds call to list the next page.
+     * If empty, there are no more pages.
+     * 
+ * + * string next_page_token = 10510; + * + * @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; + } + } + + /** + * + * + *
+     * If present, the next page token can be provided to a subsequent
+     * ListRolloutKinds call to list the next page.
+     * If empty, there are no more pages.
+     * 
+ * + * string next_page_token = 10510; + * + * @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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * If present, the next page token can be provided to a subsequent
+     * ListRolloutKinds call to list the next page.
+     * If empty, there are no more pages.
+     * 
+ * + * string next_page_token = 10510; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * If present, the next page token can be provided to a subsequent
+     * ListRolloutKinds call to list the next page.
+     * If empty, there are no more pages.
+     * 
+ * + * string next_page_token = 10510; + * + * @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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureUnreachableIsMutable() { + if (!unreachable_.isModifiable()) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 10511; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 10511; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 10511; + * + * @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); + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 10511; + * + * @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); + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 10511; + * + * @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); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 10511; + * + * @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); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 10511; + * + * @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_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 10511; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 10511; + * + * @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); + bitField0_ |= 0x00000004; + 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.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsResponse) + private static final com.google.cloud.saasplatform.saasservicemgmt.v1beta1 + .ListRolloutKindsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsResponse(); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListRolloutKindsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ListRolloutKindsResponseOrBuilder.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ListRolloutKindsResponseOrBuilder.java new file mode 100644 index 000000000000..9ada773dc28f --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ListRolloutKindsResponseOrBuilder.java @@ -0,0 +1,179 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/rollouts_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +public interface ListRolloutKindsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The resulting rollout kinds.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind rollout_kinds = 10509; + * + */ + java.util.List + getRolloutKindsList(); + + /** + * + * + *
+   * The resulting rollout kinds.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind rollout_kinds = 10509; + * + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind getRolloutKinds(int index); + + /** + * + * + *
+   * The resulting rollout kinds.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind rollout_kinds = 10509; + * + */ + int getRolloutKindsCount(); + + /** + * + * + *
+   * The resulting rollout kinds.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind rollout_kinds = 10509; + * + */ + java.util.List< + ? extends com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKindOrBuilder> + getRolloutKindsOrBuilderList(); + + /** + * + * + *
+   * The resulting rollout kinds.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind rollout_kinds = 10509; + * + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKindOrBuilder + getRolloutKindsOrBuilder(int index); + + /** + * + * + *
+   * If present, the next page token can be provided to a subsequent
+   * ListRolloutKinds call to list the next page.
+   * If empty, there are no more pages.
+   * 
+ * + * string next_page_token = 10510; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
+   * If present, the next page token can be provided to a subsequent
+   * ListRolloutKinds call to list the next page.
+   * If empty, there are no more pages.
+   * 
+ * + * string next_page_token = 10510; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 10511; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 10511; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 10511; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 10511; + * + * @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/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ListRolloutsRequest.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ListRolloutsRequest.java new file mode 100644 index 000000000000..2342976ccdcd --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ListRolloutsRequest.java @@ -0,0 +1,1338 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/rollouts_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +/** + * + * + *
+ * The request structure for the ListRollouts method.
+ * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsRequest} + */ +public final class ListRolloutsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsRequest) + ListRolloutsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListRolloutsRequest.newBuilder() to construct. + private ListRolloutsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListRolloutsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListRolloutsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListRolloutsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListRolloutsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsRequest.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsRequest.Builder + .class); + } + + public static final int PARENT_FIELD_NUMBER = 10006; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The parent of the rollout.
+   * 
+ * + * + * string parent = 10006 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + 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 of the rollout.
+   * 
+ * + * + * string parent = 10006 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + 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 = 10505; + private int pageSize_ = 0; + + /** + * + * + *
+   * The maximum number of rollouts to send per page.
+   * 
+ * + * int32 page_size = 10505; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 10506; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
+   * The page token: If the next_page_token from a previous response
+   * is provided, this request will send the subsequent page.
+   * 
+ * + * string page_token = 10506; + * + * @return The pageToken. + */ + @java.lang.Override + 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; + } + } + + /** + * + * + *
+   * The page token: If the next_page_token from a previous response
+   * is provided, this request will send the subsequent page.
+   * 
+ * + * string page_token = 10506; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + 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 = 10507; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
+   * Filter the list as specified in https://google.aip.dev/160.
+   * 
+ * + * string filter = 10507; + * + * @return The filter. + */ + @java.lang.Override + 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; + } + } + + /** + * + * + *
+   * Filter the list as specified in https://google.aip.dev/160.
+   * 
+ * + * string filter = 10507; + * + * @return The bytes for filter. + */ + @java.lang.Override + 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 = 10508; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
+   * Order results as specified in https://google.aip.dev/132.
+   * 
+ * + * string order_by = 10508; + * + * @return The orderBy. + */ + @java.lang.Override + 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; + } + } + + /** + * + * + *
+   * Order results as specified in https://google.aip.dev/132.
+   * 
+ * + * string order_by = 10508; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10006, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(10505, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10506, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10507, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10508, orderBy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10006, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(10505, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10506, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10507, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10508, orderBy_); + } + size += getUnknownFields().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.saasplatform.saasservicemgmt.v1beta1.ListRolloutsRequest)) { + return super.equals(obj); + } + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsRequest other = + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsRequest) 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsRequest 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.saasplatform.saasservicemgmt.v1beta1.ListRolloutsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsRequest 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.saasplatform.saasservicemgmt.v1beta1.ListRolloutsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsRequest 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.saasplatform.saasservicemgmt.v1beta1.ListRolloutsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsRequest + 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.saasplatform.saasservicemgmt.v1beta1.ListRolloutsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsRequest 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.saasplatform.saasservicemgmt.v1beta1.ListRolloutsRequest 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 request structure for the ListRollouts method.
+   * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsRequest) + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListRolloutsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListRolloutsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsRequest.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListRolloutsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsRequest + getDefaultInstanceForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsRequest build() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsRequest + buildPartial() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsRequest result = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + } + + @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.saasplatform.saasservicemgmt.v1beta1.ListRolloutsRequest) { + return mergeFrom( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsRequest other) { + if (other + == com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 80050: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 80050 + case 84040: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 84040 + case 84050: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 84050 + case 84058: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 84058 + case 84066: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 84066 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. The parent of the rollout.
+     * 
+ * + * + * string parent = 10006 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @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 of the rollout.
+     * 
+ * + * + * string parent = 10006 [(.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_; + 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 of the rollout.
+     * 
+ * + * + * string parent = 10006 [(.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) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent of the rollout.
+     * 
+ * + * + * string parent = 10006 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent of the rollout.
+     * 
+ * + * + * string parent = 10006 [(.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) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
+     * The maximum number of rollouts to send per page.
+     * 
+ * + * int32 page_size = 10505; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
+     * The maximum number of rollouts to send per page.
+     * 
+ * + * int32 page_size = 10505; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * The maximum number of rollouts to send per page.
+     * 
+ * + * int32 page_size = 10505; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
+     * The page token: If the next_page_token from a previous response
+     * is provided, this request will send the subsequent page.
+     * 
+ * + * string page_token = 10506; + * + * @return The pageToken. + */ + 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; + } + } + + /** + * + * + *
+     * The page token: If the next_page_token from a previous response
+     * is provided, this request will send the subsequent page.
+     * 
+ * + * string page_token = 10506; + * + * @return The bytes for pageToken. + */ + 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; + } + } + + /** + * + * + *
+     * The page token: If the next_page_token from a previous response
+     * is provided, this request will send the subsequent page.
+     * 
+ * + * string page_token = 10506; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * The page token: If the next_page_token from a previous response
+     * is provided, this request will send the subsequent page.
+     * 
+ * + * string page_token = 10506; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * The page token: If the next_page_token from a previous response
+     * is provided, this request will send the subsequent page.
+     * 
+ * + * string page_token = 10506; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
+     * Filter the list as specified in https://google.aip.dev/160.
+     * 
+ * + * string filter = 10507; + * + * @return The filter. + */ + 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; + } + } + + /** + * + * + *
+     * Filter the list as specified in https://google.aip.dev/160.
+     * 
+ * + * string filter = 10507; + * + * @return The bytes for filter. + */ + 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; + } + } + + /** + * + * + *
+     * Filter the list as specified in https://google.aip.dev/160.
+     * 
+ * + * string filter = 10507; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Filter the list as specified in https://google.aip.dev/160.
+     * 
+ * + * string filter = 10507; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Filter the list as specified in https://google.aip.dev/160.
+     * 
+ * + * string filter = 10507; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
+     * Order results as specified in https://google.aip.dev/132.
+     * 
+ * + * string order_by = 10508; + * + * @return The orderBy. + */ + 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; + } + } + + /** + * + * + *
+     * Order results as specified in https://google.aip.dev/132.
+     * 
+ * + * string order_by = 10508; + * + * @return The bytes for orderBy. + */ + 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; + } + } + + /** + * + * + *
+     * Order results as specified in https://google.aip.dev/132.
+     * 
+ * + * string order_by = 10508; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Order results as specified in https://google.aip.dev/132.
+     * 
+ * + * string order_by = 10508; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Order results as specified in https://google.aip.dev/132.
+     * 
+ * + * string order_by = 10508; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + 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.saasplatform.saasservicemgmt.v1beta1.ListRolloutsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsRequest) + private static final com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsRequest(); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListRolloutsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.saasplatform.saasservicemgmt.v1beta1.ListRolloutsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ListRolloutsRequestOrBuilder.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ListRolloutsRequestOrBuilder.java new file mode 100644 index 000000000000..851c5bc252e1 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ListRolloutsRequestOrBuilder.java @@ -0,0 +1,149 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/rollouts_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +public interface ListRolloutsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent of the rollout.
+   * 
+ * + * + * string parent = 10006 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The parent of the rollout.
+   * 
+ * + * + * string parent = 10006 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * The maximum number of rollouts to send per page.
+   * 
+ * + * int32 page_size = 10505; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * The page token: If the next_page_token from a previous response
+   * is provided, this request will send the subsequent page.
+   * 
+ * + * string page_token = 10506; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
+   * The page token: If the next_page_token from a previous response
+   * is provided, this request will send the subsequent page.
+   * 
+ * + * string page_token = 10506; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Filter the list as specified in https://google.aip.dev/160.
+   * 
+ * + * string filter = 10507; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
+   * Filter the list as specified in https://google.aip.dev/160.
+   * 
+ * + * string filter = 10507; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Order results as specified in https://google.aip.dev/132.
+   * 
+ * + * string order_by = 10508; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
+   * Order results as specified in https://google.aip.dev/132.
+   * 
+ * + * string order_by = 10508; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ListRolloutsResponse.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ListRolloutsResponse.java new file mode 100644 index 000000000000..feda694f8cbb --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ListRolloutsResponse.java @@ -0,0 +1,1522 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/rollouts_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +/** + * + * + *
+ * The response structure for the ListRollouts method.
+ * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsResponse} + */ +public final class ListRolloutsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsResponse) + ListRolloutsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListRolloutsResponse.newBuilder() to construct. + private ListRolloutsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListRolloutsResponse() { + rollouts_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListRolloutsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListRolloutsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListRolloutsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsResponse.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsResponse.Builder + .class); + } + + public static final int ROLLOUTS_FIELD_NUMBER = 10509; + + @SuppressWarnings("serial") + private java.util.List rollouts_; + + /** + * + * + *
+   * The resulting rollouts.
+   * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout rollouts = 10509; + * + */ + @java.lang.Override + public java.util.List + getRolloutsList() { + return rollouts_; + } + + /** + * + * + *
+   * The resulting rollouts.
+   * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout rollouts = 10509; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutOrBuilder> + getRolloutsOrBuilderList() { + return rollouts_; + } + + /** + * + * + *
+   * The resulting rollouts.
+   * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout rollouts = 10509; + * + */ + @java.lang.Override + public int getRolloutsCount() { + return rollouts_.size(); + } + + /** + * + * + *
+   * The resulting rollouts.
+   * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout rollouts = 10509; + * + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout getRollouts(int index) { + return rollouts_.get(index); + } + + /** + * + * + *
+   * The resulting rollouts.
+   * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout rollouts = 10509; + * + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutOrBuilder + getRolloutsOrBuilder(int index) { + return rollouts_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 10510; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * If present, the next page token can be provided to a subsequent
+   * ListRollouts call to list the next page.
+   * If empty, there are no more pages.
+   * 
+ * + * string next_page_token = 10510; + * + * @return The nextPageToken. + */ + @java.lang.Override + 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; + } + } + + /** + * + * + *
+   * If present, the next page token can be provided to a subsequent
+   * ListRollouts call to list the next page.
+   * If empty, there are no more pages.
+   * 
+ * + * string next_page_token = 10510; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + 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_FIELD_NUMBER = 10511; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 10511; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 10511; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 10511; + * + * @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); + } + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 10511; + * + * @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 < rollouts_.size(); i++) { + output.writeMessage(10509, rollouts_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10510, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10511, unreachable_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < rollouts_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10509, rollouts_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10510, nextPageToken_); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 3 * getUnreachableList().size(); + } + size += getUnknownFields().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.saasplatform.saasservicemgmt.v1beta1.ListRolloutsResponse)) { + return super.equals(obj); + } + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsResponse other = + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsResponse) obj; + + if (!getRolloutsList().equals(other.getRolloutsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getRolloutsCount() > 0) { + hash = (37 * hash) + ROLLOUTS_FIELD_NUMBER; + hash = (53 * hash) + getRolloutsList().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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsResponse + 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.saasplatform.saasservicemgmt.v1beta1.ListRolloutsResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsResponse + 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.saasplatform.saasservicemgmt.v1beta1.ListRolloutsResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsResponse + 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.saasplatform.saasservicemgmt.v1beta1.ListRolloutsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsResponse + 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.saasplatform.saasservicemgmt.v1beta1.ListRolloutsResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsResponse + 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.saasplatform.saasservicemgmt.v1beta1.ListRolloutsResponse 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 response structure for the ListRollouts method.
+   * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsResponse) + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListRolloutsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListRolloutsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsResponse.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsResponse.Builder + .class); + } + + // Construct using + // com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (rolloutsBuilder_ == null) { + rollouts_ = java.util.Collections.emptyList(); + } else { + rollouts_ = null; + rolloutsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListRolloutsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsResponse + getDefaultInstanceForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsResponse build() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsResponse + buildPartial() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsResponse result = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsResponse result) { + if (rolloutsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + rollouts_ = java.util.Collections.unmodifiableList(rollouts_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.rollouts_ = rollouts_; + } else { + result.rollouts_ = rolloutsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } + } + + @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.saasplatform.saasservicemgmt.v1beta1.ListRolloutsResponse) { + return mergeFrom( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsResponse other) { + if (other + == com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsResponse + .getDefaultInstance()) return this; + if (rolloutsBuilder_ == null) { + if (!other.rollouts_.isEmpty()) { + if (rollouts_.isEmpty()) { + rollouts_ = other.rollouts_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureRolloutsIsMutable(); + rollouts_.addAll(other.rollouts_); + } + onChanged(); + } + } else { + if (!other.rollouts_.isEmpty()) { + if (rolloutsBuilder_.isEmpty()) { + rolloutsBuilder_.dispose(); + rolloutsBuilder_ = null; + rollouts_ = other.rollouts_; + bitField0_ = (bitField0_ & ~0x00000001); + rolloutsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRolloutsFieldBuilder() + : null; + } else { + rolloutsBuilder_.addAllMessages(other.rollouts_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ |= 0x00000004; + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 84074: + { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout m = + input.readMessage( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout.parser(), + extensionRegistry); + if (rolloutsBuilder_ == null) { + ensureRolloutsIsMutable(); + rollouts_.add(m); + } else { + rolloutsBuilder_.addMessage(m); + } + break; + } // case 84074 + case 84082: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 84082 + case 84090: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 84090 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List + rollouts_ = java.util.Collections.emptyList(); + + private void ensureRolloutsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + rollouts_ = + new java.util.ArrayList( + rollouts_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutOrBuilder> + rolloutsBuilder_; + + /** + * + * + *
+     * The resulting rollouts.
+     * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout rollouts = 10509; + * + */ + public java.util.List + getRolloutsList() { + if (rolloutsBuilder_ == null) { + return java.util.Collections.unmodifiableList(rollouts_); + } else { + return rolloutsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * The resulting rollouts.
+     * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout rollouts = 10509; + * + */ + public int getRolloutsCount() { + if (rolloutsBuilder_ == null) { + return rollouts_.size(); + } else { + return rolloutsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * The resulting rollouts.
+     * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout rollouts = 10509; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout getRollouts(int index) { + if (rolloutsBuilder_ == null) { + return rollouts_.get(index); + } else { + return rolloutsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * The resulting rollouts.
+     * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout rollouts = 10509; + * + */ + public Builder setRollouts( + int index, com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout value) { + if (rolloutsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRolloutsIsMutable(); + rollouts_.set(index, value); + onChanged(); + } else { + rolloutsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The resulting rollouts.
+     * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout rollouts = 10509; + * + */ + public Builder setRollouts( + int index, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout.Builder builderForValue) { + if (rolloutsBuilder_ == null) { + ensureRolloutsIsMutable(); + rollouts_.set(index, builderForValue.build()); + onChanged(); + } else { + rolloutsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The resulting rollouts.
+     * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout rollouts = 10509; + * + */ + public Builder addRollouts( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout value) { + if (rolloutsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRolloutsIsMutable(); + rollouts_.add(value); + onChanged(); + } else { + rolloutsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * The resulting rollouts.
+     * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout rollouts = 10509; + * + */ + public Builder addRollouts( + int index, com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout value) { + if (rolloutsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRolloutsIsMutable(); + rollouts_.add(index, value); + onChanged(); + } else { + rolloutsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The resulting rollouts.
+     * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout rollouts = 10509; + * + */ + public Builder addRollouts( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout.Builder builderForValue) { + if (rolloutsBuilder_ == null) { + ensureRolloutsIsMutable(); + rollouts_.add(builderForValue.build()); + onChanged(); + } else { + rolloutsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The resulting rollouts.
+     * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout rollouts = 10509; + * + */ + public Builder addRollouts( + int index, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout.Builder builderForValue) { + if (rolloutsBuilder_ == null) { + ensureRolloutsIsMutable(); + rollouts_.add(index, builderForValue.build()); + onChanged(); + } else { + rolloutsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The resulting rollouts.
+     * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout rollouts = 10509; + * + */ + public Builder addAllRollouts( + java.lang.Iterable + values) { + if (rolloutsBuilder_ == null) { + ensureRolloutsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, rollouts_); + onChanged(); + } else { + rolloutsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * The resulting rollouts.
+     * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout rollouts = 10509; + * + */ + public Builder clearRollouts() { + if (rolloutsBuilder_ == null) { + rollouts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + rolloutsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The resulting rollouts.
+     * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout rollouts = 10509; + * + */ + public Builder removeRollouts(int index) { + if (rolloutsBuilder_ == null) { + ensureRolloutsIsMutable(); + rollouts_.remove(index); + onChanged(); + } else { + rolloutsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * The resulting rollouts.
+     * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout rollouts = 10509; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout.Builder getRolloutsBuilder( + int index) { + return getRolloutsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * The resulting rollouts.
+     * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout rollouts = 10509; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutOrBuilder + getRolloutsOrBuilder(int index) { + if (rolloutsBuilder_ == null) { + return rollouts_.get(index); + } else { + return rolloutsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * The resulting rollouts.
+     * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout rollouts = 10509; + * + */ + public java.util.List< + ? extends com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutOrBuilder> + getRolloutsOrBuilderList() { + if (rolloutsBuilder_ != null) { + return rolloutsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(rollouts_); + } + } + + /** + * + * + *
+     * The resulting rollouts.
+     * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout rollouts = 10509; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout.Builder + addRolloutsBuilder() { + return getRolloutsFieldBuilder() + .addBuilder( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout.getDefaultInstance()); + } + + /** + * + * + *
+     * The resulting rollouts.
+     * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout rollouts = 10509; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout.Builder addRolloutsBuilder( + int index) { + return getRolloutsFieldBuilder() + .addBuilder( + index, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout.getDefaultInstance()); + } + + /** + * + * + *
+     * The resulting rollouts.
+     * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout rollouts = 10509; + * + */ + public java.util.List + getRolloutsBuilderList() { + return getRolloutsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutOrBuilder> + getRolloutsFieldBuilder() { + if (rolloutsBuilder_ == null) { + rolloutsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutOrBuilder>( + rollouts_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + rollouts_ = null; + } + return rolloutsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * If present, the next page token can be provided to a subsequent
+     * ListRollouts call to list the next page.
+     * If empty, there are no more pages.
+     * 
+ * + * string next_page_token = 10510; + * + * @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; + } + } + + /** + * + * + *
+     * If present, the next page token can be provided to a subsequent
+     * ListRollouts call to list the next page.
+     * If empty, there are no more pages.
+     * 
+ * + * string next_page_token = 10510; + * + * @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; + } + } + + /** + * + * + *
+     * If present, the next page token can be provided to a subsequent
+     * ListRollouts call to list the next page.
+     * If empty, there are no more pages.
+     * 
+ * + * string next_page_token = 10510; + * + * @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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * If present, the next page token can be provided to a subsequent
+     * ListRollouts call to list the next page.
+     * If empty, there are no more pages.
+     * 
+ * + * string next_page_token = 10510; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * If present, the next page token can be provided to a subsequent
+     * ListRollouts call to list the next page.
+     * If empty, there are no more pages.
+     * 
+ * + * string next_page_token = 10510; + * + * @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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureUnreachableIsMutable() { + if (!unreachable_.isModifiable()) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 10511; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 10511; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 10511; + * + * @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); + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 10511; + * + * @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); + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 10511; + * + * @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); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 10511; + * + * @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); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 10511; + * + * @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_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 10511; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 10511; + * + * @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); + bitField0_ |= 0x00000004; + 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.saasplatform.saasservicemgmt.v1beta1.ListRolloutsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsResponse) + private static final com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsResponse(); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListRolloutsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.saasplatform.saasservicemgmt.v1beta1.ListRolloutsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ListRolloutsResponseOrBuilder.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ListRolloutsResponseOrBuilder.java new file mode 100644 index 000000000000..30da96c6e32a --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ListRolloutsResponseOrBuilder.java @@ -0,0 +1,172 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/rollouts_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +public interface ListRolloutsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The resulting rollouts.
+   * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout rollouts = 10509; + * + */ + java.util.List getRolloutsList(); + + /** + * + * + *
+   * The resulting rollouts.
+   * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout rollouts = 10509; + * + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout getRollouts(int index); + + /** + * + * + *
+   * The resulting rollouts.
+   * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout rollouts = 10509; + * + */ + int getRolloutsCount(); + + /** + * + * + *
+   * The resulting rollouts.
+   * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout rollouts = 10509; + * + */ + java.util.List + getRolloutsOrBuilderList(); + + /** + * + * + *
+   * The resulting rollouts.
+   * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout rollouts = 10509; + * + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutOrBuilder getRolloutsOrBuilder( + int index); + + /** + * + * + *
+   * If present, the next page token can be provided to a subsequent
+   * ListRollouts call to list the next page.
+   * If empty, there are no more pages.
+   * 
+ * + * string next_page_token = 10510; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
+   * If present, the next page token can be provided to a subsequent
+   * ListRollouts call to list the next page.
+   * If empty, there are no more pages.
+   * 
+ * + * string next_page_token = 10510; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 10511; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 10511; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 10511; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 10511; + * + * @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/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ListSaasRequest.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ListSaasRequest.java new file mode 100644 index 000000000000..1272f2abd891 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ListSaasRequest.java @@ -0,0 +1,1331 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +/** + * + * + *
+ * The request structure for the ListSaas method.
+ * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasRequest} + */ +public final class ListSaasRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasRequest) + ListSaasRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListSaasRequest.newBuilder() to construct. + private ListSaasRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListSaasRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListSaasRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListSaasRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListSaasRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasRequest.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 10006; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The parent of the saas.
+   * 
+ * + * + * string parent = 10006 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + 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 of the saas.
+   * 
+ * + * + * string parent = 10006 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + 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 = 10505; + private int pageSize_ = 0; + + /** + * + * + *
+   * The maximum number of saas to send per page.
+   * 
+ * + * int32 page_size = 10505; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 10506; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
+   * The page token: If the next_page_token from a previous response
+   * is provided, this request will send the subsequent page.
+   * 
+ * + * string page_token = 10506; + * + * @return The pageToken. + */ + @java.lang.Override + 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; + } + } + + /** + * + * + *
+   * The page token: If the next_page_token from a previous response
+   * is provided, this request will send the subsequent page.
+   * 
+ * + * string page_token = 10506; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + 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 = 10507; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
+   * Filter the list as specified in https://google.aip.dev/160.
+   * 
+ * + * string filter = 10507; + * + * @return The filter. + */ + @java.lang.Override + 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; + } + } + + /** + * + * + *
+   * Filter the list as specified in https://google.aip.dev/160.
+   * 
+ * + * string filter = 10507; + * + * @return The bytes for filter. + */ + @java.lang.Override + 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 = 10508; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
+   * Order results as specified in https://google.aip.dev/132.
+   * 
+ * + * string order_by = 10508; + * + * @return The orderBy. + */ + @java.lang.Override + 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; + } + } + + /** + * + * + *
+   * Order results as specified in https://google.aip.dev/132.
+   * 
+ * + * string order_by = 10508; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10006, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(10505, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10506, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10507, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10508, orderBy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10006, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(10505, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10506, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10507, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10508, orderBy_); + } + size += getUnknownFields().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.saasplatform.saasservicemgmt.v1beta1.ListSaasRequest)) { + return super.equals(obj); + } + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasRequest other = + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasRequest) 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasRequest 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.saasplatform.saasservicemgmt.v1beta1.ListSaasRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasRequest 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.saasplatform.saasservicemgmt.v1beta1.ListSaasRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasRequest 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.saasplatform.saasservicemgmt.v1beta1.ListSaasRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasRequest + 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.saasplatform.saasservicemgmt.v1beta1.ListSaasRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasRequest 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.saasplatform.saasservicemgmt.v1beta1.ListSaasRequest 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 request structure for the ListSaas method.
+   * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasRequest) + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListSaasRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListSaasRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasRequest.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasRequest.Builder.class); + } + + // Construct using + // com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListSaasRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasRequest + getDefaultInstanceForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasRequest build() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasRequest buildPartial() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasRequest result = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + } + + @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.saasplatform.saasservicemgmt.v1beta1.ListSaasRequest) { + return mergeFrom( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasRequest other) { + if (other + == com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 80050: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 80050 + case 84040: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 84040 + case 84050: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 84050 + case 84058: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 84058 + case 84066: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 84066 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. The parent of the saas.
+     * 
+ * + * + * string parent = 10006 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @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 of the saas.
+     * 
+ * + * + * string parent = 10006 [(.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_; + 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 of the saas.
+     * 
+ * + * + * string parent = 10006 [(.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) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent of the saas.
+     * 
+ * + * + * string parent = 10006 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent of the saas.
+     * 
+ * + * + * string parent = 10006 [(.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) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
+     * The maximum number of saas to send per page.
+     * 
+ * + * int32 page_size = 10505; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
+     * The maximum number of saas to send per page.
+     * 
+ * + * int32 page_size = 10505; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * The maximum number of saas to send per page.
+     * 
+ * + * int32 page_size = 10505; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
+     * The page token: If the next_page_token from a previous response
+     * is provided, this request will send the subsequent page.
+     * 
+ * + * string page_token = 10506; + * + * @return The pageToken. + */ + 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; + } + } + + /** + * + * + *
+     * The page token: If the next_page_token from a previous response
+     * is provided, this request will send the subsequent page.
+     * 
+ * + * string page_token = 10506; + * + * @return The bytes for pageToken. + */ + 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; + } + } + + /** + * + * + *
+     * The page token: If the next_page_token from a previous response
+     * is provided, this request will send the subsequent page.
+     * 
+ * + * string page_token = 10506; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * The page token: If the next_page_token from a previous response
+     * is provided, this request will send the subsequent page.
+     * 
+ * + * string page_token = 10506; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * The page token: If the next_page_token from a previous response
+     * is provided, this request will send the subsequent page.
+     * 
+ * + * string page_token = 10506; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
+     * Filter the list as specified in https://google.aip.dev/160.
+     * 
+ * + * string filter = 10507; + * + * @return The filter. + */ + 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; + } + } + + /** + * + * + *
+     * Filter the list as specified in https://google.aip.dev/160.
+     * 
+ * + * string filter = 10507; + * + * @return The bytes for filter. + */ + 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; + } + } + + /** + * + * + *
+     * Filter the list as specified in https://google.aip.dev/160.
+     * 
+ * + * string filter = 10507; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Filter the list as specified in https://google.aip.dev/160.
+     * 
+ * + * string filter = 10507; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Filter the list as specified in https://google.aip.dev/160.
+     * 
+ * + * string filter = 10507; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
+     * Order results as specified in https://google.aip.dev/132.
+     * 
+ * + * string order_by = 10508; + * + * @return The orderBy. + */ + 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; + } + } + + /** + * + * + *
+     * Order results as specified in https://google.aip.dev/132.
+     * 
+ * + * string order_by = 10508; + * + * @return The bytes for orderBy. + */ + 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; + } + } + + /** + * + * + *
+     * Order results as specified in https://google.aip.dev/132.
+     * 
+ * + * string order_by = 10508; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Order results as specified in https://google.aip.dev/132.
+     * 
+ * + * string order_by = 10508; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Order results as specified in https://google.aip.dev/132.
+     * 
+ * + * string order_by = 10508; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + 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.saasplatform.saasservicemgmt.v1beta1.ListSaasRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasRequest) + private static final com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasRequest(); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSaasRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.saasplatform.saasservicemgmt.v1beta1.ListSaasRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ListSaasRequestOrBuilder.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ListSaasRequestOrBuilder.java new file mode 100644 index 000000000000..03129a9d3905 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ListSaasRequestOrBuilder.java @@ -0,0 +1,149 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +public interface ListSaasRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent of the saas.
+   * 
+ * + * + * string parent = 10006 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The parent of the saas.
+   * 
+ * + * + * string parent = 10006 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * The maximum number of saas to send per page.
+   * 
+ * + * int32 page_size = 10505; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * The page token: If the next_page_token from a previous response
+   * is provided, this request will send the subsequent page.
+   * 
+ * + * string page_token = 10506; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
+   * The page token: If the next_page_token from a previous response
+   * is provided, this request will send the subsequent page.
+   * 
+ * + * string page_token = 10506; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Filter the list as specified in https://google.aip.dev/160.
+   * 
+ * + * string filter = 10507; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
+   * Filter the list as specified in https://google.aip.dev/160.
+   * 
+ * + * string filter = 10507; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Order results as specified in https://google.aip.dev/132.
+   * 
+ * + * string order_by = 10508; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
+   * Order results as specified in https://google.aip.dev/132.
+   * 
+ * + * string order_by = 10508; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ListSaasResponse.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ListSaasResponse.java new file mode 100644 index 000000000000..b16130e644ab --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ListSaasResponse.java @@ -0,0 +1,1485 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +/** + * + * + *
+ * The response structure for the ListSaas method.
+ * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasResponse} + */ +public final class ListSaasResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasResponse) + ListSaasResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListSaasResponse.newBuilder() to construct. + private ListSaasResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListSaasResponse() { + saas_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListSaasResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListSaasResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListSaasResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasResponse.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasResponse.Builder.class); + } + + public static final int SAAS_FIELD_NUMBER = 10509; + + @SuppressWarnings("serial") + private java.util.List saas_; + + /** + * + * + *
+   * The resulting saas.
+   * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas saas = 10509; + */ + @java.lang.Override + public java.util.List getSaasList() { + return saas_; + } + + /** + * + * + *
+   * The resulting saas.
+   * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas saas = 10509; + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasOrBuilder> + getSaasOrBuilderList() { + return saas_; + } + + /** + * + * + *
+   * The resulting saas.
+   * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas saas = 10509; + */ + @java.lang.Override + public int getSaasCount() { + return saas_.size(); + } + + /** + * + * + *
+   * The resulting saas.
+   * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas saas = 10509; + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas getSaas(int index) { + return saas_.get(index); + } + + /** + * + * + *
+   * The resulting saas.
+   * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas saas = 10509; + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasOrBuilder getSaasOrBuilder( + int index) { + return saas_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 10510; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * If present, the next page token can be provided to a subsequent
+   * ListSaas call to list the next page.
+   * If empty, there are no more pages.
+   * 
+ * + * string next_page_token = 10510; + * + * @return The nextPageToken. + */ + @java.lang.Override + 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; + } + } + + /** + * + * + *
+   * If present, the next page token can be provided to a subsequent
+   * ListSaas call to list the next page.
+   * If empty, there are no more pages.
+   * 
+ * + * string next_page_token = 10510; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + 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_FIELD_NUMBER = 10511; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 10511; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 10511; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 10511; + * + * @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); + } + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 10511; + * + * @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 < saas_.size(); i++) { + output.writeMessage(10509, saas_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10510, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10511, unreachable_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < saas_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10509, saas_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10510, nextPageToken_); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 3 * getUnreachableList().size(); + } + size += getUnknownFields().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.saasplatform.saasservicemgmt.v1beta1.ListSaasResponse)) { + return super.equals(obj); + } + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasResponse other = + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasResponse) obj; + + if (!getSaasList().equals(other.getSaasList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getSaasCount() > 0) { + hash = (37 * hash) + SAAS_FIELD_NUMBER; + hash = (53 * hash) + getSaasList().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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasResponse 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.saasplatform.saasservicemgmt.v1beta1.ListSaasResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasResponse 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.saasplatform.saasservicemgmt.v1beta1.ListSaasResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasResponse 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.saasplatform.saasservicemgmt.v1beta1.ListSaasResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasResponse + 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.saasplatform.saasservicemgmt.v1beta1.ListSaasResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasResponse 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.saasplatform.saasservicemgmt.v1beta1.ListSaasResponse 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 response structure for the ListSaas method.
+   * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasResponse) + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListSaasResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListSaasResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasResponse.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasResponse.Builder.class); + } + + // Construct using + // com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (saasBuilder_ == null) { + saas_ = java.util.Collections.emptyList(); + } else { + saas_ = null; + saasBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListSaasResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasResponse + getDefaultInstanceForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasResponse build() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasResponse buildPartial() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasResponse result = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasResponse result) { + if (saasBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + saas_ = java.util.Collections.unmodifiableList(saas_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.saas_ = saas_; + } else { + result.saas_ = saasBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } + } + + @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.saasplatform.saasservicemgmt.v1beta1.ListSaasResponse) { + return mergeFrom( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasResponse other) { + if (other + == com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasResponse + .getDefaultInstance()) return this; + if (saasBuilder_ == null) { + if (!other.saas_.isEmpty()) { + if (saas_.isEmpty()) { + saas_ = other.saas_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSaasIsMutable(); + saas_.addAll(other.saas_); + } + onChanged(); + } + } else { + if (!other.saas_.isEmpty()) { + if (saasBuilder_.isEmpty()) { + saasBuilder_.dispose(); + saasBuilder_ = null; + saas_ = other.saas_; + bitField0_ = (bitField0_ & ~0x00000001); + saasBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSaasFieldBuilder() + : null; + } else { + saasBuilder_.addAllMessages(other.saas_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ |= 0x00000004; + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 84074: + { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas m = + input.readMessage( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas.parser(), + extensionRegistry); + if (saasBuilder_ == null) { + ensureSaasIsMutable(); + saas_.add(m); + } else { + saasBuilder_.addMessage(m); + } + break; + } // case 84074 + case 84082: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 84082 + case 84090: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 84090 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List saas_ = + java.util.Collections.emptyList(); + + private void ensureSaasIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + saas_ = + new java.util.ArrayList( + saas_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasOrBuilder> + saasBuilder_; + + /** + * + * + *
+     * The resulting saas.
+     * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas saas = 10509; + */ + public java.util.List + getSaasList() { + if (saasBuilder_ == null) { + return java.util.Collections.unmodifiableList(saas_); + } else { + return saasBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * The resulting saas.
+     * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas saas = 10509; + */ + public int getSaasCount() { + if (saasBuilder_ == null) { + return saas_.size(); + } else { + return saasBuilder_.getCount(); + } + } + + /** + * + * + *
+     * The resulting saas.
+     * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas saas = 10509; + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas getSaas(int index) { + if (saasBuilder_ == null) { + return saas_.get(index); + } else { + return saasBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * The resulting saas.
+     * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas saas = 10509; + */ + public Builder setSaas( + int index, com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas value) { + if (saasBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSaasIsMutable(); + saas_.set(index, value); + onChanged(); + } else { + saasBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The resulting saas.
+     * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas saas = 10509; + */ + public Builder setSaas( + int index, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas.Builder builderForValue) { + if (saasBuilder_ == null) { + ensureSaasIsMutable(); + saas_.set(index, builderForValue.build()); + onChanged(); + } else { + saasBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The resulting saas.
+     * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas saas = 10509; + */ + public Builder addSaas(com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas value) { + if (saasBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSaasIsMutable(); + saas_.add(value); + onChanged(); + } else { + saasBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * The resulting saas.
+     * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas saas = 10509; + */ + public Builder addSaas( + int index, com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas value) { + if (saasBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSaasIsMutable(); + saas_.add(index, value); + onChanged(); + } else { + saasBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The resulting saas.
+     * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas saas = 10509; + */ + public Builder addSaas( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas.Builder builderForValue) { + if (saasBuilder_ == null) { + ensureSaasIsMutable(); + saas_.add(builderForValue.build()); + onChanged(); + } else { + saasBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The resulting saas.
+     * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas saas = 10509; + */ + public Builder addSaas( + int index, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas.Builder builderForValue) { + if (saasBuilder_ == null) { + ensureSaasIsMutable(); + saas_.add(index, builderForValue.build()); + onChanged(); + } else { + saasBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The resulting saas.
+     * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas saas = 10509; + */ + public Builder addAllSaas( + java.lang.Iterable + values) { + if (saasBuilder_ == null) { + ensureSaasIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, saas_); + onChanged(); + } else { + saasBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * The resulting saas.
+     * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas saas = 10509; + */ + public Builder clearSaas() { + if (saasBuilder_ == null) { + saas_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + saasBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The resulting saas.
+     * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas saas = 10509; + */ + public Builder removeSaas(int index) { + if (saasBuilder_ == null) { + ensureSaasIsMutable(); + saas_.remove(index); + onChanged(); + } else { + saasBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * The resulting saas.
+     * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas saas = 10509; + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas.Builder getSaasBuilder( + int index) { + return getSaasFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * The resulting saas.
+     * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas saas = 10509; + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasOrBuilder getSaasOrBuilder( + int index) { + if (saasBuilder_ == null) { + return saas_.get(index); + } else { + return saasBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * The resulting saas.
+     * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas saas = 10509; + */ + public java.util.List< + ? extends com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasOrBuilder> + getSaasOrBuilderList() { + if (saasBuilder_ != null) { + return saasBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(saas_); + } + } + + /** + * + * + *
+     * The resulting saas.
+     * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas saas = 10509; + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas.Builder addSaasBuilder() { + return getSaasFieldBuilder() + .addBuilder( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas.getDefaultInstance()); + } + + /** + * + * + *
+     * The resulting saas.
+     * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas saas = 10509; + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas.Builder addSaasBuilder( + int index) { + return getSaasFieldBuilder() + .addBuilder( + index, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas.getDefaultInstance()); + } + + /** + * + * + *
+     * The resulting saas.
+     * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas saas = 10509; + */ + public java.util.List + getSaasBuilderList() { + return getSaasFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasOrBuilder> + getSaasFieldBuilder() { + if (saasBuilder_ == null) { + saasBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasOrBuilder>( + saas_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + saas_ = null; + } + return saasBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * If present, the next page token can be provided to a subsequent
+     * ListSaas call to list the next page.
+     * If empty, there are no more pages.
+     * 
+ * + * string next_page_token = 10510; + * + * @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; + } + } + + /** + * + * + *
+     * If present, the next page token can be provided to a subsequent
+     * ListSaas call to list the next page.
+     * If empty, there are no more pages.
+     * 
+ * + * string next_page_token = 10510; + * + * @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; + } + } + + /** + * + * + *
+     * If present, the next page token can be provided to a subsequent
+     * ListSaas call to list the next page.
+     * If empty, there are no more pages.
+     * 
+ * + * string next_page_token = 10510; + * + * @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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * If present, the next page token can be provided to a subsequent
+     * ListSaas call to list the next page.
+     * If empty, there are no more pages.
+     * 
+ * + * string next_page_token = 10510; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * If present, the next page token can be provided to a subsequent
+     * ListSaas call to list the next page.
+     * If empty, there are no more pages.
+     * 
+ * + * string next_page_token = 10510; + * + * @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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureUnreachableIsMutable() { + if (!unreachable_.isModifiable()) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 10511; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 10511; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 10511; + * + * @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); + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 10511; + * + * @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); + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 10511; + * + * @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); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 10511; + * + * @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); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 10511; + * + * @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_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 10511; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 10511; + * + * @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); + bitField0_ |= 0x00000004; + 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.saasplatform.saasservicemgmt.v1beta1.ListSaasResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasResponse) + private static final com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasResponse(); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSaasResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.saasplatform.saasservicemgmt.v1beta1.ListSaasResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ListSaasResponseOrBuilder.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ListSaasResponseOrBuilder.java new file mode 100644 index 000000000000..d48c7bb0d073 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ListSaasResponseOrBuilder.java @@ -0,0 +1,166 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +public interface ListSaasResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The resulting saas.
+   * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas saas = 10509; + */ + java.util.List getSaasList(); + + /** + * + * + *
+   * The resulting saas.
+   * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas saas = 10509; + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas getSaas(int index); + + /** + * + * + *
+   * The resulting saas.
+   * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas saas = 10509; + */ + int getSaasCount(); + + /** + * + * + *
+   * The resulting saas.
+   * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas saas = 10509; + */ + java.util.List + getSaasOrBuilderList(); + + /** + * + * + *
+   * The resulting saas.
+   * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas saas = 10509; + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasOrBuilder getSaasOrBuilder(int index); + + /** + * + * + *
+   * If present, the next page token can be provided to a subsequent
+   * ListSaas call to list the next page.
+   * If empty, there are no more pages.
+   * 
+ * + * string next_page_token = 10510; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
+   * If present, the next page token can be provided to a subsequent
+   * ListSaas call to list the next page.
+   * If empty, there are no more pages.
+   * 
+ * + * string next_page_token = 10510; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 10511; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 10511; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 10511; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 10511; + * + * @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/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ListTenantsRequest.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ListTenantsRequest.java new file mode 100644 index 000000000000..2f51604b4854 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ListTenantsRequest.java @@ -0,0 +1,1336 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +/** + * + * + *
+ * The request structure for the ListTenants method.
+ * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsRequest} + */ +public final class ListTenantsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsRequest) + ListTenantsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListTenantsRequest.newBuilder() to construct. + private ListTenantsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListTenantsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListTenantsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListTenantsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListTenantsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsRequest.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 10006; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The parent of the tenant.
+   * 
+ * + * + * string parent = 10006 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + 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 of the tenant.
+   * 
+ * + * + * string parent = 10006 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + 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 = 10505; + private int pageSize_ = 0; + + /** + * + * + *
+   * The maximum number of tenants to send per page.
+   * 
+ * + * int32 page_size = 10505; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 10506; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
+   * The page token: If the next_page_token from a previous response
+   * is provided, this request will send the subsequent page.
+   * 
+ * + * string page_token = 10506; + * + * @return The pageToken. + */ + @java.lang.Override + 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; + } + } + + /** + * + * + *
+   * The page token: If the next_page_token from a previous response
+   * is provided, this request will send the subsequent page.
+   * 
+ * + * string page_token = 10506; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + 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 = 10507; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
+   * Filter the list as specified in https://google.aip.dev/160.
+   * 
+ * + * string filter = 10507; + * + * @return The filter. + */ + @java.lang.Override + 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; + } + } + + /** + * + * + *
+   * Filter the list as specified in https://google.aip.dev/160.
+   * 
+ * + * string filter = 10507; + * + * @return The bytes for filter. + */ + @java.lang.Override + 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 = 10508; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
+   * Order results as specified in https://google.aip.dev/132.
+   * 
+ * + * string order_by = 10508; + * + * @return The orderBy. + */ + @java.lang.Override + 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; + } + } + + /** + * + * + *
+   * Order results as specified in https://google.aip.dev/132.
+   * 
+ * + * string order_by = 10508; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10006, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(10505, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10506, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10507, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10508, orderBy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10006, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(10505, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10506, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10507, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10508, orderBy_); + } + size += getUnknownFields().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.saasplatform.saasservicemgmt.v1beta1.ListTenantsRequest)) { + return super.equals(obj); + } + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsRequest other = + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsRequest) 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsRequest 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.saasplatform.saasservicemgmt.v1beta1.ListTenantsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsRequest 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.saasplatform.saasservicemgmt.v1beta1.ListTenantsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsRequest 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.saasplatform.saasservicemgmt.v1beta1.ListTenantsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsRequest + 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.saasplatform.saasservicemgmt.v1beta1.ListTenantsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsRequest 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.saasplatform.saasservicemgmt.v1beta1.ListTenantsRequest 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 request structure for the ListTenants method.
+   * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsRequest) + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListTenantsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListTenantsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsRequest.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListTenantsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsRequest + getDefaultInstanceForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsRequest build() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsRequest buildPartial() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsRequest result = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + } + + @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.saasplatform.saasservicemgmt.v1beta1.ListTenantsRequest) { + return mergeFrom( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsRequest other) { + if (other + == com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 80050: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 80050 + case 84040: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 84040 + case 84050: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 84050 + case 84058: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 84058 + case 84066: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 84066 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. The parent of the tenant.
+     * 
+ * + * + * string parent = 10006 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @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 of the tenant.
+     * 
+ * + * + * string parent = 10006 [(.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_; + 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 of the tenant.
+     * 
+ * + * + * string parent = 10006 [(.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) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent of the tenant.
+     * 
+ * + * + * string parent = 10006 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent of the tenant.
+     * 
+ * + * + * string parent = 10006 [(.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) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
+     * The maximum number of tenants to send per page.
+     * 
+ * + * int32 page_size = 10505; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
+     * The maximum number of tenants to send per page.
+     * 
+ * + * int32 page_size = 10505; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * The maximum number of tenants to send per page.
+     * 
+ * + * int32 page_size = 10505; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
+     * The page token: If the next_page_token from a previous response
+     * is provided, this request will send the subsequent page.
+     * 
+ * + * string page_token = 10506; + * + * @return The pageToken. + */ + 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; + } + } + + /** + * + * + *
+     * The page token: If the next_page_token from a previous response
+     * is provided, this request will send the subsequent page.
+     * 
+ * + * string page_token = 10506; + * + * @return The bytes for pageToken. + */ + 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; + } + } + + /** + * + * + *
+     * The page token: If the next_page_token from a previous response
+     * is provided, this request will send the subsequent page.
+     * 
+ * + * string page_token = 10506; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * The page token: If the next_page_token from a previous response
+     * is provided, this request will send the subsequent page.
+     * 
+ * + * string page_token = 10506; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * The page token: If the next_page_token from a previous response
+     * is provided, this request will send the subsequent page.
+     * 
+ * + * string page_token = 10506; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
+     * Filter the list as specified in https://google.aip.dev/160.
+     * 
+ * + * string filter = 10507; + * + * @return The filter. + */ + 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; + } + } + + /** + * + * + *
+     * Filter the list as specified in https://google.aip.dev/160.
+     * 
+ * + * string filter = 10507; + * + * @return The bytes for filter. + */ + 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; + } + } + + /** + * + * + *
+     * Filter the list as specified in https://google.aip.dev/160.
+     * 
+ * + * string filter = 10507; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Filter the list as specified in https://google.aip.dev/160.
+     * 
+ * + * string filter = 10507; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Filter the list as specified in https://google.aip.dev/160.
+     * 
+ * + * string filter = 10507; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
+     * Order results as specified in https://google.aip.dev/132.
+     * 
+ * + * string order_by = 10508; + * + * @return The orderBy. + */ + 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; + } + } + + /** + * + * + *
+     * Order results as specified in https://google.aip.dev/132.
+     * 
+ * + * string order_by = 10508; + * + * @return The bytes for orderBy. + */ + 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; + } + } + + /** + * + * + *
+     * Order results as specified in https://google.aip.dev/132.
+     * 
+ * + * string order_by = 10508; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Order results as specified in https://google.aip.dev/132.
+     * 
+ * + * string order_by = 10508; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Order results as specified in https://google.aip.dev/132.
+     * 
+ * + * string order_by = 10508; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + 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.saasplatform.saasservicemgmt.v1beta1.ListTenantsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsRequest) + private static final com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsRequest(); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListTenantsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.saasplatform.saasservicemgmt.v1beta1.ListTenantsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ListTenantsRequestOrBuilder.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ListTenantsRequestOrBuilder.java new file mode 100644 index 000000000000..d6f6ee3c1685 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ListTenantsRequestOrBuilder.java @@ -0,0 +1,149 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +public interface ListTenantsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent of the tenant.
+   * 
+ * + * + * string parent = 10006 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The parent of the tenant.
+   * 
+ * + * + * string parent = 10006 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * The maximum number of tenants to send per page.
+   * 
+ * + * int32 page_size = 10505; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * The page token: If the next_page_token from a previous response
+   * is provided, this request will send the subsequent page.
+   * 
+ * + * string page_token = 10506; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
+   * The page token: If the next_page_token from a previous response
+   * is provided, this request will send the subsequent page.
+   * 
+ * + * string page_token = 10506; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Filter the list as specified in https://google.aip.dev/160.
+   * 
+ * + * string filter = 10507; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
+   * Filter the list as specified in https://google.aip.dev/160.
+   * 
+ * + * string filter = 10507; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Order results as specified in https://google.aip.dev/132.
+   * 
+ * + * string order_by = 10508; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
+   * Order results as specified in https://google.aip.dev/132.
+   * 
+ * + * string order_by = 10508; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ListTenantsResponse.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ListTenantsResponse.java new file mode 100644 index 000000000000..cdb6ecc39bdb --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ListTenantsResponse.java @@ -0,0 +1,1516 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +/** + * + * + *
+ * The response structure for the ListTenants method.
+ * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsResponse} + */ +public final class ListTenantsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsResponse) + ListTenantsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListTenantsResponse.newBuilder() to construct. + private ListTenantsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListTenantsResponse() { + tenants_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListTenantsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListTenantsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListTenantsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsResponse.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsResponse.Builder + .class); + } + + public static final int TENANTS_FIELD_NUMBER = 10509; + + @SuppressWarnings("serial") + private java.util.List tenants_; + + /** + * + * + *
+   * The resulting tenants.
+   * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant tenants = 10509; + * + */ + @java.lang.Override + public java.util.List + getTenantsList() { + return tenants_; + } + + /** + * + * + *
+   * The resulting tenants.
+   * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant tenants = 10509; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.saasplatform.saasservicemgmt.v1beta1.TenantOrBuilder> + getTenantsOrBuilderList() { + return tenants_; + } + + /** + * + * + *
+   * The resulting tenants.
+   * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant tenants = 10509; + * + */ + @java.lang.Override + public int getTenantsCount() { + return tenants_.size(); + } + + /** + * + * + *
+   * The resulting tenants.
+   * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant tenants = 10509; + * + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant getTenants(int index) { + return tenants_.get(index); + } + + /** + * + * + *
+   * The resulting tenants.
+   * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant tenants = 10509; + * + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.TenantOrBuilder getTenantsOrBuilder( + int index) { + return tenants_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 10510; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * If present, the next page token can be provided to a subsequent
+   * ListTenants call to list the next page.
+   * If empty, there are no more pages.
+   * 
+ * + * string next_page_token = 10510; + * + * @return The nextPageToken. + */ + @java.lang.Override + 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; + } + } + + /** + * + * + *
+   * If present, the next page token can be provided to a subsequent
+   * ListTenants call to list the next page.
+   * If empty, there are no more pages.
+   * 
+ * + * string next_page_token = 10510; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + 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_FIELD_NUMBER = 10511; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 10511; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 10511; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 10511; + * + * @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); + } + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 10511; + * + * @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 < tenants_.size(); i++) { + output.writeMessage(10509, tenants_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10510, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10511, unreachable_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < tenants_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10509, tenants_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10510, nextPageToken_); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 3 * getUnreachableList().size(); + } + size += getUnknownFields().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.saasplatform.saasservicemgmt.v1beta1.ListTenantsResponse)) { + return super.equals(obj); + } + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsResponse other = + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsResponse) obj; + + if (!getTenantsList().equals(other.getTenantsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getTenantsCount() > 0) { + hash = (37 * hash) + TENANTS_FIELD_NUMBER; + hash = (53 * hash) + getTenantsList().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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsResponse 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.saasplatform.saasservicemgmt.v1beta1.ListTenantsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsResponse 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.saasplatform.saasservicemgmt.v1beta1.ListTenantsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsResponse 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.saasplatform.saasservicemgmt.v1beta1.ListTenantsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsResponse + 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.saasplatform.saasservicemgmt.v1beta1.ListTenantsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsResponse 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.saasplatform.saasservicemgmt.v1beta1.ListTenantsResponse 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 response structure for the ListTenants method.
+   * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsResponse) + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListTenantsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListTenantsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsResponse.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsResponse.Builder + .class); + } + + // Construct using + // com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (tenantsBuilder_ == null) { + tenants_ = java.util.Collections.emptyList(); + } else { + tenants_ = null; + tenantsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListTenantsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsResponse + getDefaultInstanceForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsResponse build() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsResponse + buildPartial() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsResponse result = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsResponse result) { + if (tenantsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + tenants_ = java.util.Collections.unmodifiableList(tenants_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.tenants_ = tenants_; + } else { + result.tenants_ = tenantsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } + } + + @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.saasplatform.saasservicemgmt.v1beta1.ListTenantsResponse) { + return mergeFrom( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsResponse other) { + if (other + == com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsResponse + .getDefaultInstance()) return this; + if (tenantsBuilder_ == null) { + if (!other.tenants_.isEmpty()) { + if (tenants_.isEmpty()) { + tenants_ = other.tenants_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTenantsIsMutable(); + tenants_.addAll(other.tenants_); + } + onChanged(); + } + } else { + if (!other.tenants_.isEmpty()) { + if (tenantsBuilder_.isEmpty()) { + tenantsBuilder_.dispose(); + tenantsBuilder_ = null; + tenants_ = other.tenants_; + bitField0_ = (bitField0_ & ~0x00000001); + tenantsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getTenantsFieldBuilder() + : null; + } else { + tenantsBuilder_.addAllMessages(other.tenants_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ |= 0x00000004; + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 84074: + { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant m = + input.readMessage( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant.parser(), + extensionRegistry); + if (tenantsBuilder_ == null) { + ensureTenantsIsMutable(); + tenants_.add(m); + } else { + tenantsBuilder_.addMessage(m); + } + break; + } // case 84074 + case 84082: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 84082 + case 84090: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 84090 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List tenants_ = + java.util.Collections.emptyList(); + + private void ensureTenantsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + tenants_ = + new java.util.ArrayList( + tenants_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.TenantOrBuilder> + tenantsBuilder_; + + /** + * + * + *
+     * The resulting tenants.
+     * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant tenants = 10509; + * + */ + public java.util.List + getTenantsList() { + if (tenantsBuilder_ == null) { + return java.util.Collections.unmodifiableList(tenants_); + } else { + return tenantsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * The resulting tenants.
+     * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant tenants = 10509; + * + */ + public int getTenantsCount() { + if (tenantsBuilder_ == null) { + return tenants_.size(); + } else { + return tenantsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * The resulting tenants.
+     * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant tenants = 10509; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant getTenants(int index) { + if (tenantsBuilder_ == null) { + return tenants_.get(index); + } else { + return tenantsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * The resulting tenants.
+     * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant tenants = 10509; + * + */ + public Builder setTenants( + int index, com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant value) { + if (tenantsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTenantsIsMutable(); + tenants_.set(index, value); + onChanged(); + } else { + tenantsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The resulting tenants.
+     * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant tenants = 10509; + * + */ + public Builder setTenants( + int index, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant.Builder builderForValue) { + if (tenantsBuilder_ == null) { + ensureTenantsIsMutable(); + tenants_.set(index, builderForValue.build()); + onChanged(); + } else { + tenantsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The resulting tenants.
+     * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant tenants = 10509; + * + */ + public Builder addTenants(com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant value) { + if (tenantsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTenantsIsMutable(); + tenants_.add(value); + onChanged(); + } else { + tenantsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * The resulting tenants.
+     * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant tenants = 10509; + * + */ + public Builder addTenants( + int index, com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant value) { + if (tenantsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTenantsIsMutable(); + tenants_.add(index, value); + onChanged(); + } else { + tenantsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The resulting tenants.
+     * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant tenants = 10509; + * + */ + public Builder addTenants( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant.Builder builderForValue) { + if (tenantsBuilder_ == null) { + ensureTenantsIsMutable(); + tenants_.add(builderForValue.build()); + onChanged(); + } else { + tenantsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The resulting tenants.
+     * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant tenants = 10509; + * + */ + public Builder addTenants( + int index, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant.Builder builderForValue) { + if (tenantsBuilder_ == null) { + ensureTenantsIsMutable(); + tenants_.add(index, builderForValue.build()); + onChanged(); + } else { + tenantsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The resulting tenants.
+     * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant tenants = 10509; + * + */ + public Builder addAllTenants( + java.lang.Iterable + values) { + if (tenantsBuilder_ == null) { + ensureTenantsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tenants_); + onChanged(); + } else { + tenantsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * The resulting tenants.
+     * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant tenants = 10509; + * + */ + public Builder clearTenants() { + if (tenantsBuilder_ == null) { + tenants_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + tenantsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The resulting tenants.
+     * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant tenants = 10509; + * + */ + public Builder removeTenants(int index) { + if (tenantsBuilder_ == null) { + ensureTenantsIsMutable(); + tenants_.remove(index); + onChanged(); + } else { + tenantsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * The resulting tenants.
+     * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant tenants = 10509; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant.Builder getTenantsBuilder( + int index) { + return getTenantsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * The resulting tenants.
+     * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant tenants = 10509; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.TenantOrBuilder + getTenantsOrBuilder(int index) { + if (tenantsBuilder_ == null) { + return tenants_.get(index); + } else { + return tenantsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * The resulting tenants.
+     * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant tenants = 10509; + * + */ + public java.util.List< + ? extends com.google.cloud.saasplatform.saasservicemgmt.v1beta1.TenantOrBuilder> + getTenantsOrBuilderList() { + if (tenantsBuilder_ != null) { + return tenantsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(tenants_); + } + } + + /** + * + * + *
+     * The resulting tenants.
+     * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant tenants = 10509; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant.Builder + addTenantsBuilder() { + return getTenantsFieldBuilder() + .addBuilder( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant.getDefaultInstance()); + } + + /** + * + * + *
+     * The resulting tenants.
+     * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant tenants = 10509; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant.Builder addTenantsBuilder( + int index) { + return getTenantsFieldBuilder() + .addBuilder( + index, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant.getDefaultInstance()); + } + + /** + * + * + *
+     * The resulting tenants.
+     * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant tenants = 10509; + * + */ + public java.util.List + getTenantsBuilderList() { + return getTenantsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.TenantOrBuilder> + getTenantsFieldBuilder() { + if (tenantsBuilder_ == null) { + tenantsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.TenantOrBuilder>( + tenants_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + tenants_ = null; + } + return tenantsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * If present, the next page token can be provided to a subsequent
+     * ListTenants call to list the next page.
+     * If empty, there are no more pages.
+     * 
+ * + * string next_page_token = 10510; + * + * @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; + } + } + + /** + * + * + *
+     * If present, the next page token can be provided to a subsequent
+     * ListTenants call to list the next page.
+     * If empty, there are no more pages.
+     * 
+ * + * string next_page_token = 10510; + * + * @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; + } + } + + /** + * + * + *
+     * If present, the next page token can be provided to a subsequent
+     * ListTenants call to list the next page.
+     * If empty, there are no more pages.
+     * 
+ * + * string next_page_token = 10510; + * + * @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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * If present, the next page token can be provided to a subsequent
+     * ListTenants call to list the next page.
+     * If empty, there are no more pages.
+     * 
+ * + * string next_page_token = 10510; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * If present, the next page token can be provided to a subsequent
+     * ListTenants call to list the next page.
+     * If empty, there are no more pages.
+     * 
+ * + * string next_page_token = 10510; + * + * @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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureUnreachableIsMutable() { + if (!unreachable_.isModifiable()) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 10511; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 10511; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 10511; + * + * @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); + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 10511; + * + * @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); + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 10511; + * + * @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); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 10511; + * + * @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); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 10511; + * + * @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_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 10511; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 10511; + * + * @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); + bitField0_ |= 0x00000004; + 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.saasplatform.saasservicemgmt.v1beta1.ListTenantsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsResponse) + private static final com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsResponse(); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListTenantsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.saasplatform.saasservicemgmt.v1beta1.ListTenantsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ListTenantsResponseOrBuilder.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ListTenantsResponseOrBuilder.java new file mode 100644 index 000000000000..8111abb9ea82 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ListTenantsResponseOrBuilder.java @@ -0,0 +1,172 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +public interface ListTenantsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The resulting tenants.
+   * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant tenants = 10509; + * + */ + java.util.List getTenantsList(); + + /** + * + * + *
+   * The resulting tenants.
+   * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant tenants = 10509; + * + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant getTenants(int index); + + /** + * + * + *
+   * The resulting tenants.
+   * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant tenants = 10509; + * + */ + int getTenantsCount(); + + /** + * + * + *
+   * The resulting tenants.
+   * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant tenants = 10509; + * + */ + java.util.List + getTenantsOrBuilderList(); + + /** + * + * + *
+   * The resulting tenants.
+   * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant tenants = 10509; + * + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.TenantOrBuilder getTenantsOrBuilder( + int index); + + /** + * + * + *
+   * If present, the next page token can be provided to a subsequent
+   * ListTenants call to list the next page.
+   * If empty, there are no more pages.
+   * 
+ * + * string next_page_token = 10510; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
+   * If present, the next page token can be provided to a subsequent
+   * ListTenants call to list the next page.
+   * If empty, there are no more pages.
+   * 
+ * + * string next_page_token = 10510; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 10511; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 10511; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 10511; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 10511; + * + * @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/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ListUnitKindsRequest.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ListUnitKindsRequest.java new file mode 100644 index 000000000000..396bc27ba86b --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ListUnitKindsRequest.java @@ -0,0 +1,1343 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +/** + * + * + *
+ * The request structure for the ListUnitKinds method.
+ * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsRequest} + */ +public final class ListUnitKindsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsRequest) + ListUnitKindsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListUnitKindsRequest.newBuilder() to construct. + private ListUnitKindsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListUnitKindsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListUnitKindsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListUnitKindsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListUnitKindsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsRequest.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsRequest.Builder + .class); + } + + public static final int PARENT_FIELD_NUMBER = 10006; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The parent of the unit kind.
+   * 
+ * + * + * string parent = 10006 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + 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 of the unit kind.
+   * 
+ * + * + * string parent = 10006 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + 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 = 10505; + private int pageSize_ = 0; + + /** + * + * + *
+   * The maximum number of unit kinds to send per page.
+   * 
+ * + * int32 page_size = 10505; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 10506; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
+   * The page token: If the next_page_token from a previous response
+   * is provided, this request will send the subsequent page.
+   * 
+ * + * string page_token = 10506; + * + * @return The pageToken. + */ + @java.lang.Override + 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; + } + } + + /** + * + * + *
+   * The page token: If the next_page_token from a previous response
+   * is provided, this request will send the subsequent page.
+   * 
+ * + * string page_token = 10506; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + 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 = 10507; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
+   * Filter the list as specified in https://google.aip.dev/160.
+   * 
+ * + * string filter = 10507; + * + * @return The filter. + */ + @java.lang.Override + 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; + } + } + + /** + * + * + *
+   * Filter the list as specified in https://google.aip.dev/160.
+   * 
+ * + * string filter = 10507; + * + * @return The bytes for filter. + */ + @java.lang.Override + 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 = 10508; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
+   * Order results as specified in https://google.aip.dev/132.
+   * 
+ * + * string order_by = 10508; + * + * @return The orderBy. + */ + @java.lang.Override + 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; + } + } + + /** + * + * + *
+   * Order results as specified in https://google.aip.dev/132.
+   * 
+ * + * string order_by = 10508; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10006, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(10505, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10506, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10507, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10508, orderBy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10006, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(10505, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10506, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10507, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10508, orderBy_); + } + size += getUnknownFields().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.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsRequest)) { + return super.equals(obj); + } + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsRequest other = + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsRequest) 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsRequest + 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.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsRequest + 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.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsRequest + 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.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsRequest + 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.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsRequest + 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.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsRequest 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 request structure for the ListUnitKinds method.
+   * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsRequest) + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListUnitKindsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListUnitKindsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsRequest.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListUnitKindsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsRequest + getDefaultInstanceForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsRequest build() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsRequest + buildPartial() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsRequest result = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + } + + @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.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsRequest) { + return mergeFrom( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsRequest other) { + if (other + == com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 80050: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 80050 + case 84040: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 84040 + case 84050: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 84050 + case 84058: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 84058 + case 84066: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 84066 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. The parent of the unit kind.
+     * 
+ * + * + * string parent = 10006 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @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 of the unit kind.
+     * 
+ * + * + * string parent = 10006 [(.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_; + 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 of the unit kind.
+     * 
+ * + * + * string parent = 10006 [(.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) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent of the unit kind.
+     * 
+ * + * + * string parent = 10006 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent of the unit kind.
+     * 
+ * + * + * string parent = 10006 [(.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) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
+     * The maximum number of unit kinds to send per page.
+     * 
+ * + * int32 page_size = 10505; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
+     * The maximum number of unit kinds to send per page.
+     * 
+ * + * int32 page_size = 10505; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * The maximum number of unit kinds to send per page.
+     * 
+ * + * int32 page_size = 10505; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
+     * The page token: If the next_page_token from a previous response
+     * is provided, this request will send the subsequent page.
+     * 
+ * + * string page_token = 10506; + * + * @return The pageToken. + */ + 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; + } + } + + /** + * + * + *
+     * The page token: If the next_page_token from a previous response
+     * is provided, this request will send the subsequent page.
+     * 
+ * + * string page_token = 10506; + * + * @return The bytes for pageToken. + */ + 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; + } + } + + /** + * + * + *
+     * The page token: If the next_page_token from a previous response
+     * is provided, this request will send the subsequent page.
+     * 
+ * + * string page_token = 10506; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * The page token: If the next_page_token from a previous response
+     * is provided, this request will send the subsequent page.
+     * 
+ * + * string page_token = 10506; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * The page token: If the next_page_token from a previous response
+     * is provided, this request will send the subsequent page.
+     * 
+ * + * string page_token = 10506; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
+     * Filter the list as specified in https://google.aip.dev/160.
+     * 
+ * + * string filter = 10507; + * + * @return The filter. + */ + 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; + } + } + + /** + * + * + *
+     * Filter the list as specified in https://google.aip.dev/160.
+     * 
+ * + * string filter = 10507; + * + * @return The bytes for filter. + */ + 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; + } + } + + /** + * + * + *
+     * Filter the list as specified in https://google.aip.dev/160.
+     * 
+ * + * string filter = 10507; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Filter the list as specified in https://google.aip.dev/160.
+     * 
+ * + * string filter = 10507; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Filter the list as specified in https://google.aip.dev/160.
+     * 
+ * + * string filter = 10507; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
+     * Order results as specified in https://google.aip.dev/132.
+     * 
+ * + * string order_by = 10508; + * + * @return The orderBy. + */ + 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; + } + } + + /** + * + * + *
+     * Order results as specified in https://google.aip.dev/132.
+     * 
+ * + * string order_by = 10508; + * + * @return The bytes for orderBy. + */ + 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; + } + } + + /** + * + * + *
+     * Order results as specified in https://google.aip.dev/132.
+     * 
+ * + * string order_by = 10508; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Order results as specified in https://google.aip.dev/132.
+     * 
+ * + * string order_by = 10508; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Order results as specified in https://google.aip.dev/132.
+     * 
+ * + * string order_by = 10508; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + 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.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsRequest) + private static final com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsRequest(); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListUnitKindsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ListUnitKindsRequestOrBuilder.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ListUnitKindsRequestOrBuilder.java new file mode 100644 index 000000000000..6dd36f880f7e --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ListUnitKindsRequestOrBuilder.java @@ -0,0 +1,149 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +public interface ListUnitKindsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent of the unit kind.
+   * 
+ * + * + * string parent = 10006 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The parent of the unit kind.
+   * 
+ * + * + * string parent = 10006 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * The maximum number of unit kinds to send per page.
+   * 
+ * + * int32 page_size = 10505; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * The page token: If the next_page_token from a previous response
+   * is provided, this request will send the subsequent page.
+   * 
+ * + * string page_token = 10506; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
+   * The page token: If the next_page_token from a previous response
+   * is provided, this request will send the subsequent page.
+   * 
+ * + * string page_token = 10506; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Filter the list as specified in https://google.aip.dev/160.
+   * 
+ * + * string filter = 10507; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
+   * Filter the list as specified in https://google.aip.dev/160.
+   * 
+ * + * string filter = 10507; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Order results as specified in https://google.aip.dev/132.
+   * 
+ * + * string order_by = 10508; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
+   * Order results as specified in https://google.aip.dev/132.
+   * 
+ * + * string order_by = 10508; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ListUnitKindsResponse.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ListUnitKindsResponse.java new file mode 100644 index 000000000000..156adf0dd66c --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ListUnitKindsResponse.java @@ -0,0 +1,1540 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +/** + * + * + *
+ * The response structure for the ListUnitKinds method.
+ * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsResponse} + */ +public final class ListUnitKindsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsResponse) + ListUnitKindsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListUnitKindsResponse.newBuilder() to construct. + private ListUnitKindsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListUnitKindsResponse() { + unitKinds_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListUnitKindsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListUnitKindsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListUnitKindsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsResponse.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsResponse.Builder + .class); + } + + public static final int UNIT_KINDS_FIELD_NUMBER = 10509; + + @SuppressWarnings("serial") + private java.util.List unitKinds_; + + /** + * + * + *
+   * The resulting unit kinds.
+   * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind unit_kinds = 10509; + * + */ + @java.lang.Override + public java.util.List + getUnitKindsList() { + return unitKinds_; + } + + /** + * + * + *
+   * The resulting unit kinds.
+   * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind unit_kinds = 10509; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKindOrBuilder> + getUnitKindsOrBuilderList() { + return unitKinds_; + } + + /** + * + * + *
+   * The resulting unit kinds.
+   * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind unit_kinds = 10509; + * + */ + @java.lang.Override + public int getUnitKindsCount() { + return unitKinds_.size(); + } + + /** + * + * + *
+   * The resulting unit kinds.
+   * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind unit_kinds = 10509; + * + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind getUnitKinds(int index) { + return unitKinds_.get(index); + } + + /** + * + * + *
+   * The resulting unit kinds.
+   * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind unit_kinds = 10509; + * + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKindOrBuilder + getUnitKindsOrBuilder(int index) { + return unitKinds_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 10510; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * If present, the next page token can be provided to a subsequent
+   * ListUnitKinds call to list the next page.
+   * If empty, there are no more pages.
+   * 
+ * + * string next_page_token = 10510; + * + * @return The nextPageToken. + */ + @java.lang.Override + 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; + } + } + + /** + * + * + *
+   * If present, the next page token can be provided to a subsequent
+   * ListUnitKinds call to list the next page.
+   * If empty, there are no more pages.
+   * 
+ * + * string next_page_token = 10510; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + 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_FIELD_NUMBER = 10511; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 10511; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 10511; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 10511; + * + * @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); + } + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 10511; + * + * @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 < unitKinds_.size(); i++) { + output.writeMessage(10509, unitKinds_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10510, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10511, unreachable_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < unitKinds_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10509, unitKinds_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10510, nextPageToken_); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 3 * getUnreachableList().size(); + } + size += getUnknownFields().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.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsResponse)) { + return super.equals(obj); + } + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsResponse other = + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsResponse) obj; + + if (!getUnitKindsList().equals(other.getUnitKindsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getUnitKindsCount() > 0) { + hash = (37 * hash) + UNIT_KINDS_FIELD_NUMBER; + hash = (53 * hash) + getUnitKindsList().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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsResponse + 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.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsResponse + 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.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsResponse + 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.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsResponse + 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.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsResponse + 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.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsResponse 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 response structure for the ListUnitKinds method.
+   * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsResponse) + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListUnitKindsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListUnitKindsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsResponse.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsResponse.Builder + .class); + } + + // Construct using + // com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (unitKindsBuilder_ == null) { + unitKinds_ = java.util.Collections.emptyList(); + } else { + unitKinds_ = null; + unitKindsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListUnitKindsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsResponse + getDefaultInstanceForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsResponse build() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsResponse + buildPartial() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsResponse result = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsResponse result) { + if (unitKindsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + unitKinds_ = java.util.Collections.unmodifiableList(unitKinds_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.unitKinds_ = unitKinds_; + } else { + result.unitKinds_ = unitKindsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } + } + + @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.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsResponse) { + return mergeFrom( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsResponse other) { + if (other + == com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsResponse + .getDefaultInstance()) return this; + if (unitKindsBuilder_ == null) { + if (!other.unitKinds_.isEmpty()) { + if (unitKinds_.isEmpty()) { + unitKinds_ = other.unitKinds_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureUnitKindsIsMutable(); + unitKinds_.addAll(other.unitKinds_); + } + onChanged(); + } + } else { + if (!other.unitKinds_.isEmpty()) { + if (unitKindsBuilder_.isEmpty()) { + unitKindsBuilder_.dispose(); + unitKindsBuilder_ = null; + unitKinds_ = other.unitKinds_; + bitField0_ = (bitField0_ & ~0x00000001); + unitKindsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getUnitKindsFieldBuilder() + : null; + } else { + unitKindsBuilder_.addAllMessages(other.unitKinds_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ |= 0x00000004; + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 84074: + { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind m = + input.readMessage( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind.parser(), + extensionRegistry); + if (unitKindsBuilder_ == null) { + ensureUnitKindsIsMutable(); + unitKinds_.add(m); + } else { + unitKindsBuilder_.addMessage(m); + } + break; + } // case 84074 + case 84082: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 84082 + case 84090: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 84090 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List + unitKinds_ = java.util.Collections.emptyList(); + + private void ensureUnitKindsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + unitKinds_ = + new java.util.ArrayList( + unitKinds_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKindOrBuilder> + unitKindsBuilder_; + + /** + * + * + *
+     * The resulting unit kinds.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind unit_kinds = 10509; + * + */ + public java.util.List + getUnitKindsList() { + if (unitKindsBuilder_ == null) { + return java.util.Collections.unmodifiableList(unitKinds_); + } else { + return unitKindsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * The resulting unit kinds.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind unit_kinds = 10509; + * + */ + public int getUnitKindsCount() { + if (unitKindsBuilder_ == null) { + return unitKinds_.size(); + } else { + return unitKindsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * The resulting unit kinds.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind unit_kinds = 10509; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind getUnitKinds(int index) { + if (unitKindsBuilder_ == null) { + return unitKinds_.get(index); + } else { + return unitKindsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * The resulting unit kinds.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind unit_kinds = 10509; + * + */ + public Builder setUnitKinds( + int index, com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind value) { + if (unitKindsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnitKindsIsMutable(); + unitKinds_.set(index, value); + onChanged(); + } else { + unitKindsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The resulting unit kinds.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind unit_kinds = 10509; + * + */ + public Builder setUnitKinds( + int index, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind.Builder builderForValue) { + if (unitKindsBuilder_ == null) { + ensureUnitKindsIsMutable(); + unitKinds_.set(index, builderForValue.build()); + onChanged(); + } else { + unitKindsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The resulting unit kinds.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind unit_kinds = 10509; + * + */ + public Builder addUnitKinds( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind value) { + if (unitKindsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnitKindsIsMutable(); + unitKinds_.add(value); + onChanged(); + } else { + unitKindsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * The resulting unit kinds.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind unit_kinds = 10509; + * + */ + public Builder addUnitKinds( + int index, com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind value) { + if (unitKindsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnitKindsIsMutable(); + unitKinds_.add(index, value); + onChanged(); + } else { + unitKindsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The resulting unit kinds.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind unit_kinds = 10509; + * + */ + public Builder addUnitKinds( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind.Builder builderForValue) { + if (unitKindsBuilder_ == null) { + ensureUnitKindsIsMutable(); + unitKinds_.add(builderForValue.build()); + onChanged(); + } else { + unitKindsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The resulting unit kinds.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind unit_kinds = 10509; + * + */ + public Builder addUnitKinds( + int index, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind.Builder builderForValue) { + if (unitKindsBuilder_ == null) { + ensureUnitKindsIsMutable(); + unitKinds_.add(index, builderForValue.build()); + onChanged(); + } else { + unitKindsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The resulting unit kinds.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind unit_kinds = 10509; + * + */ + public Builder addAllUnitKinds( + java.lang.Iterable + values) { + if (unitKindsBuilder_ == null) { + ensureUnitKindsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unitKinds_); + onChanged(); + } else { + unitKindsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * The resulting unit kinds.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind unit_kinds = 10509; + * + */ + public Builder clearUnitKinds() { + if (unitKindsBuilder_ == null) { + unitKinds_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + unitKindsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The resulting unit kinds.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind unit_kinds = 10509; + * + */ + public Builder removeUnitKinds(int index) { + if (unitKindsBuilder_ == null) { + ensureUnitKindsIsMutable(); + unitKinds_.remove(index); + onChanged(); + } else { + unitKindsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * The resulting unit kinds.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind unit_kinds = 10509; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind.Builder + getUnitKindsBuilder(int index) { + return getUnitKindsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * The resulting unit kinds.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind unit_kinds = 10509; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKindOrBuilder + getUnitKindsOrBuilder(int index) { + if (unitKindsBuilder_ == null) { + return unitKinds_.get(index); + } else { + return unitKindsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * The resulting unit kinds.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind unit_kinds = 10509; + * + */ + public java.util.List< + ? extends com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKindOrBuilder> + getUnitKindsOrBuilderList() { + if (unitKindsBuilder_ != null) { + return unitKindsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(unitKinds_); + } + } + + /** + * + * + *
+     * The resulting unit kinds.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind unit_kinds = 10509; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind.Builder + addUnitKindsBuilder() { + return getUnitKindsFieldBuilder() + .addBuilder( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind.getDefaultInstance()); + } + + /** + * + * + *
+     * The resulting unit kinds.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind unit_kinds = 10509; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind.Builder + addUnitKindsBuilder(int index) { + return getUnitKindsFieldBuilder() + .addBuilder( + index, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind.getDefaultInstance()); + } + + /** + * + * + *
+     * The resulting unit kinds.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind unit_kinds = 10509; + * + */ + public java.util.List + getUnitKindsBuilderList() { + return getUnitKindsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKindOrBuilder> + getUnitKindsFieldBuilder() { + if (unitKindsBuilder_ == null) { + unitKindsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKindOrBuilder>( + unitKinds_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + unitKinds_ = null; + } + return unitKindsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * If present, the next page token can be provided to a subsequent
+     * ListUnitKinds call to list the next page.
+     * If empty, there are no more pages.
+     * 
+ * + * string next_page_token = 10510; + * + * @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; + } + } + + /** + * + * + *
+     * If present, the next page token can be provided to a subsequent
+     * ListUnitKinds call to list the next page.
+     * If empty, there are no more pages.
+     * 
+ * + * string next_page_token = 10510; + * + * @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; + } + } + + /** + * + * + *
+     * If present, the next page token can be provided to a subsequent
+     * ListUnitKinds call to list the next page.
+     * If empty, there are no more pages.
+     * 
+ * + * string next_page_token = 10510; + * + * @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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * If present, the next page token can be provided to a subsequent
+     * ListUnitKinds call to list the next page.
+     * If empty, there are no more pages.
+     * 
+ * + * string next_page_token = 10510; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * If present, the next page token can be provided to a subsequent
+     * ListUnitKinds call to list the next page.
+     * If empty, there are no more pages.
+     * 
+ * + * string next_page_token = 10510; + * + * @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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureUnreachableIsMutable() { + if (!unreachable_.isModifiable()) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 10511; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 10511; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 10511; + * + * @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); + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 10511; + * + * @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); + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 10511; + * + * @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); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 10511; + * + * @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); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 10511; + * + * @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_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 10511; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 10511; + * + * @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); + bitField0_ |= 0x00000004; + 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.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsResponse) + private static final com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsResponse(); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListUnitKindsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ListUnitKindsResponseOrBuilder.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ListUnitKindsResponseOrBuilder.java new file mode 100644 index 000000000000..2f2377b61039 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ListUnitKindsResponseOrBuilder.java @@ -0,0 +1,172 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +public interface ListUnitKindsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The resulting unit kinds.
+   * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind unit_kinds = 10509; + * + */ + java.util.List getUnitKindsList(); + + /** + * + * + *
+   * The resulting unit kinds.
+   * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind unit_kinds = 10509; + * + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind getUnitKinds(int index); + + /** + * + * + *
+   * The resulting unit kinds.
+   * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind unit_kinds = 10509; + * + */ + int getUnitKindsCount(); + + /** + * + * + *
+   * The resulting unit kinds.
+   * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind unit_kinds = 10509; + * + */ + java.util.List + getUnitKindsOrBuilderList(); + + /** + * + * + *
+   * The resulting unit kinds.
+   * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind unit_kinds = 10509; + * + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKindOrBuilder getUnitKindsOrBuilder( + int index); + + /** + * + * + *
+   * If present, the next page token can be provided to a subsequent
+   * ListUnitKinds call to list the next page.
+   * If empty, there are no more pages.
+   * 
+ * + * string next_page_token = 10510; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
+   * If present, the next page token can be provided to a subsequent
+   * ListUnitKinds call to list the next page.
+   * If empty, there are no more pages.
+   * 
+ * + * string next_page_token = 10510; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 10511; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 10511; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 10511; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 10511; + * + * @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/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ListUnitOperationsRequest.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ListUnitOperationsRequest.java new file mode 100644 index 000000000000..95ae71ca0898 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ListUnitOperationsRequest.java @@ -0,0 +1,1348 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +/** + * + * + *
+ * The request structure for the ListUnitOperations method.
+ * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsRequest} + */ +public final class ListUnitOperationsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsRequest) + ListUnitOperationsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListUnitOperationsRequest.newBuilder() to construct. + private ListUnitOperationsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListUnitOperationsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListUnitOperationsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListUnitOperationsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListUnitOperationsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsRequest.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsRequest.Builder + .class); + } + + public static final int PARENT_FIELD_NUMBER = 10006; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The parent of the unit operation.
+   * 
+ * + * + * string parent = 10006 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + 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 of the unit operation.
+   * 
+ * + * + * string parent = 10006 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + 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 = 10505; + private int pageSize_ = 0; + + /** + * + * + *
+   * The maximum number of unit operations to send per page.
+   * 
+ * + * int32 page_size = 10505; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 10506; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
+   * The page token: If the next_page_token from a previous response
+   * is provided, this request will send the subsequent page.
+   * 
+ * + * string page_token = 10506; + * + * @return The pageToken. + */ + @java.lang.Override + 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; + } + } + + /** + * + * + *
+   * The page token: If the next_page_token from a previous response
+   * is provided, this request will send the subsequent page.
+   * 
+ * + * string page_token = 10506; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + 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 = 10507; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
+   * Filter the list as specified in https://google.aip.dev/160.
+   * 
+ * + * string filter = 10507; + * + * @return The filter. + */ + @java.lang.Override + 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; + } + } + + /** + * + * + *
+   * Filter the list as specified in https://google.aip.dev/160.
+   * 
+ * + * string filter = 10507; + * + * @return The bytes for filter. + */ + @java.lang.Override + 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 = 10508; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
+   * Order results as specified in https://google.aip.dev/132.
+   * 
+ * + * string order_by = 10508; + * + * @return The orderBy. + */ + @java.lang.Override + 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; + } + } + + /** + * + * + *
+   * Order results as specified in https://google.aip.dev/132.
+   * 
+ * + * string order_by = 10508; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10006, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(10505, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10506, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10507, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10508, orderBy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10006, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(10505, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10506, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10507, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10508, orderBy_); + } + size += getUnknownFields().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.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsRequest)) { + return super.equals(obj); + } + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsRequest other = + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsRequest) 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsRequest + 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.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsRequest + 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.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsRequest + 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.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsRequest + 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.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsRequest + 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.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsRequest 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 request structure for the ListUnitOperations method.
+   * 
+ * + * Protobuf type {@code + * google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsRequest) + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListUnitOperationsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListUnitOperationsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsRequest.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsRequest + .Builder.class); + } + + // Construct using + // com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListUnitOperationsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsRequest + getDefaultInstanceForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsRequest build() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsRequest + buildPartial() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsRequest result = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + } + + @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.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsRequest) { + return mergeFrom( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsRequest) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsRequest other) { + if (other + == com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 80050: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 80050 + case 84040: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 84040 + case 84050: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 84050 + case 84058: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 84058 + case 84066: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 84066 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. The parent of the unit operation.
+     * 
+ * + * + * string parent = 10006 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @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 of the unit operation.
+     * 
+ * + * + * string parent = 10006 [(.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_; + 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 of the unit operation.
+     * 
+ * + * + * string parent = 10006 [(.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) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent of the unit operation.
+     * 
+ * + * + * string parent = 10006 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent of the unit operation.
+     * 
+ * + * + * string parent = 10006 [(.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) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
+     * The maximum number of unit operations to send per page.
+     * 
+ * + * int32 page_size = 10505; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
+     * The maximum number of unit operations to send per page.
+     * 
+ * + * int32 page_size = 10505; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * The maximum number of unit operations to send per page.
+     * 
+ * + * int32 page_size = 10505; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
+     * The page token: If the next_page_token from a previous response
+     * is provided, this request will send the subsequent page.
+     * 
+ * + * string page_token = 10506; + * + * @return The pageToken. + */ + 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; + } + } + + /** + * + * + *
+     * The page token: If the next_page_token from a previous response
+     * is provided, this request will send the subsequent page.
+     * 
+ * + * string page_token = 10506; + * + * @return The bytes for pageToken. + */ + 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; + } + } + + /** + * + * + *
+     * The page token: If the next_page_token from a previous response
+     * is provided, this request will send the subsequent page.
+     * 
+ * + * string page_token = 10506; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * The page token: If the next_page_token from a previous response
+     * is provided, this request will send the subsequent page.
+     * 
+ * + * string page_token = 10506; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * The page token: If the next_page_token from a previous response
+     * is provided, this request will send the subsequent page.
+     * 
+ * + * string page_token = 10506; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
+     * Filter the list as specified in https://google.aip.dev/160.
+     * 
+ * + * string filter = 10507; + * + * @return The filter. + */ + 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; + } + } + + /** + * + * + *
+     * Filter the list as specified in https://google.aip.dev/160.
+     * 
+ * + * string filter = 10507; + * + * @return The bytes for filter. + */ + 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; + } + } + + /** + * + * + *
+     * Filter the list as specified in https://google.aip.dev/160.
+     * 
+ * + * string filter = 10507; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Filter the list as specified in https://google.aip.dev/160.
+     * 
+ * + * string filter = 10507; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Filter the list as specified in https://google.aip.dev/160.
+     * 
+ * + * string filter = 10507; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
+     * Order results as specified in https://google.aip.dev/132.
+     * 
+ * + * string order_by = 10508; + * + * @return The orderBy. + */ + 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; + } + } + + /** + * + * + *
+     * Order results as specified in https://google.aip.dev/132.
+     * 
+ * + * string order_by = 10508; + * + * @return The bytes for orderBy. + */ + 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; + } + } + + /** + * + * + *
+     * Order results as specified in https://google.aip.dev/132.
+     * 
+ * + * string order_by = 10508; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Order results as specified in https://google.aip.dev/132.
+     * 
+ * + * string order_by = 10508; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Order results as specified in https://google.aip.dev/132.
+     * 
+ * + * string order_by = 10508; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + 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.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsRequest) + private static final com.google.cloud.saasplatform.saasservicemgmt.v1beta1 + .ListUnitOperationsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsRequest(); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListUnitOperationsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ListUnitOperationsRequestOrBuilder.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ListUnitOperationsRequestOrBuilder.java new file mode 100644 index 000000000000..0a4d8c49f890 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ListUnitOperationsRequestOrBuilder.java @@ -0,0 +1,149 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +public interface ListUnitOperationsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent of the unit operation.
+   * 
+ * + * + * string parent = 10006 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The parent of the unit operation.
+   * 
+ * + * + * string parent = 10006 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * The maximum number of unit operations to send per page.
+   * 
+ * + * int32 page_size = 10505; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * The page token: If the next_page_token from a previous response
+   * is provided, this request will send the subsequent page.
+   * 
+ * + * string page_token = 10506; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
+   * The page token: If the next_page_token from a previous response
+   * is provided, this request will send the subsequent page.
+   * 
+ * + * string page_token = 10506; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Filter the list as specified in https://google.aip.dev/160.
+   * 
+ * + * string filter = 10507; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
+   * Filter the list as specified in https://google.aip.dev/160.
+   * 
+ * + * string filter = 10507; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Order results as specified in https://google.aip.dev/132.
+   * 
+ * + * string order_by = 10508; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
+   * Order results as specified in https://google.aip.dev/132.
+   * 
+ * + * string order_by = 10508; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ListUnitOperationsResponse.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ListUnitOperationsResponse.java new file mode 100644 index 000000000000..19aa36d8da22 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ListUnitOperationsResponse.java @@ -0,0 +1,1570 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +/** + * + * + *
+ * The response structure for the ListUnitOperations method.
+ * 
+ * + * Protobuf type {@code + * google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsResponse} + */ +public final class ListUnitOperationsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsResponse) + ListUnitOperationsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListUnitOperationsResponse.newBuilder() to construct. + private ListUnitOperationsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListUnitOperationsResponse() { + unitOperations_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListUnitOperationsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListUnitOperationsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListUnitOperationsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsResponse.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsResponse.Builder + .class); + } + + public static final int UNIT_OPERATIONS_FIELD_NUMBER = 10509; + + @SuppressWarnings("serial") + private java.util.List + unitOperations_; + + /** + * + * + *
+   * The resulting unit operations.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation unit_operations = 10509; + * + */ + @java.lang.Override + public java.util.List + getUnitOperationsList() { + return unitOperations_; + } + + /** + * + * + *
+   * The resulting unit operations.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation unit_operations = 10509; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationOrBuilder> + getUnitOperationsOrBuilderList() { + return unitOperations_; + } + + /** + * + * + *
+   * The resulting unit operations.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation unit_operations = 10509; + * + */ + @java.lang.Override + public int getUnitOperationsCount() { + return unitOperations_.size(); + } + + /** + * + * + *
+   * The resulting unit operations.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation unit_operations = 10509; + * + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation getUnitOperations( + int index) { + return unitOperations_.get(index); + } + + /** + * + * + *
+   * The resulting unit operations.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation unit_operations = 10509; + * + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationOrBuilder + getUnitOperationsOrBuilder(int index) { + return unitOperations_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 10510; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * If present, the next page token can be provided to a subsequent
+   * ListUnitOperations call to list the next page.
+   * If empty, there are no more pages.
+   * 
+ * + * string next_page_token = 10510; + * + * @return The nextPageToken. + */ + @java.lang.Override + 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; + } + } + + /** + * + * + *
+   * If present, the next page token can be provided to a subsequent
+   * ListUnitOperations call to list the next page.
+   * If empty, there are no more pages.
+   * 
+ * + * string next_page_token = 10510; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + 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_FIELD_NUMBER = 10511; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 10511; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 10511; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 10511; + * + * @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); + } + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 10511; + * + * @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 < unitOperations_.size(); i++) { + output.writeMessage(10509, unitOperations_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10510, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10511, unreachable_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < unitOperations_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(10509, unitOperations_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10510, nextPageToken_); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 3 * getUnreachableList().size(); + } + size += getUnknownFields().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.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsResponse)) { + return super.equals(obj); + } + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsResponse other = + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsResponse) obj; + + if (!getUnitOperationsList().equals(other.getUnitOperationsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getUnitOperationsCount() > 0) { + hash = (37 * hash) + UNIT_OPERATIONS_FIELD_NUMBER; + hash = (53 * hash) + getUnitOperationsList().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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsResponse + 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.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsResponse + 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.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsResponse + 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.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsResponse + 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.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsResponse + 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.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsResponse 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 response structure for the ListUnitOperations method.
+   * 
+ * + * Protobuf type {@code + * google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsResponse) + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListUnitOperationsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListUnitOperationsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsResponse + .class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsResponse + .Builder.class); + } + + // Construct using + // com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (unitOperationsBuilder_ == null) { + unitOperations_ = java.util.Collections.emptyList(); + } else { + unitOperations_ = null; + unitOperationsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListUnitOperationsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsResponse + getDefaultInstanceForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsResponse + build() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsResponse + buildPartial() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsResponse result = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsResponse( + this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsResponse result) { + if (unitOperationsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + unitOperations_ = java.util.Collections.unmodifiableList(unitOperations_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.unitOperations_ = unitOperations_; + } else { + result.unitOperations_ = unitOperationsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } + } + + @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.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsResponse) { + return mergeFrom( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsResponse) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsResponse other) { + if (other + == com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsResponse + .getDefaultInstance()) return this; + if (unitOperationsBuilder_ == null) { + if (!other.unitOperations_.isEmpty()) { + if (unitOperations_.isEmpty()) { + unitOperations_ = other.unitOperations_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureUnitOperationsIsMutable(); + unitOperations_.addAll(other.unitOperations_); + } + onChanged(); + } + } else { + if (!other.unitOperations_.isEmpty()) { + if (unitOperationsBuilder_.isEmpty()) { + unitOperationsBuilder_.dispose(); + unitOperationsBuilder_ = null; + unitOperations_ = other.unitOperations_; + bitField0_ = (bitField0_ & ~0x00000001); + unitOperationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getUnitOperationsFieldBuilder() + : null; + } else { + unitOperationsBuilder_.addAllMessages(other.unitOperations_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ |= 0x00000004; + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 84074: + { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation m = + input.readMessage( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation + .parser(), + extensionRegistry); + if (unitOperationsBuilder_ == null) { + ensureUnitOperationsIsMutable(); + unitOperations_.add(m); + } else { + unitOperationsBuilder_.addMessage(m); + } + break; + } // case 84074 + case 84082: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 84082 + case 84090: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 84090 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List + unitOperations_ = java.util.Collections.emptyList(); + + private void ensureUnitOperationsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + unitOperations_ = + new java.util.ArrayList< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation>( + unitOperations_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationOrBuilder> + unitOperationsBuilder_; + + /** + * + * + *
+     * The resulting unit operations.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation unit_operations = 10509; + * + */ + public java.util.List + getUnitOperationsList() { + if (unitOperationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(unitOperations_); + } else { + return unitOperationsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * The resulting unit operations.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation unit_operations = 10509; + * + */ + public int getUnitOperationsCount() { + if (unitOperationsBuilder_ == null) { + return unitOperations_.size(); + } else { + return unitOperationsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * The resulting unit operations.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation unit_operations = 10509; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation getUnitOperations( + int index) { + if (unitOperationsBuilder_ == null) { + return unitOperations_.get(index); + } else { + return unitOperationsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * The resulting unit operations.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation unit_operations = 10509; + * + */ + public Builder setUnitOperations( + int index, com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation value) { + if (unitOperationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnitOperationsIsMutable(); + unitOperations_.set(index, value); + onChanged(); + } else { + unitOperationsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The resulting unit operations.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation unit_operations = 10509; + * + */ + public Builder setUnitOperations( + int index, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation.Builder + builderForValue) { + if (unitOperationsBuilder_ == null) { + ensureUnitOperationsIsMutable(); + unitOperations_.set(index, builderForValue.build()); + onChanged(); + } else { + unitOperationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The resulting unit operations.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation unit_operations = 10509; + * + */ + public Builder addUnitOperations( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation value) { + if (unitOperationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnitOperationsIsMutable(); + unitOperations_.add(value); + onChanged(); + } else { + unitOperationsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * The resulting unit operations.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation unit_operations = 10509; + * + */ + public Builder addUnitOperations( + int index, com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation value) { + if (unitOperationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnitOperationsIsMutable(); + unitOperations_.add(index, value); + onChanged(); + } else { + unitOperationsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The resulting unit operations.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation unit_operations = 10509; + * + */ + public Builder addUnitOperations( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation.Builder + builderForValue) { + if (unitOperationsBuilder_ == null) { + ensureUnitOperationsIsMutable(); + unitOperations_.add(builderForValue.build()); + onChanged(); + } else { + unitOperationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The resulting unit operations.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation unit_operations = 10509; + * + */ + public Builder addUnitOperations( + int index, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation.Builder + builderForValue) { + if (unitOperationsBuilder_ == null) { + ensureUnitOperationsIsMutable(); + unitOperations_.add(index, builderForValue.build()); + onChanged(); + } else { + unitOperationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The resulting unit operations.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation unit_operations = 10509; + * + */ + public Builder addAllUnitOperations( + java.lang.Iterable< + ? extends com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation> + values) { + if (unitOperationsBuilder_ == null) { + ensureUnitOperationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unitOperations_); + onChanged(); + } else { + unitOperationsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * The resulting unit operations.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation unit_operations = 10509; + * + */ + public Builder clearUnitOperations() { + if (unitOperationsBuilder_ == null) { + unitOperations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + unitOperationsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The resulting unit operations.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation unit_operations = 10509; + * + */ + public Builder removeUnitOperations(int index) { + if (unitOperationsBuilder_ == null) { + ensureUnitOperationsIsMutable(); + unitOperations_.remove(index); + onChanged(); + } else { + unitOperationsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * The resulting unit operations.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation unit_operations = 10509; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation.Builder + getUnitOperationsBuilder(int index) { + return getUnitOperationsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * The resulting unit operations.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation unit_operations = 10509; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationOrBuilder + getUnitOperationsOrBuilder(int index) { + if (unitOperationsBuilder_ == null) { + return unitOperations_.get(index); + } else { + return unitOperationsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * The resulting unit operations.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation unit_operations = 10509; + * + */ + public java.util.List< + ? extends com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationOrBuilder> + getUnitOperationsOrBuilderList() { + if (unitOperationsBuilder_ != null) { + return unitOperationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(unitOperations_); + } + } + + /** + * + * + *
+     * The resulting unit operations.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation unit_operations = 10509; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation.Builder + addUnitOperationsBuilder() { + return getUnitOperationsFieldBuilder() + .addBuilder( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation + .getDefaultInstance()); + } + + /** + * + * + *
+     * The resulting unit operations.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation unit_operations = 10509; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation.Builder + addUnitOperationsBuilder(int index) { + return getUnitOperationsFieldBuilder() + .addBuilder( + index, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation + .getDefaultInstance()); + } + + /** + * + * + *
+     * The resulting unit operations.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation unit_operations = 10509; + * + */ + public java.util.List< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation.Builder> + getUnitOperationsBuilderList() { + return getUnitOperationsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationOrBuilder> + getUnitOperationsFieldBuilder() { + if (unitOperationsBuilder_ == null) { + unitOperationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationOrBuilder>( + unitOperations_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + unitOperations_ = null; + } + return unitOperationsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * If present, the next page token can be provided to a subsequent
+     * ListUnitOperations call to list the next page.
+     * If empty, there are no more pages.
+     * 
+ * + * string next_page_token = 10510; + * + * @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; + } + } + + /** + * + * + *
+     * If present, the next page token can be provided to a subsequent
+     * ListUnitOperations call to list the next page.
+     * If empty, there are no more pages.
+     * 
+ * + * string next_page_token = 10510; + * + * @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; + } + } + + /** + * + * + *
+     * If present, the next page token can be provided to a subsequent
+     * ListUnitOperations call to list the next page.
+     * If empty, there are no more pages.
+     * 
+ * + * string next_page_token = 10510; + * + * @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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * If present, the next page token can be provided to a subsequent
+     * ListUnitOperations call to list the next page.
+     * If empty, there are no more pages.
+     * 
+ * + * string next_page_token = 10510; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * If present, the next page token can be provided to a subsequent
+     * ListUnitOperations call to list the next page.
+     * If empty, there are no more pages.
+     * 
+ * + * string next_page_token = 10510; + * + * @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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureUnreachableIsMutable() { + if (!unreachable_.isModifiable()) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 10511; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 10511; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 10511; + * + * @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); + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 10511; + * + * @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); + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 10511; + * + * @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); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 10511; + * + * @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); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 10511; + * + * @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_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 10511; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 10511; + * + * @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); + bitField0_ |= 0x00000004; + 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.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsResponse) + private static final com.google.cloud.saasplatform.saasservicemgmt.v1beta1 + .ListUnitOperationsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsResponse(); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListUnitOperationsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ListUnitOperationsResponseOrBuilder.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ListUnitOperationsResponseOrBuilder.java new file mode 100644 index 000000000000..ce189f68cfab --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ListUnitOperationsResponseOrBuilder.java @@ -0,0 +1,179 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +public interface ListUnitOperationsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The resulting unit operations.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation unit_operations = 10509; + * + */ + java.util.List + getUnitOperationsList(); + + /** + * + * + *
+   * The resulting unit operations.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation unit_operations = 10509; + * + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation getUnitOperations(int index); + + /** + * + * + *
+   * The resulting unit operations.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation unit_operations = 10509; + * + */ + int getUnitOperationsCount(); + + /** + * + * + *
+   * The resulting unit operations.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation unit_operations = 10509; + * + */ + java.util.List< + ? extends com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationOrBuilder> + getUnitOperationsOrBuilderList(); + + /** + * + * + *
+   * The resulting unit operations.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation unit_operations = 10509; + * + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationOrBuilder + getUnitOperationsOrBuilder(int index); + + /** + * + * + *
+   * If present, the next page token can be provided to a subsequent
+   * ListUnitOperations call to list the next page.
+   * If empty, there are no more pages.
+   * 
+ * + * string next_page_token = 10510; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
+   * If present, the next page token can be provided to a subsequent
+   * ListUnitOperations call to list the next page.
+   * If empty, there are no more pages.
+   * 
+ * + * string next_page_token = 10510; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 10511; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 10511; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 10511; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 10511; + * + * @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/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ListUnitsRequest.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ListUnitsRequest.java new file mode 100644 index 000000000000..0c5a35df8163 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ListUnitsRequest.java @@ -0,0 +1,1332 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +/** + * + * + *
+ * The request structure for the ListUnits method.
+ * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsRequest} + */ +public final class ListUnitsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsRequest) + ListUnitsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListUnitsRequest.newBuilder() to construct. + private ListUnitsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListUnitsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListUnitsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListUnitsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListUnitsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsRequest.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 10006; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The parent of the unit.
+   * 
+ * + * + * string parent = 10006 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + 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 of the unit.
+   * 
+ * + * + * string parent = 10006 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + 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 = 10505; + private int pageSize_ = 0; + + /** + * + * + *
+   * The maximum number of units to send per page.
+   * 
+ * + * int32 page_size = 10505; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 10506; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
+   * The page token: If the next_page_token from a previous response
+   * is provided, this request will send the subsequent page.
+   * 
+ * + * string page_token = 10506; + * + * @return The pageToken. + */ + @java.lang.Override + 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; + } + } + + /** + * + * + *
+   * The page token: If the next_page_token from a previous response
+   * is provided, this request will send the subsequent page.
+   * 
+ * + * string page_token = 10506; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + 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 = 10507; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
+   * Filter the list as specified in https://google.aip.dev/160.
+   * 
+ * + * string filter = 10507; + * + * @return The filter. + */ + @java.lang.Override + 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; + } + } + + /** + * + * + *
+   * Filter the list as specified in https://google.aip.dev/160.
+   * 
+ * + * string filter = 10507; + * + * @return The bytes for filter. + */ + @java.lang.Override + 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 = 10508; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
+   * Order results as specified in https://google.aip.dev/132.
+   * 
+ * + * string order_by = 10508; + * + * @return The orderBy. + */ + @java.lang.Override + 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; + } + } + + /** + * + * + *
+   * Order results as specified in https://google.aip.dev/132.
+   * 
+ * + * string order_by = 10508; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10006, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(10505, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10506, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10507, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10508, orderBy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10006, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(10505, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10506, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10507, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10508, orderBy_); + } + size += getUnknownFields().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.saasplatform.saasservicemgmt.v1beta1.ListUnitsRequest)) { + return super.equals(obj); + } + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsRequest other = + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsRequest) 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsRequest 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.saasplatform.saasservicemgmt.v1beta1.ListUnitsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsRequest 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.saasplatform.saasservicemgmt.v1beta1.ListUnitsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsRequest 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.saasplatform.saasservicemgmt.v1beta1.ListUnitsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsRequest + 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.saasplatform.saasservicemgmt.v1beta1.ListUnitsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsRequest 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.saasplatform.saasservicemgmt.v1beta1.ListUnitsRequest 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 request structure for the ListUnits method.
+   * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsRequest) + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListUnitsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListUnitsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsRequest.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsRequest.Builder.class); + } + + // Construct using + // com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListUnitsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsRequest + getDefaultInstanceForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsRequest build() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsRequest buildPartial() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsRequest result = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + } + + @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.saasplatform.saasservicemgmt.v1beta1.ListUnitsRequest) { + return mergeFrom( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsRequest other) { + if (other + == com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 80050: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 80050 + case 84040: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 84040 + case 84050: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 84050 + case 84058: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 84058 + case 84066: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 84066 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. The parent of the unit.
+     * 
+ * + * + * string parent = 10006 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @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 of the unit.
+     * 
+ * + * + * string parent = 10006 [(.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_; + 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 of the unit.
+     * 
+ * + * + * string parent = 10006 [(.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) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent of the unit.
+     * 
+ * + * + * string parent = 10006 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent of the unit.
+     * 
+ * + * + * string parent = 10006 [(.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) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
+     * The maximum number of units to send per page.
+     * 
+ * + * int32 page_size = 10505; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
+     * The maximum number of units to send per page.
+     * 
+ * + * int32 page_size = 10505; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * The maximum number of units to send per page.
+     * 
+ * + * int32 page_size = 10505; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
+     * The page token: If the next_page_token from a previous response
+     * is provided, this request will send the subsequent page.
+     * 
+ * + * string page_token = 10506; + * + * @return The pageToken. + */ + 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; + } + } + + /** + * + * + *
+     * The page token: If the next_page_token from a previous response
+     * is provided, this request will send the subsequent page.
+     * 
+ * + * string page_token = 10506; + * + * @return The bytes for pageToken. + */ + 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; + } + } + + /** + * + * + *
+     * The page token: If the next_page_token from a previous response
+     * is provided, this request will send the subsequent page.
+     * 
+ * + * string page_token = 10506; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * The page token: If the next_page_token from a previous response
+     * is provided, this request will send the subsequent page.
+     * 
+ * + * string page_token = 10506; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * The page token: If the next_page_token from a previous response
+     * is provided, this request will send the subsequent page.
+     * 
+ * + * string page_token = 10506; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
+     * Filter the list as specified in https://google.aip.dev/160.
+     * 
+ * + * string filter = 10507; + * + * @return The filter. + */ + 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; + } + } + + /** + * + * + *
+     * Filter the list as specified in https://google.aip.dev/160.
+     * 
+ * + * string filter = 10507; + * + * @return The bytes for filter. + */ + 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; + } + } + + /** + * + * + *
+     * Filter the list as specified in https://google.aip.dev/160.
+     * 
+ * + * string filter = 10507; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Filter the list as specified in https://google.aip.dev/160.
+     * 
+ * + * string filter = 10507; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Filter the list as specified in https://google.aip.dev/160.
+     * 
+ * + * string filter = 10507; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
+     * Order results as specified in https://google.aip.dev/132.
+     * 
+ * + * string order_by = 10508; + * + * @return The orderBy. + */ + 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; + } + } + + /** + * + * + *
+     * Order results as specified in https://google.aip.dev/132.
+     * 
+ * + * string order_by = 10508; + * + * @return The bytes for orderBy. + */ + 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; + } + } + + /** + * + * + *
+     * Order results as specified in https://google.aip.dev/132.
+     * 
+ * + * string order_by = 10508; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Order results as specified in https://google.aip.dev/132.
+     * 
+ * + * string order_by = 10508; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Order results as specified in https://google.aip.dev/132.
+     * 
+ * + * string order_by = 10508; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + 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.saasplatform.saasservicemgmt.v1beta1.ListUnitsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsRequest) + private static final com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsRequest(); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListUnitsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.saasplatform.saasservicemgmt.v1beta1.ListUnitsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ListUnitsRequestOrBuilder.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ListUnitsRequestOrBuilder.java new file mode 100644 index 000000000000..8274d9abb43a --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ListUnitsRequestOrBuilder.java @@ -0,0 +1,149 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +public interface ListUnitsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent of the unit.
+   * 
+ * + * + * string parent = 10006 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The parent of the unit.
+   * 
+ * + * + * string parent = 10006 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * The maximum number of units to send per page.
+   * 
+ * + * int32 page_size = 10505; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * The page token: If the next_page_token from a previous response
+   * is provided, this request will send the subsequent page.
+   * 
+ * + * string page_token = 10506; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
+   * The page token: If the next_page_token from a previous response
+   * is provided, this request will send the subsequent page.
+   * 
+ * + * string page_token = 10506; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Filter the list as specified in https://google.aip.dev/160.
+   * 
+ * + * string filter = 10507; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
+   * Filter the list as specified in https://google.aip.dev/160.
+   * 
+ * + * string filter = 10507; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Order results as specified in https://google.aip.dev/132.
+   * 
+ * + * string order_by = 10508; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
+   * Order results as specified in https://google.aip.dev/132.
+   * 
+ * + * string order_by = 10508; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ListUnitsResponse.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ListUnitsResponse.java new file mode 100644 index 000000000000..27724d0e2a86 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ListUnitsResponse.java @@ -0,0 +1,1488 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +/** + * + * + *
+ * The response structure for the ListUnits method.
+ * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsResponse} + */ +public final class ListUnitsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsResponse) + ListUnitsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListUnitsResponse.newBuilder() to construct. + private ListUnitsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListUnitsResponse() { + units_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListUnitsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListUnitsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListUnitsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsResponse.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsResponse.Builder.class); + } + + public static final int UNITS_FIELD_NUMBER = 10509; + + @SuppressWarnings("serial") + private java.util.List units_; + + /** + * + * + *
+   * The resulting units.
+   * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit units = 10509; + */ + @java.lang.Override + public java.util.List getUnitsList() { + return units_; + } + + /** + * + * + *
+   * The resulting units.
+   * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit units = 10509; + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOrBuilder> + getUnitsOrBuilderList() { + return units_; + } + + /** + * + * + *
+   * The resulting units.
+   * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit units = 10509; + */ + @java.lang.Override + public int getUnitsCount() { + return units_.size(); + } + + /** + * + * + *
+   * The resulting units.
+   * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit units = 10509; + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit getUnits(int index) { + return units_.get(index); + } + + /** + * + * + *
+   * The resulting units.
+   * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit units = 10509; + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOrBuilder getUnitsOrBuilder( + int index) { + return units_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 10510; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * If present, the next page token can be provided to a subsequent
+   * ListUnits call to list the next page.
+   * If empty, there are no more pages.
+   * 
+ * + * string next_page_token = 10510; + * + * @return The nextPageToken. + */ + @java.lang.Override + 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; + } + } + + /** + * + * + *
+   * If present, the next page token can be provided to a subsequent
+   * ListUnits call to list the next page.
+   * If empty, there are no more pages.
+   * 
+ * + * string next_page_token = 10510; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + 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_FIELD_NUMBER = 10511; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 10511; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 10511; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 10511; + * + * @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); + } + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 10511; + * + * @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 < units_.size(); i++) { + output.writeMessage(10509, units_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10510, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10511, unreachable_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < units_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10509, units_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10510, nextPageToken_); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 3 * getUnreachableList().size(); + } + size += getUnknownFields().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.saasplatform.saasservicemgmt.v1beta1.ListUnitsResponse)) { + return super.equals(obj); + } + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsResponse other = + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsResponse) obj; + + if (!getUnitsList().equals(other.getUnitsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getUnitsCount() > 0) { + hash = (37 * hash) + UNITS_FIELD_NUMBER; + hash = (53 * hash) + getUnitsList().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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsResponse 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.saasplatform.saasservicemgmt.v1beta1.ListUnitsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsResponse 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.saasplatform.saasservicemgmt.v1beta1.ListUnitsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsResponse 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.saasplatform.saasservicemgmt.v1beta1.ListUnitsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsResponse + 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.saasplatform.saasservicemgmt.v1beta1.ListUnitsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsResponse 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.saasplatform.saasservicemgmt.v1beta1.ListUnitsResponse 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 response structure for the ListUnits method.
+   * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsResponse) + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListUnitsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListUnitsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsResponse.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsResponse.Builder + .class); + } + + // Construct using + // com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (unitsBuilder_ == null) { + units_ = java.util.Collections.emptyList(); + } else { + units_ = null; + unitsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListUnitsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsResponse + getDefaultInstanceForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsResponse build() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsResponse buildPartial() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsResponse result = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsResponse result) { + if (unitsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + units_ = java.util.Collections.unmodifiableList(units_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.units_ = units_; + } else { + result.units_ = unitsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } + } + + @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.saasplatform.saasservicemgmt.v1beta1.ListUnitsResponse) { + return mergeFrom( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsResponse other) { + if (other + == com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsResponse + .getDefaultInstance()) return this; + if (unitsBuilder_ == null) { + if (!other.units_.isEmpty()) { + if (units_.isEmpty()) { + units_ = other.units_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureUnitsIsMutable(); + units_.addAll(other.units_); + } + onChanged(); + } + } else { + if (!other.units_.isEmpty()) { + if (unitsBuilder_.isEmpty()) { + unitsBuilder_.dispose(); + unitsBuilder_ = null; + units_ = other.units_; + bitField0_ = (bitField0_ & ~0x00000001); + unitsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getUnitsFieldBuilder() + : null; + } else { + unitsBuilder_.addAllMessages(other.units_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ |= 0x00000004; + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 84074: + { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit m = + input.readMessage( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.parser(), + extensionRegistry); + if (unitsBuilder_ == null) { + ensureUnitsIsMutable(); + units_.add(m); + } else { + unitsBuilder_.addMessage(m); + } + break; + } // case 84074 + case 84082: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 84082 + case 84090: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 84090 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List units_ = + java.util.Collections.emptyList(); + + private void ensureUnitsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + units_ = + new java.util.ArrayList( + units_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOrBuilder> + unitsBuilder_; + + /** + * + * + *
+     * The resulting units.
+     * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit units = 10509; + */ + public java.util.List + getUnitsList() { + if (unitsBuilder_ == null) { + return java.util.Collections.unmodifiableList(units_); + } else { + return unitsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * The resulting units.
+     * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit units = 10509; + */ + public int getUnitsCount() { + if (unitsBuilder_ == null) { + return units_.size(); + } else { + return unitsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * The resulting units.
+     * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit units = 10509; + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit getUnits(int index) { + if (unitsBuilder_ == null) { + return units_.get(index); + } else { + return unitsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * The resulting units.
+     * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit units = 10509; + */ + public Builder setUnits( + int index, com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit value) { + if (unitsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnitsIsMutable(); + units_.set(index, value); + onChanged(); + } else { + unitsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The resulting units.
+     * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit units = 10509; + */ + public Builder setUnits( + int index, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.Builder builderForValue) { + if (unitsBuilder_ == null) { + ensureUnitsIsMutable(); + units_.set(index, builderForValue.build()); + onChanged(); + } else { + unitsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The resulting units.
+     * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit units = 10509; + */ + public Builder addUnits(com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit value) { + if (unitsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnitsIsMutable(); + units_.add(value); + onChanged(); + } else { + unitsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * The resulting units.
+     * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit units = 10509; + */ + public Builder addUnits( + int index, com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit value) { + if (unitsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnitsIsMutable(); + units_.add(index, value); + onChanged(); + } else { + unitsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The resulting units.
+     * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit units = 10509; + */ + public Builder addUnits( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.Builder builderForValue) { + if (unitsBuilder_ == null) { + ensureUnitsIsMutable(); + units_.add(builderForValue.build()); + onChanged(); + } else { + unitsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The resulting units.
+     * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit units = 10509; + */ + public Builder addUnits( + int index, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.Builder builderForValue) { + if (unitsBuilder_ == null) { + ensureUnitsIsMutable(); + units_.add(index, builderForValue.build()); + onChanged(); + } else { + unitsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The resulting units.
+     * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit units = 10509; + */ + public Builder addAllUnits( + java.lang.Iterable + values) { + if (unitsBuilder_ == null) { + ensureUnitsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, units_); + onChanged(); + } else { + unitsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * The resulting units.
+     * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit units = 10509; + */ + public Builder clearUnits() { + if (unitsBuilder_ == null) { + units_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + unitsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The resulting units.
+     * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit units = 10509; + */ + public Builder removeUnits(int index) { + if (unitsBuilder_ == null) { + ensureUnitsIsMutable(); + units_.remove(index); + onChanged(); + } else { + unitsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * The resulting units.
+     * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit units = 10509; + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.Builder getUnitsBuilder( + int index) { + return getUnitsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * The resulting units.
+     * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit units = 10509; + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOrBuilder getUnitsOrBuilder( + int index) { + if (unitsBuilder_ == null) { + return units_.get(index); + } else { + return unitsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * The resulting units.
+     * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit units = 10509; + */ + public java.util.List< + ? extends com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOrBuilder> + getUnitsOrBuilderList() { + if (unitsBuilder_ != null) { + return unitsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(units_); + } + } + + /** + * + * + *
+     * The resulting units.
+     * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit units = 10509; + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.Builder addUnitsBuilder() { + return getUnitsFieldBuilder() + .addBuilder( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.getDefaultInstance()); + } + + /** + * + * + *
+     * The resulting units.
+     * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit units = 10509; + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.Builder addUnitsBuilder( + int index) { + return getUnitsFieldBuilder() + .addBuilder( + index, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.getDefaultInstance()); + } + + /** + * + * + *
+     * The resulting units.
+     * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit units = 10509; + */ + public java.util.List + getUnitsBuilderList() { + return getUnitsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOrBuilder> + getUnitsFieldBuilder() { + if (unitsBuilder_ == null) { + unitsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOrBuilder>( + units_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + units_ = null; + } + return unitsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * If present, the next page token can be provided to a subsequent
+     * ListUnits call to list the next page.
+     * If empty, there are no more pages.
+     * 
+ * + * string next_page_token = 10510; + * + * @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; + } + } + + /** + * + * + *
+     * If present, the next page token can be provided to a subsequent
+     * ListUnits call to list the next page.
+     * If empty, there are no more pages.
+     * 
+ * + * string next_page_token = 10510; + * + * @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; + } + } + + /** + * + * + *
+     * If present, the next page token can be provided to a subsequent
+     * ListUnits call to list the next page.
+     * If empty, there are no more pages.
+     * 
+ * + * string next_page_token = 10510; + * + * @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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * If present, the next page token can be provided to a subsequent
+     * ListUnits call to list the next page.
+     * If empty, there are no more pages.
+     * 
+ * + * string next_page_token = 10510; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * If present, the next page token can be provided to a subsequent
+     * ListUnits call to list the next page.
+     * If empty, there are no more pages.
+     * 
+ * + * string next_page_token = 10510; + * + * @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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureUnreachableIsMutable() { + if (!unreachable_.isModifiable()) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 10511; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 10511; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 10511; + * + * @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); + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 10511; + * + * @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); + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 10511; + * + * @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); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 10511; + * + * @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); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 10511; + * + * @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_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 10511; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 10511; + * + * @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); + bitField0_ |= 0x00000004; + 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.saasplatform.saasservicemgmt.v1beta1.ListUnitsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsResponse) + private static final com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsResponse(); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListUnitsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.saasplatform.saasservicemgmt.v1beta1.ListUnitsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ListUnitsResponseOrBuilder.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ListUnitsResponseOrBuilder.java new file mode 100644 index 000000000000..c28d3aca136e --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ListUnitsResponseOrBuilder.java @@ -0,0 +1,166 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +public interface ListUnitsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The resulting units.
+   * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit units = 10509; + */ + java.util.List getUnitsList(); + + /** + * + * + *
+   * The resulting units.
+   * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit units = 10509; + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit getUnits(int index); + + /** + * + * + *
+   * The resulting units.
+   * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit units = 10509; + */ + int getUnitsCount(); + + /** + * + * + *
+   * The resulting units.
+   * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit units = 10509; + */ + java.util.List + getUnitsOrBuilderList(); + + /** + * + * + *
+   * The resulting units.
+   * 
+ * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit units = 10509; + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOrBuilder getUnitsOrBuilder(int index); + + /** + * + * + *
+   * If present, the next page token can be provided to a subsequent
+   * ListUnits call to list the next page.
+   * If empty, there are no more pages.
+   * 
+ * + * string next_page_token = 10510; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
+   * If present, the next page token can be provided to a subsequent
+   * ListUnits call to list the next page.
+   * If empty, there are no more pages.
+   * 
+ * + * string next_page_token = 10510; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 10511; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 10511; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 10511; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 10511; + * + * @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/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/Location.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/Location.java new file mode 100644 index 000000000000..c9d215a1bf0e --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/Location.java @@ -0,0 +1,641 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_resources.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +/** + * + * + *
+ * Location information that the service is available in.
+ * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.Location} + */ +public final class Location extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.Location) + LocationOrBuilder { + private static final long serialVersionUID = 0L; + + // Use Location.newBuilder() to construct. + private Location(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Location() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Location(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Location_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Location_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Location.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Location.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Optional. Name of location.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The name. + */ + @java.lang.Override + 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; + } + } + + /** + * + * + *
+   * Optional. Name of location.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for name. + */ + @java.lang.Override + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().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.saasplatform.saasservicemgmt.v1beta1.Location)) { + return super.equals(obj); + } + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Location other = + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Location) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Location parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Location 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.saasplatform.saasservicemgmt.v1beta1.Location parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Location 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.saasplatform.saasservicemgmt.v1beta1.Location parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Location parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Location parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Location 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.saasplatform.saasservicemgmt.v1beta1.Location parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Location 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.saasplatform.saasservicemgmt.v1beta1.Location parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Location 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.saasplatform.saasservicemgmt.v1beta1.Location 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; + } + + /** + * + * + *
+   * Location information that the service is available in.
+   * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.Location} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.Location) + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.LocationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Location_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Location_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Location.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Location.Builder.class); + } + + // Construct using com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Location.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Location_descriptor; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Location + getDefaultInstanceForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Location.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Location build() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Location result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Location buildPartial() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Location result = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Location(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Location result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @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.saasplatform.saasservicemgmt.v1beta1.Location) { + return mergeFrom((com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Location) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Location other) { + if (other + == com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Location.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Optional. Name of location.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
+     * Optional. Name of location.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
+     * Optional. Name of location.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Name of location.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Name of location.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + bitField0_ |= 0x00000001; + 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.saasplatform.saasservicemgmt.v1beta1.Location) + } + + // @@protoc_insertion_point(class_scope:google.cloud.saasplatform.saasservicemgmt.v1beta1.Location) + private static final com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Location + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Location(); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Location + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Location parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.saasplatform.saasservicemgmt.v1beta1.Location + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/LocationName.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/LocationName.java new file mode 100644 index 000000000000..d5d41f5cc538 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/LocationName.java @@ -0,0 +1,192 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1; + +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; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class LocationName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION = + PathTemplate.createWithoutUrlEncoding("projects/{project}/locations/{location}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + + @Deprecated + protected LocationName() { + project = null; + location = null; + } + + private LocationName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static LocationName of(String project, String location) { + return newBuilder().setProject(project).setLocation(location).build(); + } + + public static String format(String project, String location) { + return newBuilder().setProject(project).setLocation(location).build().toString(); + } + + public static LocationName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION.validatedMatch( + formattedString, "LocationName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location")); + } + + 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 (LocationName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION.instantiate("project", project, "location", location); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + LocationName that = ((LocationName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + return h; + } + + /** Builder for projects/{project}/locations/{location}. */ + public static class Builder { + private String project; + private String location; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + private Builder(LocationName locationName) { + this.project = locationName.project; + this.location = locationName.location; + } + + public LocationName build() { + return new LocationName(this); + } + } +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/LocationOrBuilder.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/LocationOrBuilder.java new file mode 100644 index 000000000000..3b045fae2c03 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/LocationOrBuilder.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_resources.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +public interface LocationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.saasplatform.saasservicemgmt.v1beta1.Location) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Name of location.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Optional. Name of location.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/Provision.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/Provision.java new file mode 100644 index 000000000000..94cbd3421903 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/Provision.java @@ -0,0 +1,1257 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_resources.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +/** + * + * + *
+ * Provision is the unit operation that provision the underlying resources
+ * represented by a Unit. Can only execute if the Unit is not currently
+ * provisioned.
+ * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.Provision} + */ +public final class Provision extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.Provision) + ProvisionOrBuilder { + private static final long serialVersionUID = 0L; + + // Use Provision.newBuilder() to construct. + private Provision(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Provision() { + release_ = ""; + inputVariables_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Provision(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Provision_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Provision_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Provision.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Provision.Builder.class); + } + + public static final int RELEASE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object release_ = ""; + + /** + * + * + *
+   * Optional. Reference to the Release object to use for the Unit. (optional).
+   * 
+ * + * + * string release = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The release. + */ + @java.lang.Override + public java.lang.String getRelease() { + java.lang.Object ref = release_; + 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(); + release_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Reference to the Release object to use for the Unit. (optional).
+   * 
+ * + * + * string release = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for release. + */ + @java.lang.Override + public com.google.protobuf.ByteString getReleaseBytes() { + java.lang.Object ref = release_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + release_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INPUT_VARIABLES_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List + inputVariables_; + + /** + * + * + *
+   * Optional. Set of input variables. Maximum 100. (optional)
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getInputVariablesList() { + return inputVariables_; + } + + /** + * + * + *
+   * Optional. Set of input variables. Maximum 100. (optional)
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariableOrBuilder> + getInputVariablesOrBuilderList() { + return inputVariables_; + } + + /** + * + * + *
+   * Optional. Set of input variables. Maximum 100. (optional)
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getInputVariablesCount() { + return inputVariables_.size(); + } + + /** + * + * + *
+   * Optional. Set of input variables. Maximum 100. (optional)
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable getInputVariables( + int index) { + return inputVariables_.get(index); + } + + /** + * + * + *
+   * Optional. Set of input variables. Maximum 100. (optional)
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariableOrBuilder + getInputVariablesOrBuilder(int index) { + return inputVariables_.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(release_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, release_); + } + for (int i = 0; i < inputVariables_.size(); i++) { + output.writeMessage(3, inputVariables_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(release_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, release_); + } + for (int i = 0; i < inputVariables_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, inputVariables_.get(i)); + } + size += getUnknownFields().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.saasplatform.saasservicemgmt.v1beta1.Provision)) { + return super.equals(obj); + } + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Provision other = + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Provision) obj; + + if (!getRelease().equals(other.getRelease())) return false; + if (!getInputVariablesList().equals(other.getInputVariablesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + RELEASE_FIELD_NUMBER; + hash = (53 * hash) + getRelease().hashCode(); + if (getInputVariablesCount() > 0) { + hash = (37 * hash) + INPUT_VARIABLES_FIELD_NUMBER; + hash = (53 * hash) + getInputVariablesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Provision parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Provision 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.saasplatform.saasservicemgmt.v1beta1.Provision parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Provision 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.saasplatform.saasservicemgmt.v1beta1.Provision parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Provision parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Provision parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Provision 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.saasplatform.saasservicemgmt.v1beta1.Provision parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Provision 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.saasplatform.saasservicemgmt.v1beta1.Provision parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Provision 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.saasplatform.saasservicemgmt.v1beta1.Provision 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; + } + + /** + * + * + *
+   * Provision is the unit operation that provision the underlying resources
+   * represented by a Unit. Can only execute if the Unit is not currently
+   * provisioned.
+   * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.Provision} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.Provision) + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ProvisionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Provision_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Provision_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Provision.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Provision.Builder.class); + } + + // Construct using com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Provision.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + release_ = ""; + if (inputVariablesBuilder_ == null) { + inputVariables_ = java.util.Collections.emptyList(); + } else { + inputVariables_ = null; + inputVariablesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Provision_descriptor; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Provision + getDefaultInstanceForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Provision.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Provision build() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Provision result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Provision buildPartial() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Provision result = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Provision(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Provision result) { + if (inputVariablesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + inputVariables_ = java.util.Collections.unmodifiableList(inputVariables_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.inputVariables_ = inputVariables_; + } else { + result.inputVariables_ = inputVariablesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Provision result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.release_ = release_; + } + } + + @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.saasplatform.saasservicemgmt.v1beta1.Provision) { + return mergeFrom((com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Provision) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Provision other) { + if (other + == com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Provision.getDefaultInstance()) + return this; + if (!other.getRelease().isEmpty()) { + release_ = other.release_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (inputVariablesBuilder_ == null) { + if (!other.inputVariables_.isEmpty()) { + if (inputVariables_.isEmpty()) { + inputVariables_ = other.inputVariables_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureInputVariablesIsMutable(); + inputVariables_.addAll(other.inputVariables_); + } + onChanged(); + } + } else { + if (!other.inputVariables_.isEmpty()) { + if (inputVariablesBuilder_.isEmpty()) { + inputVariablesBuilder_.dispose(); + inputVariablesBuilder_ = null; + inputVariables_ = other.inputVariables_; + bitField0_ = (bitField0_ & ~0x00000002); + inputVariablesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getInputVariablesFieldBuilder() + : null; + } else { + inputVariablesBuilder_.addAllMessages(other.inputVariables_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + release_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 26: + { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable m = + input.readMessage( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.parser(), + extensionRegistry); + if (inputVariablesBuilder_ == null) { + ensureInputVariablesIsMutable(); + inputVariables_.add(m); + } else { + inputVariablesBuilder_.addMessage(m); + } + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object release_ = ""; + + /** + * + * + *
+     * Optional. Reference to the Release object to use for the Unit. (optional).
+     * 
+ * + * + * string release = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The release. + */ + public java.lang.String getRelease() { + java.lang.Object ref = release_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + release_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Reference to the Release object to use for the Unit. (optional).
+     * 
+ * + * + * string release = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for release. + */ + public com.google.protobuf.ByteString getReleaseBytes() { + java.lang.Object ref = release_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + release_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Reference to the Release object to use for the Unit. (optional).
+     * 
+ * + * + * string release = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The release to set. + * @return This builder for chaining. + */ + public Builder setRelease(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + release_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Reference to the Release object to use for the Unit. (optional).
+     * 
+ * + * + * string release = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRelease() { + release_ = getDefaultInstance().getRelease(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Reference to the Release object to use for the Unit. (optional).
+     * 
+ * + * + * string release = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for release to set. + * @return This builder for chaining. + */ + public Builder setReleaseBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + release_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.util.List + inputVariables_ = java.util.Collections.emptyList(); + + private void ensureInputVariablesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + inputVariables_ = + new java.util.ArrayList< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable>( + inputVariables_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariableOrBuilder> + inputVariablesBuilder_; + + /** + * + * + *
+     * Optional. Set of input variables. Maximum 100. (optional)
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getInputVariablesList() { + if (inputVariablesBuilder_ == null) { + return java.util.Collections.unmodifiableList(inputVariables_); + } else { + return inputVariablesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. Set of input variables. Maximum 100. (optional)
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getInputVariablesCount() { + if (inputVariablesBuilder_ == null) { + return inputVariables_.size(); + } else { + return inputVariablesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. Set of input variables. Maximum 100. (optional)
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable getInputVariables( + int index) { + if (inputVariablesBuilder_ == null) { + return inputVariables_.get(index); + } else { + return inputVariablesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. Set of input variables. Maximum 100. (optional)
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setInputVariables( + int index, com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable value) { + if (inputVariablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInputVariablesIsMutable(); + inputVariables_.set(index, value); + onChanged(); + } else { + inputVariablesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Set of input variables. Maximum 100. (optional)
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setInputVariables( + int index, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Builder + builderForValue) { + if (inputVariablesBuilder_ == null) { + ensureInputVariablesIsMutable(); + inputVariables_.set(index, builderForValue.build()); + onChanged(); + } else { + inputVariablesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Set of input variables. Maximum 100. (optional)
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addInputVariables( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable value) { + if (inputVariablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInputVariablesIsMutable(); + inputVariables_.add(value); + onChanged(); + } else { + inputVariablesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. Set of input variables. Maximum 100. (optional)
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addInputVariables( + int index, com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable value) { + if (inputVariablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInputVariablesIsMutable(); + inputVariables_.add(index, value); + onChanged(); + } else { + inputVariablesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Set of input variables. Maximum 100. (optional)
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addInputVariables( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Builder + builderForValue) { + if (inputVariablesBuilder_ == null) { + ensureInputVariablesIsMutable(); + inputVariables_.add(builderForValue.build()); + onChanged(); + } else { + inputVariablesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Set of input variables. Maximum 100. (optional)
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addInputVariables( + int index, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Builder + builderForValue) { + if (inputVariablesBuilder_ == null) { + ensureInputVariablesIsMutable(); + inputVariables_.add(index, builderForValue.build()); + onChanged(); + } else { + inputVariablesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Set of input variables. Maximum 100. (optional)
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllInputVariables( + java.lang.Iterable< + ? extends com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable> + values) { + if (inputVariablesBuilder_ == null) { + ensureInputVariablesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, inputVariables_); + onChanged(); + } else { + inputVariablesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. Set of input variables. Maximum 100. (optional)
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearInputVariables() { + if (inputVariablesBuilder_ == null) { + inputVariables_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + inputVariablesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. Set of input variables. Maximum 100. (optional)
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeInputVariables(int index) { + if (inputVariablesBuilder_ == null) { + ensureInputVariablesIsMutable(); + inputVariables_.remove(index); + onChanged(); + } else { + inputVariablesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. Set of input variables. Maximum 100. (optional)
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Builder + getInputVariablesBuilder(int index) { + return getInputVariablesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. Set of input variables. Maximum 100. (optional)
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariableOrBuilder + getInputVariablesOrBuilder(int index) { + if (inputVariablesBuilder_ == null) { + return inputVariables_.get(index); + } else { + return inputVariablesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. Set of input variables. Maximum 100. (optional)
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + ? extends com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariableOrBuilder> + getInputVariablesOrBuilderList() { + if (inputVariablesBuilder_ != null) { + return inputVariablesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(inputVariables_); + } + } + + /** + * + * + *
+     * Optional. Set of input variables. Maximum 100. (optional)
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Builder + addInputVariablesBuilder() { + return getInputVariablesFieldBuilder() + .addBuilder( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable + .getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Set of input variables. Maximum 100. (optional)
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Builder + addInputVariablesBuilder(int index) { + return getInputVariablesFieldBuilder() + .addBuilder( + index, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable + .getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Set of input variables. Maximum 100. (optional)
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Builder> + getInputVariablesBuilderList() { + return getInputVariablesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariableOrBuilder> + getInputVariablesFieldBuilder() { + if (inputVariablesBuilder_ == null) { + inputVariablesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariableOrBuilder>( + inputVariables_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + inputVariables_ = null; + } + return inputVariablesBuilder_; + } + + @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.saasplatform.saasservicemgmt.v1beta1.Provision) + } + + // @@protoc_insertion_point(class_scope:google.cloud.saasplatform.saasservicemgmt.v1beta1.Provision) + private static final com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Provision + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Provision(); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Provision + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Provision parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.saasplatform.saasservicemgmt.v1beta1.Provision + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ProvisionOrBuilder.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ProvisionOrBuilder.java new file mode 100644 index 000000000000..7c47233420f9 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ProvisionOrBuilder.java @@ -0,0 +1,125 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_resources.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +public interface ProvisionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.saasplatform.saasservicemgmt.v1beta1.Provision) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Reference to the Release object to use for the Unit. (optional).
+   * 
+ * + * + * string release = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The release. + */ + java.lang.String getRelease(); + + /** + * + * + *
+   * Optional. Reference to the Release object to use for the Unit. (optional).
+   * 
+ * + * + * string release = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for release. + */ + com.google.protobuf.ByteString getReleaseBytes(); + + /** + * + * + *
+   * Optional. Set of input variables. Maximum 100. (optional)
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getInputVariablesList(); + + /** + * + * + *
+   * Optional. Set of input variables. Maximum 100. (optional)
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable getInputVariables(int index); + + /** + * + * + *
+   * Optional. Set of input variables. Maximum 100. (optional)
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getInputVariablesCount(); + + /** + * + * + *
+   * Optional. Set of input variables. Maximum 100. (optional)
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + ? extends com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariableOrBuilder> + getInputVariablesOrBuilderList(); + + /** + * + * + *
+   * Optional. Set of input variables. Maximum 100. (optional)
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariableOrBuilder + getInputVariablesOrBuilder(int index); +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/Release.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/Release.java new file mode 100644 index 000000000000..29aab61622af --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/Release.java @@ -0,0 +1,6117 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_resources.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +/** + * + * + *
+ * A new version to be propagated and deployed to units. This includes pointers
+ * to packaged blueprints for actuation (e.g Helm or Terraform configuration
+ * packages) via artifact registry.
+ * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.Release} + */ +public final class Release extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.Release) + ReleaseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use Release.newBuilder() to construct. + private Release(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Release() { + name_ = ""; + unitKind_ = ""; + inputVariables_ = java.util.Collections.emptyList(); + outputVariables_ = java.util.Collections.emptyList(); + inputVariableDefaults_ = java.util.Collections.emptyList(); + uid_ = ""; + etag_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Release(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Release_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 10401: + return internalGetLabels(); + case 10402: + return internalGetAnnotations(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Release_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.Builder.class); + } + + public interface ReleaseRequirementsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.ReleaseRequirements) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional. A list of releases from which a unit can be upgraded to this
+     * one (optional). If left empty no constraints will be applied. When
+     * provided, unit upgrade requests to this release will check and enforce
+     * this constraint.
+     * 
+ * + * + * repeated string upgradeable_from_releases = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the upgradeableFromReleases. + */ + java.util.List getUpgradeableFromReleasesList(); + + /** + * + * + *
+     * Optional. A list of releases from which a unit can be upgraded to this
+     * one (optional). If left empty no constraints will be applied. When
+     * provided, unit upgrade requests to this release will check and enforce
+     * this constraint.
+     * 
+ * + * + * repeated string upgradeable_from_releases = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of upgradeableFromReleases. + */ + int getUpgradeableFromReleasesCount(); + + /** + * + * + *
+     * Optional. A list of releases from which a unit can be upgraded to this
+     * one (optional). If left empty no constraints will be applied. When
+     * provided, unit upgrade requests to this release will check and enforce
+     * this constraint.
+     * 
+ * + * + * repeated string upgradeable_from_releases = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The upgradeableFromReleases at the given index. + */ + java.lang.String getUpgradeableFromReleases(int index); + + /** + * + * + *
+     * Optional. A list of releases from which a unit can be upgraded to this
+     * one (optional). If left empty no constraints will be applied. When
+     * provided, unit upgrade requests to this release will check and enforce
+     * this constraint.
+     * 
+ * + * + * repeated string upgradeable_from_releases = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the upgradeableFromReleases at the given index. + */ + com.google.protobuf.ByteString getUpgradeableFromReleasesBytes(int index); + } + + /** + * + * + *
+   * Set of requirements to be fulfilled on the Unit when using this Release.
+   * 
+ * + * Protobuf type {@code + * google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.ReleaseRequirements} + */ + public static final class ReleaseRequirements extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.ReleaseRequirements) + ReleaseRequirementsOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ReleaseRequirements.newBuilder() to construct. + private ReleaseRequirements(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReleaseRequirements() { + upgradeableFromReleases_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReleaseRequirements(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Release_ReleaseRequirements_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Release_ReleaseRequirements_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.ReleaseRequirements + .class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.ReleaseRequirements + .Builder.class); + } + + public static final int UPGRADEABLE_FROM_RELEASES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList upgradeableFromReleases_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+     * Optional. A list of releases from which a unit can be upgraded to this
+     * one (optional). If left empty no constraints will be applied. When
+     * provided, unit upgrade requests to this release will check and enforce
+     * this constraint.
+     * 
+ * + * + * repeated string upgradeable_from_releases = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the upgradeableFromReleases. + */ + public com.google.protobuf.ProtocolStringList getUpgradeableFromReleasesList() { + return upgradeableFromReleases_; + } + + /** + * + * + *
+     * Optional. A list of releases from which a unit can be upgraded to this
+     * one (optional). If left empty no constraints will be applied. When
+     * provided, unit upgrade requests to this release will check and enforce
+     * this constraint.
+     * 
+ * + * + * repeated string upgradeable_from_releases = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of upgradeableFromReleases. + */ + public int getUpgradeableFromReleasesCount() { + return upgradeableFromReleases_.size(); + } + + /** + * + * + *
+     * Optional. A list of releases from which a unit can be upgraded to this
+     * one (optional). If left empty no constraints will be applied. When
+     * provided, unit upgrade requests to this release will check and enforce
+     * this constraint.
+     * 
+ * + * + * repeated string upgradeable_from_releases = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The upgradeableFromReleases at the given index. + */ + public java.lang.String getUpgradeableFromReleases(int index) { + return upgradeableFromReleases_.get(index); + } + + /** + * + * + *
+     * Optional. A list of releases from which a unit can be upgraded to this
+     * one (optional). If left empty no constraints will be applied. When
+     * provided, unit upgrade requests to this release will check and enforce
+     * this constraint.
+     * 
+ * + * + * repeated string upgradeable_from_releases = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the upgradeableFromReleases at the given index. + */ + public com.google.protobuf.ByteString getUpgradeableFromReleasesBytes(int index) { + return upgradeableFromReleases_.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 < upgradeableFromReleases_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 1, upgradeableFromReleases_.getRaw(i)); + } + getUnknownFields().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 < upgradeableFromReleases_.size(); i++) { + dataSize += computeStringSizeNoTag(upgradeableFromReleases_.getRaw(i)); + } + size += dataSize; + size += 1 * getUpgradeableFromReleasesList().size(); + } + size += getUnknownFields().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.saasplatform.saasservicemgmt.v1beta1.Release.ReleaseRequirements)) { + return super.equals(obj); + } + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.ReleaseRequirements other = + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.ReleaseRequirements) obj; + + if (!getUpgradeableFromReleasesList().equals(other.getUpgradeableFromReleasesList())) + return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getUpgradeableFromReleasesCount() > 0) { + hash = (37 * hash) + UPGRADEABLE_FROM_RELEASES_FIELD_NUMBER; + hash = (53 * hash) + getUpgradeableFromReleasesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.ReleaseRequirements + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.ReleaseRequirements + 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.saasplatform.saasservicemgmt.v1beta1.Release.ReleaseRequirements + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.ReleaseRequirements + 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.saasplatform.saasservicemgmt.v1beta1.Release.ReleaseRequirements + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.ReleaseRequirements + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.ReleaseRequirements + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.ReleaseRequirements + 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.saasplatform.saasservicemgmt.v1beta1.Release.ReleaseRequirements + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.ReleaseRequirements + 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.saasplatform.saasservicemgmt.v1beta1.Release.ReleaseRequirements + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.ReleaseRequirements + 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.saasplatform.saasservicemgmt.v1beta1.Release.ReleaseRequirements + 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; + } + + /** + * + * + *
+     * Set of requirements to be fulfilled on the Unit when using this Release.
+     * 
+ * + * Protobuf type {@code + * google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.ReleaseRequirements} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.ReleaseRequirements) + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.ReleaseRequirementsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Release_ReleaseRequirements_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Release_ReleaseRequirements_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.ReleaseRequirements + .class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.ReleaseRequirements + .Builder.class); + } + + // Construct using + // com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.ReleaseRequirements.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + upgradeableFromReleases_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Release_ReleaseRequirements_descriptor; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.ReleaseRequirements + getDefaultInstanceForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.ReleaseRequirements + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.ReleaseRequirements + build() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.ReleaseRequirements result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.ReleaseRequirements + buildPartial() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.ReleaseRequirements result = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.ReleaseRequirements( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.ReleaseRequirements + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + upgradeableFromReleases_.makeImmutable(); + result.upgradeableFromReleases_ = upgradeableFromReleases_; + } + } + + @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.saasplatform.saasservicemgmt.v1beta1.Release.ReleaseRequirements) { + return mergeFrom( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.ReleaseRequirements) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.ReleaseRequirements other) { + if (other + == com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.ReleaseRequirements + .getDefaultInstance()) return this; + if (!other.upgradeableFromReleases_.isEmpty()) { + if (upgradeableFromReleases_.isEmpty()) { + upgradeableFromReleases_ = other.upgradeableFromReleases_; + bitField0_ |= 0x00000001; + } else { + ensureUpgradeableFromReleasesIsMutable(); + upgradeableFromReleases_.addAll(other.upgradeableFromReleases_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + 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(); + ensureUpgradeableFromReleasesIsMutable(); + upgradeableFromReleases_.add(s); + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringArrayList upgradeableFromReleases_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureUpgradeableFromReleasesIsMutable() { + if (!upgradeableFromReleases_.isModifiable()) { + upgradeableFromReleases_ = + new com.google.protobuf.LazyStringArrayList(upgradeableFromReleases_); + } + bitField0_ |= 0x00000001; + } + + /** + * + * + *
+       * Optional. A list of releases from which a unit can be upgraded to this
+       * one (optional). If left empty no constraints will be applied. When
+       * provided, unit upgrade requests to this release will check and enforce
+       * this constraint.
+       * 
+ * + * + * repeated string upgradeable_from_releases = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the upgradeableFromReleases. + */ + public com.google.protobuf.ProtocolStringList getUpgradeableFromReleasesList() { + upgradeableFromReleases_.makeImmutable(); + return upgradeableFromReleases_; + } + + /** + * + * + *
+       * Optional. A list of releases from which a unit can be upgraded to this
+       * one (optional). If left empty no constraints will be applied. When
+       * provided, unit upgrade requests to this release will check and enforce
+       * this constraint.
+       * 
+ * + * + * repeated string upgradeable_from_releases = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of upgradeableFromReleases. + */ + public int getUpgradeableFromReleasesCount() { + return upgradeableFromReleases_.size(); + } + + /** + * + * + *
+       * Optional. A list of releases from which a unit can be upgraded to this
+       * one (optional). If left empty no constraints will be applied. When
+       * provided, unit upgrade requests to this release will check and enforce
+       * this constraint.
+       * 
+ * + * + * repeated string upgradeable_from_releases = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The upgradeableFromReleases at the given index. + */ + public java.lang.String getUpgradeableFromReleases(int index) { + return upgradeableFromReleases_.get(index); + } + + /** + * + * + *
+       * Optional. A list of releases from which a unit can be upgraded to this
+       * one (optional). If left empty no constraints will be applied. When
+       * provided, unit upgrade requests to this release will check and enforce
+       * this constraint.
+       * 
+ * + * + * repeated string upgradeable_from_releases = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the upgradeableFromReleases at the given index. + */ + public com.google.protobuf.ByteString getUpgradeableFromReleasesBytes(int index) { + return upgradeableFromReleases_.getByteString(index); + } + + /** + * + * + *
+       * Optional. A list of releases from which a unit can be upgraded to this
+       * one (optional). If left empty no constraints will be applied. When
+       * provided, unit upgrade requests to this release will check and enforce
+       * this constraint.
+       * 
+ * + * + * repeated string upgradeable_from_releases = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The upgradeableFromReleases to set. + * @return This builder for chaining. + */ + public Builder setUpgradeableFromReleases(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUpgradeableFromReleasesIsMutable(); + upgradeableFromReleases_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. A list of releases from which a unit can be upgraded to this
+       * one (optional). If left empty no constraints will be applied. When
+       * provided, unit upgrade requests to this release will check and enforce
+       * this constraint.
+       * 
+ * + * + * repeated string upgradeable_from_releases = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The upgradeableFromReleases to add. + * @return This builder for chaining. + */ + public Builder addUpgradeableFromReleases(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUpgradeableFromReleasesIsMutable(); + upgradeableFromReleases_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. A list of releases from which a unit can be upgraded to this
+       * one (optional). If left empty no constraints will be applied. When
+       * provided, unit upgrade requests to this release will check and enforce
+       * this constraint.
+       * 
+ * + * + * repeated string upgradeable_from_releases = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param values The upgradeableFromReleases to add. + * @return This builder for chaining. + */ + public Builder addAllUpgradeableFromReleases(java.lang.Iterable values) { + ensureUpgradeableFromReleasesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, upgradeableFromReleases_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. A list of releases from which a unit can be upgraded to this
+       * one (optional). If left empty no constraints will be applied. When
+       * provided, unit upgrade requests to this release will check and enforce
+       * this constraint.
+       * 
+ * + * + * repeated string upgradeable_from_releases = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearUpgradeableFromReleases() { + upgradeableFromReleases_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. A list of releases from which a unit can be upgraded to this
+       * one (optional). If left empty no constraints will be applied. When
+       * provided, unit upgrade requests to this release will check and enforce
+       * this constraint.
+       * 
+ * + * + * repeated string upgradeable_from_releases = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the upgradeableFromReleases to add. + * @return This builder for chaining. + */ + public Builder addUpgradeableFromReleasesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUpgradeableFromReleasesIsMutable(); + upgradeableFromReleases_.add(value); + bitField0_ |= 0x00000001; + 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.saasplatform.saasservicemgmt.v1beta1.Release.ReleaseRequirements) + } + + // @@protoc_insertion_point(class_scope:google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.ReleaseRequirements) + private static final com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release + .ReleaseRequirements + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.ReleaseRequirements(); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.ReleaseRequirements + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReleaseRequirements parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.saasplatform.saasservicemgmt.v1beta1.Release.ReleaseRequirements + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Identifier. The resource name (full URI of the resource) following the
+   * standard naming scheme:
+   *
+   *   "projects/{project}/locations/{location}/releases/{release}"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + @java.lang.Override + 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; + } + } + + /** + * + * + *
+   * Identifier. The resource name (full URI of the resource) following the
+   * standard naming scheme:
+   *
+   *   "projects/{project}/locations/{location}/releases/{release}"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + @java.lang.Override + 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 UNIT_KIND_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object unitKind_ = ""; + + /** + * + * + *
+   * Required. Immutable. Reference to the UnitKind this Release corresponds to
+   * (required and immutable once created).
+   * 
+ * + * + * string unit_kind = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The unitKind. + */ + @java.lang.Override + public java.lang.String getUnitKind() { + java.lang.Object ref = unitKind_; + 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(); + unitKind_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. Immutable. Reference to the UnitKind this Release corresponds to
+   * (required and immutable once created).
+   * 
+ * + * + * string unit_kind = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for unitKind. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUnitKindBytes() { + java.lang.Object ref = unitKind_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + unitKind_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BLUEPRINT_FIELD_NUMBER = 3; + private com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Blueprint blueprint_; + + /** + * + * + *
+   * Optional. Blueprints are OCI Images that contain all of the artifacts
+   * needed to provision a unit.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Blueprint blueprint = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the blueprint field is set. + */ + @java.lang.Override + public boolean hasBlueprint() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. Blueprints are OCI Images that contain all of the artifacts
+   * needed to provision a unit.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Blueprint blueprint = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The blueprint. + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Blueprint getBlueprint() { + return blueprint_ == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Blueprint.getDefaultInstance() + : blueprint_; + } + + /** + * + * + *
+   * Optional. Blueprints are OCI Images that contain all of the artifacts
+   * needed to provision a unit.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Blueprint blueprint = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.BlueprintOrBuilder + getBlueprintOrBuilder() { + return blueprint_ == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Blueprint.getDefaultInstance() + : blueprint_; + } + + public static final int RELEASE_REQUIREMENTS_FIELD_NUMBER = 4; + private com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.ReleaseRequirements + releaseRequirements_; + + /** + * + * + *
+   * Optional. Set of requirements to be fulfilled on the Unit when using this
+   * Release.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.ReleaseRequirements release_requirements = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the releaseRequirements field is set. + */ + @java.lang.Override + public boolean hasReleaseRequirements() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Optional. Set of requirements to be fulfilled on the Unit when using this
+   * Release.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.ReleaseRequirements release_requirements = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The releaseRequirements. + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.ReleaseRequirements + getReleaseRequirements() { + return releaseRequirements_ == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.ReleaseRequirements + .getDefaultInstance() + : releaseRequirements_; + } + + /** + * + * + *
+   * Optional. Set of requirements to be fulfilled on the Unit when using this
+   * Release.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.ReleaseRequirements release_requirements = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.ReleaseRequirementsOrBuilder + getReleaseRequirementsOrBuilder() { + return releaseRequirements_ == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.ReleaseRequirements + .getDefaultInstance() + : releaseRequirements_; + } + + public static final int INPUT_VARIABLES_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private java.util.List + inputVariables_; + + /** + * + * + *
+   * Optional. Output only. List of input variables declared on the blueprint
+   * and can be present with their values on the unit spec
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getInputVariablesList() { + return inputVariables_; + } + + /** + * + * + *
+   * Optional. Output only. List of input variables declared on the blueprint
+   * and can be present with their values on the unit spec
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariableOrBuilder> + getInputVariablesOrBuilderList() { + return inputVariables_; + } + + /** + * + * + *
+   * Optional. Output only. List of input variables declared on the blueprint
+   * and can be present with their values on the unit spec
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getInputVariablesCount() { + return inputVariables_.size(); + } + + /** + * + * + *
+   * Optional. Output only. List of input variables declared on the blueprint
+   * and can be present with their values on the unit spec
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable getInputVariables( + int index) { + return inputVariables_.get(index); + } + + /** + * + * + *
+   * Optional. Output only. List of input variables declared on the blueprint
+   * and can be present with their values on the unit spec
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariableOrBuilder + getInputVariablesOrBuilder(int index) { + return inputVariables_.get(index); + } + + public static final int OUTPUT_VARIABLES_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private java.util.List + outputVariables_; + + /** + * + * + *
+   * Optional. Output only. List of output variables declared on the blueprint
+   * and can be present with their values on the unit status
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable output_variables = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getOutputVariablesList() { + return outputVariables_; + } + + /** + * + * + *
+   * Optional. Output only. List of output variables declared on the blueprint
+   * and can be present with their values on the unit status
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable output_variables = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariableOrBuilder> + getOutputVariablesOrBuilderList() { + return outputVariables_; + } + + /** + * + * + *
+   * Optional. Output only. List of output variables declared on the blueprint
+   * and can be present with their values on the unit status
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable output_variables = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getOutputVariablesCount() { + return outputVariables_.size(); + } + + /** + * + * + *
+   * Optional. Output only. List of output variables declared on the blueprint
+   * and can be present with their values on the unit status
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable output_variables = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable getOutputVariables( + int index) { + return outputVariables_.get(index); + } + + /** + * + * + *
+   * Optional. Output only. List of output variables declared on the blueprint
+   * and can be present with their values on the unit status
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable output_variables = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariableOrBuilder + getOutputVariablesOrBuilder(int index) { + return outputVariables_.get(index); + } + + public static final int INPUT_VARIABLE_DEFAULTS_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private java.util.List + inputVariableDefaults_; + + /** + * + * + *
+   * Optional. Mapping of input variables to default values. Maximum 100
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variable_defaults = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getInputVariableDefaultsList() { + return inputVariableDefaults_; + } + + /** + * + * + *
+   * Optional. Mapping of input variables to default values. Maximum 100
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variable_defaults = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariableOrBuilder> + getInputVariableDefaultsOrBuilderList() { + return inputVariableDefaults_; + } + + /** + * + * + *
+   * Optional. Mapping of input variables to default values. Maximum 100
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variable_defaults = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getInputVariableDefaultsCount() { + return inputVariableDefaults_.size(); + } + + /** + * + * + *
+   * Optional. Mapping of input variables to default values. Maximum 100
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variable_defaults = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable + getInputVariableDefaults(int index) { + return inputVariableDefaults_.get(index); + } + + /** + * + * + *
+   * Optional. Mapping of input variables to default values. Maximum 100
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variable_defaults = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariableOrBuilder + getInputVariableDefaultsOrBuilder(int index) { + return inputVariableDefaults_.get(index); + } + + public static final int LABELS_FIELD_NUMBER = 10401; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Release_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + 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(); + } + + /** + * + * + *
+   * Optional. The labels on the resource, which can be used for categorization.
+   * similar to Kubernetes resource labels.
+   * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** + * + * + *
+   * Optional. The labels on the resource, which can be used for categorization.
+   * similar to Kubernetes resource labels.
+   * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
+   * Optional. The labels on the resource, which can be used for categorization.
+   * similar to Kubernetes resource labels.
+   * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+   * Optional. The labels on the resource, which can be used for categorization.
+   * similar to Kubernetes resource labels.
+   * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int ANNOTATIONS_FIELD_NUMBER = 10402; + + private static final class AnnotationsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Release_AnnotationsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField annotations_; + + private com.google.protobuf.MapField + internalGetAnnotations() { + if (annotations_ == null) { + return com.google.protobuf.MapField.emptyMapField(AnnotationsDefaultEntryHolder.defaultEntry); + } + return annotations_; + } + + public int getAnnotationsCount() { + return internalGetAnnotations().getMap().size(); + } + + /** + * + * + *
+   * Optional. Annotations is an unstructured key-value map stored with a
+   * resource that may be set by external tools to store and retrieve arbitrary
+   * metadata. They are not queryable and should be preserved when modifying
+   * objects.
+   *
+   * More info: https://kubernetes.io/docs/user-guide/annotations
+   * 
+ * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetAnnotations().getMap().containsKey(key); + } + + /** Use {@link #getAnnotationsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getAnnotations() { + return getAnnotationsMap(); + } + + /** + * + * + *
+   * Optional. Annotations is an unstructured key-value map stored with a
+   * resource that may be set by external tools to store and retrieve arbitrary
+   * metadata. They are not queryable and should be preserved when modifying
+   * objects.
+   *
+   * More info: https://kubernetes.io/docs/user-guide/annotations
+   * 
+ * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getAnnotationsMap() { + return internalGetAnnotations().getMap(); + } + + /** + * + * + *
+   * Optional. Annotations is an unstructured key-value map stored with a
+   * resource that may be set by external tools to store and retrieve arbitrary
+   * metadata. They are not queryable and should be preserved when modifying
+   * objects.
+   *
+   * More info: https://kubernetes.io/docs/user-guide/annotations
+   * 
+ * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getAnnotationsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+   * Optional. Annotations is an unstructured key-value map stored with a
+   * resource that may be set by external tools to store and retrieve arbitrary
+   * metadata. They are not queryable and should be preserved when modifying
+   * objects.
+   *
+   * More info: https://kubernetes.io/docs/user-guide/annotations
+   * 
+ * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int UID_FIELD_NUMBER = 10201; + + @SuppressWarnings("serial") + private volatile java.lang.Object uid_ = ""; + + /** + * + * + *
+   * Output only. The unique identifier of the resource. UID is unique in the
+   * time and space for this resource within the scope of the service. It is
+   * typically generated by the server on successful creation of a resource
+   * and must not be changed. UID is used to uniquely identify resources
+   * with resource name reuses. This should be a UUID4.
+   * 
+ * + * + * string uid = 10201 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The uid. + */ + @java.lang.Override + public java.lang.String getUid() { + java.lang.Object ref = uid_; + 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(); + uid_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The unique identifier of the resource. UID is unique in the
+   * time and space for this resource within the scope of the service. It is
+   * typically generated by the server on successful creation of a resource
+   * and must not be changed. UID is used to uniquely identify resources
+   * with resource name reuses. This should be a UUID4.
+   * 
+ * + * + * string uid = 10201 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The bytes for uid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ETAG_FIELD_NUMBER = 10202; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + + /** + * + * + *
+   * Output only. An opaque value that uniquely identifies a version or
+   * generation of a resource. It can be used to confirm that the client
+   * and server agree on the ordering of a resource being written.
+   * 
+ * + * string etag = 10202 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The etag. + */ + @java.lang.Override + 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. An opaque value that uniquely identifies a version or
+   * generation of a resource. It can be used to confirm that the client
+   * and server agree on the ordering of a resource being written.
+   * 
+ * + * string etag = 10202 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for etag. + */ + @java.lang.Override + 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 CREATE_TIME_FIELD_NUMBER = 10303; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
+   * Output only. The timestamp when the resource was created.
+   * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Output only. The timestamp when the resource was created.
+   * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
+   * Output only. The timestamp when the resource was created.
+   * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 10304; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
+   * Output only. The timestamp when the resource was last updated. Any
+   * change to the resource made by users must refresh this value.
+   * Changes to a resource made by the service should refresh this value.
+   * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+   * Output only. The timestamp when the resource was last updated. Any
+   * change to the resource made by users must refresh this value.
+   * Changes to a resource made by the service should refresh this value.
+   * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
+   * Output only. The timestamp when the resource was last updated. Any
+   * change to the resource made by users must refresh this value.
+   * Changes to a resource made by the service should refresh this value.
+   * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(unitKind_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, unitKind_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getBlueprint()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getReleaseRequirements()); + } + for (int i = 0; i < inputVariables_.size(); i++) { + output.writeMessage(5, inputVariables_.get(i)); + } + for (int i = 0; i < outputVariables_.size(); i++) { + output.writeMessage(6, outputVariables_.get(i)); + } + for (int i = 0; i < inputVariableDefaults_.size(); i++) { + output.writeMessage(7, inputVariableDefaults_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10201, uid_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10202, etag_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(10303, getCreateTime()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(10304, getUpdateTime()); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 10401); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetAnnotations(), AnnotationsDefaultEntryHolder.defaultEntry, 10402); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(unitKind_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, unitKind_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getBlueprint()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getReleaseRequirements()); + } + for (int i = 0; i < inputVariables_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, inputVariables_.get(i)); + } + for (int i = 0; i < outputVariables_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, outputVariables_.get(i)); + } + for (int i = 0; i < inputVariableDefaults_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, inputVariableDefaults_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10201, uid_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10202, etag_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10303, getCreateTime()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10304, 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(10401, labels__); + } + for (java.util.Map.Entry entry : + internalGetAnnotations().getMap().entrySet()) { + com.google.protobuf.MapEntry annotations__ = + AnnotationsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10402, annotations__); + } + size += getUnknownFields().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.saasplatform.saasservicemgmt.v1beta1.Release)) { + return super.equals(obj); + } + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release other = + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnitKind().equals(other.getUnitKind())) return false; + if (hasBlueprint() != other.hasBlueprint()) return false; + if (hasBlueprint()) { + if (!getBlueprint().equals(other.getBlueprint())) return false; + } + if (hasReleaseRequirements() != other.hasReleaseRequirements()) return false; + if (hasReleaseRequirements()) { + if (!getReleaseRequirements().equals(other.getReleaseRequirements())) return false; + } + if (!getInputVariablesList().equals(other.getInputVariablesList())) return false; + if (!getOutputVariablesList().equals(other.getOutputVariablesList())) return false; + if (!getInputVariableDefaultsList().equals(other.getInputVariableDefaultsList())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!internalGetAnnotations().equals(other.internalGetAnnotations())) return false; + if (!getUid().equals(other.getUid())) return false; + if (!getEtag().equals(other.getEtag())) 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + UNIT_KIND_FIELD_NUMBER; + hash = (53 * hash) + getUnitKind().hashCode(); + if (hasBlueprint()) { + hash = (37 * hash) + BLUEPRINT_FIELD_NUMBER; + hash = (53 * hash) + getBlueprint().hashCode(); + } + if (hasReleaseRequirements()) { + hash = (37 * hash) + RELEASE_REQUIREMENTS_FIELD_NUMBER; + hash = (53 * hash) + getReleaseRequirements().hashCode(); + } + if (getInputVariablesCount() > 0) { + hash = (37 * hash) + INPUT_VARIABLES_FIELD_NUMBER; + hash = (53 * hash) + getInputVariablesList().hashCode(); + } + if (getOutputVariablesCount() > 0) { + hash = (37 * hash) + OUTPUT_VARIABLES_FIELD_NUMBER; + hash = (53 * hash) + getOutputVariablesList().hashCode(); + } + if (getInputVariableDefaultsCount() > 0) { + hash = (37 * hash) + INPUT_VARIABLE_DEFAULTS_FIELD_NUMBER; + hash = (53 * hash) + getInputVariableDefaultsList().hashCode(); + } + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + if (!internalGetAnnotations().getMap().isEmpty()) { + hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; + hash = (53 * hash) + internalGetAnnotations().hashCode(); + } + hash = (37 * hash) + UID_FIELD_NUMBER; + hash = (53 * hash) + getUid().hashCode(); + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release 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.saasplatform.saasservicemgmt.v1beta1.Release parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release 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.saasplatform.saasservicemgmt.v1beta1.Release parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release 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.saasplatform.saasservicemgmt.v1beta1.Release parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release 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.saasplatform.saasservicemgmt.v1beta1.Release parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release 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.saasplatform.saasservicemgmt.v1beta1.Release 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 new version to be propagated and deployed to units. This includes pointers
+   * to packaged blueprints for actuation (e.g Helm or Terraform configuration
+   * packages) via artifact registry.
+   * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.Release} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.Release) + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ReleaseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Release_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 10401: + return internalGetLabels(); + case 10402: + return internalGetAnnotations(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 10401: + return internalGetMutableLabels(); + case 10402: + return internalGetMutableAnnotations(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Release_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.Builder.class); + } + + // Construct using com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getBlueprintFieldBuilder(); + getReleaseRequirementsFieldBuilder(); + getInputVariablesFieldBuilder(); + getOutputVariablesFieldBuilder(); + getInputVariableDefaultsFieldBuilder(); + getCreateTimeFieldBuilder(); + getUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + unitKind_ = ""; + blueprint_ = null; + if (blueprintBuilder_ != null) { + blueprintBuilder_.dispose(); + blueprintBuilder_ = null; + } + releaseRequirements_ = null; + if (releaseRequirementsBuilder_ != null) { + releaseRequirementsBuilder_.dispose(); + releaseRequirementsBuilder_ = null; + } + if (inputVariablesBuilder_ == null) { + inputVariables_ = java.util.Collections.emptyList(); + } else { + inputVariables_ = null; + inputVariablesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + if (outputVariablesBuilder_ == null) { + outputVariables_ = java.util.Collections.emptyList(); + } else { + outputVariables_ = null; + outputVariablesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); + if (inputVariableDefaultsBuilder_ == null) { + inputVariableDefaults_ = java.util.Collections.emptyList(); + } else { + inputVariableDefaults_ = null; + inputVariableDefaultsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000040); + internalGetMutableLabels().clear(); + internalGetMutableAnnotations().clear(); + uid_ = ""; + etag_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Release_descriptor; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release + getDefaultInstanceForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release build() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release buildPartial() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release result = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release result) { + if (inputVariablesBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + inputVariables_ = java.util.Collections.unmodifiableList(inputVariables_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.inputVariables_ = inputVariables_; + } else { + result.inputVariables_ = inputVariablesBuilder_.build(); + } + if (outputVariablesBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0)) { + outputVariables_ = java.util.Collections.unmodifiableList(outputVariables_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.outputVariables_ = outputVariables_; + } else { + result.outputVariables_ = outputVariablesBuilder_.build(); + } + if (inputVariableDefaultsBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0)) { + inputVariableDefaults_ = java.util.Collections.unmodifiableList(inputVariableDefaults_); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.inputVariableDefaults_ = inputVariableDefaults_; + } else { + result.inputVariableDefaults_ = inputVariableDefaultsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.unitKind_ = unitKind_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.blueprint_ = blueprintBuilder_ == null ? blueprint_ : blueprintBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.releaseRequirements_ = + releaseRequirementsBuilder_ == null + ? releaseRequirements_ + : releaseRequirementsBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.annotations_ = internalGetAnnotations(); + result.annotations_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.uid_ = uid_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.etag_ = etag_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + result.bitField0_ |= to_bitField0_; + } + + @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.saasplatform.saasservicemgmt.v1beta1.Release) { + return mergeFrom((com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release other) { + if (other + == com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getUnitKind().isEmpty()) { + unitKind_ = other.unitKind_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasBlueprint()) { + mergeBlueprint(other.getBlueprint()); + } + if (other.hasReleaseRequirements()) { + mergeReleaseRequirements(other.getReleaseRequirements()); + } + if (inputVariablesBuilder_ == null) { + if (!other.inputVariables_.isEmpty()) { + if (inputVariables_.isEmpty()) { + inputVariables_ = other.inputVariables_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureInputVariablesIsMutable(); + inputVariables_.addAll(other.inputVariables_); + } + onChanged(); + } + } else { + if (!other.inputVariables_.isEmpty()) { + if (inputVariablesBuilder_.isEmpty()) { + inputVariablesBuilder_.dispose(); + inputVariablesBuilder_ = null; + inputVariables_ = other.inputVariables_; + bitField0_ = (bitField0_ & ~0x00000010); + inputVariablesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getInputVariablesFieldBuilder() + : null; + } else { + inputVariablesBuilder_.addAllMessages(other.inputVariables_); + } + } + } + if (outputVariablesBuilder_ == null) { + if (!other.outputVariables_.isEmpty()) { + if (outputVariables_.isEmpty()) { + outputVariables_ = other.outputVariables_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureOutputVariablesIsMutable(); + outputVariables_.addAll(other.outputVariables_); + } + onChanged(); + } + } else { + if (!other.outputVariables_.isEmpty()) { + if (outputVariablesBuilder_.isEmpty()) { + outputVariablesBuilder_.dispose(); + outputVariablesBuilder_ = null; + outputVariables_ = other.outputVariables_; + bitField0_ = (bitField0_ & ~0x00000020); + outputVariablesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getOutputVariablesFieldBuilder() + : null; + } else { + outputVariablesBuilder_.addAllMessages(other.outputVariables_); + } + } + } + if (inputVariableDefaultsBuilder_ == null) { + if (!other.inputVariableDefaults_.isEmpty()) { + if (inputVariableDefaults_.isEmpty()) { + inputVariableDefaults_ = other.inputVariableDefaults_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensureInputVariableDefaultsIsMutable(); + inputVariableDefaults_.addAll(other.inputVariableDefaults_); + } + onChanged(); + } + } else { + if (!other.inputVariableDefaults_.isEmpty()) { + if (inputVariableDefaultsBuilder_.isEmpty()) { + inputVariableDefaultsBuilder_.dispose(); + inputVariableDefaultsBuilder_ = null; + inputVariableDefaults_ = other.inputVariableDefaults_; + bitField0_ = (bitField0_ & ~0x00000040); + inputVariableDefaultsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getInputVariableDefaultsFieldBuilder() + : null; + } else { + inputVariableDefaultsBuilder_.addAllMessages(other.inputVariableDefaults_); + } + } + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000080; + internalGetMutableAnnotations().mergeFrom(other.internalGetAnnotations()); + bitField0_ |= 0x00000100; + if (!other.getUid().isEmpty()) { + uid_ = other.uid_; + bitField0_ |= 0x00000200; + onChanged(); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + bitField0_ |= 0x00000400; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + unitKind_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getBlueprintFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + getReleaseRequirementsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable m = + input.readMessage( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.parser(), + extensionRegistry); + if (inputVariablesBuilder_ == null) { + ensureInputVariablesIsMutable(); + inputVariables_.add(m); + } else { + inputVariablesBuilder_.addMessage(m); + } + break; + } // case 42 + case 50: + { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable m = + input.readMessage( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.parser(), + extensionRegistry); + if (outputVariablesBuilder_ == null) { + ensureOutputVariablesIsMutable(); + outputVariables_.add(m); + } else { + outputVariablesBuilder_.addMessage(m); + } + break; + } // case 50 + case 58: + { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable m = + input.readMessage( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.parser(), + extensionRegistry); + if (inputVariableDefaultsBuilder_ == null) { + ensureInputVariableDefaultsIsMutable(); + inputVariableDefaults_.add(m); + } else { + inputVariableDefaultsBuilder_.addMessage(m); + } + break; + } // case 58 + case 81610: + { + uid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 81610 + case 81618: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000400; + break; + } // case 81618 + case 82426: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000800; + break; + } // case 82426 + case 82434: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00001000; + break; + } // case 82434 + case 83210: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000080; + break; + } // case 83210 + case 83218: + { + com.google.protobuf.MapEntry annotations__ = + input.readMessage( + AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableAnnotations() + .getMutableMap() + .put(annotations__.getKey(), annotations__.getValue()); + bitField0_ |= 0x00000100; + break; + } // case 83218 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Identifier. The resource name (full URI of the resource) following the
+     * standard naming scheme:
+     *
+     *   "projects/{project}/locations/{location}/releases/{release}"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + } + } + + /** + * + * + *
+     * Identifier. The resource name (full URI of the resource) following the
+     * standard naming scheme:
+     *
+     *   "projects/{project}/locations/{location}/releases/{release}"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + } + } + + /** + * + * + *
+     * Identifier. The resource name (full URI of the resource) following the
+     * standard naming scheme:
+     *
+     *   "projects/{project}/locations/{location}/releases/{release}"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Identifier. The resource name (full URI of the resource) following the
+     * standard naming scheme:
+     *
+     *   "projects/{project}/locations/{location}/releases/{release}"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Identifier. The resource name (full URI of the resource) following the
+     * standard naming scheme:
+     *
+     *   "projects/{project}/locations/{location}/releases/{release}"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object unitKind_ = ""; + + /** + * + * + *
+     * Required. Immutable. Reference to the UnitKind this Release corresponds to
+     * (required and immutable once created).
+     * 
+ * + * + * string unit_kind = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The unitKind. + */ + public java.lang.String getUnitKind() { + java.lang.Object ref = unitKind_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + unitKind_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. Immutable. Reference to the UnitKind this Release corresponds to
+     * (required and immutable once created).
+     * 
+ * + * + * string unit_kind = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for unitKind. + */ + public com.google.protobuf.ByteString getUnitKindBytes() { + java.lang.Object ref = unitKind_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + unitKind_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. Immutable. Reference to the UnitKind this Release corresponds to
+     * (required and immutable once created).
+     * 
+ * + * + * string unit_kind = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @param value The unitKind to set. + * @return This builder for chaining. + */ + public Builder setUnitKind(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + unitKind_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Immutable. Reference to the UnitKind this Release corresponds to
+     * (required and immutable once created).
+     * 
+ * + * + * string unit_kind = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearUnitKind() { + unitKind_ = getDefaultInstance().getUnitKind(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Immutable. Reference to the UnitKind this Release corresponds to
+     * (required and immutable once created).
+     * 
+ * + * + * string unit_kind = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for unitKind to set. + * @return This builder for chaining. + */ + public Builder setUnitKindBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + unitKind_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Blueprint blueprint_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Blueprint, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Blueprint.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.BlueprintOrBuilder> + blueprintBuilder_; + + /** + * + * + *
+     * Optional. Blueprints are OCI Images that contain all of the artifacts
+     * needed to provision a unit.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Blueprint blueprint = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the blueprint field is set. + */ + public boolean hasBlueprint() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Optional. Blueprints are OCI Images that contain all of the artifacts
+     * needed to provision a unit.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Blueprint blueprint = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The blueprint. + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Blueprint getBlueprint() { + if (blueprintBuilder_ == null) { + return blueprint_ == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Blueprint.getDefaultInstance() + : blueprint_; + } else { + return blueprintBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Blueprints are OCI Images that contain all of the artifacts
+     * needed to provision a unit.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Blueprint blueprint = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setBlueprint( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Blueprint value) { + if (blueprintBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + blueprint_ = value; + } else { + blueprintBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Blueprints are OCI Images that contain all of the artifacts
+     * needed to provision a unit.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Blueprint blueprint = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setBlueprint( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Blueprint.Builder builderForValue) { + if (blueprintBuilder_ == null) { + blueprint_ = builderForValue.build(); + } else { + blueprintBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Blueprints are OCI Images that contain all of the artifacts
+     * needed to provision a unit.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Blueprint blueprint = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeBlueprint( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Blueprint value) { + if (blueprintBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && blueprint_ != null + && blueprint_ + != com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Blueprint + .getDefaultInstance()) { + getBlueprintBuilder().mergeFrom(value); + } else { + blueprint_ = value; + } + } else { + blueprintBuilder_.mergeFrom(value); + } + if (blueprint_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Blueprints are OCI Images that contain all of the artifacts
+     * needed to provision a unit.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Blueprint blueprint = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearBlueprint() { + bitField0_ = (bitField0_ & ~0x00000004); + blueprint_ = null; + if (blueprintBuilder_ != null) { + blueprintBuilder_.dispose(); + blueprintBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Blueprints are OCI Images that contain all of the artifacts
+     * needed to provision a unit.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Blueprint blueprint = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Blueprint.Builder + getBlueprintBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getBlueprintFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Blueprints are OCI Images that contain all of the artifacts
+     * needed to provision a unit.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Blueprint blueprint = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.BlueprintOrBuilder + getBlueprintOrBuilder() { + if (blueprintBuilder_ != null) { + return blueprintBuilder_.getMessageOrBuilder(); + } else { + return blueprint_ == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Blueprint.getDefaultInstance() + : blueprint_; + } + } + + /** + * + * + *
+     * Optional. Blueprints are OCI Images that contain all of the artifacts
+     * needed to provision a unit.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Blueprint blueprint = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Blueprint, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Blueprint.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.BlueprintOrBuilder> + getBlueprintFieldBuilder() { + if (blueprintBuilder_ == null) { + blueprintBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Blueprint, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Blueprint.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.BlueprintOrBuilder>( + getBlueprint(), getParentForChildren(), isClean()); + blueprint_ = null; + } + return blueprintBuilder_; + } + + private com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.ReleaseRequirements + releaseRequirements_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.ReleaseRequirements, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.ReleaseRequirements + .Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release + .ReleaseRequirementsOrBuilder> + releaseRequirementsBuilder_; + + /** + * + * + *
+     * Optional. Set of requirements to be fulfilled on the Unit when using this
+     * Release.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.ReleaseRequirements release_requirements = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the releaseRequirements field is set. + */ + public boolean hasReleaseRequirements() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Optional. Set of requirements to be fulfilled on the Unit when using this
+     * Release.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.ReleaseRequirements release_requirements = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The releaseRequirements. + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.ReleaseRequirements + getReleaseRequirements() { + if (releaseRequirementsBuilder_ == null) { + return releaseRequirements_ == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.ReleaseRequirements + .getDefaultInstance() + : releaseRequirements_; + } else { + return releaseRequirementsBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Set of requirements to be fulfilled on the Unit when using this
+     * Release.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.ReleaseRequirements release_requirements = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setReleaseRequirements( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.ReleaseRequirements value) { + if (releaseRequirementsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + releaseRequirements_ = value; + } else { + releaseRequirementsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Set of requirements to be fulfilled on the Unit when using this
+     * Release.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.ReleaseRequirements release_requirements = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setReleaseRequirements( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.ReleaseRequirements.Builder + builderForValue) { + if (releaseRequirementsBuilder_ == null) { + releaseRequirements_ = builderForValue.build(); + } else { + releaseRequirementsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Set of requirements to be fulfilled on the Unit when using this
+     * Release.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.ReleaseRequirements release_requirements = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeReleaseRequirements( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.ReleaseRequirements value) { + if (releaseRequirementsBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && releaseRequirements_ != null + && releaseRequirements_ + != com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.ReleaseRequirements + .getDefaultInstance()) { + getReleaseRequirementsBuilder().mergeFrom(value); + } else { + releaseRequirements_ = value; + } + } else { + releaseRequirementsBuilder_.mergeFrom(value); + } + if (releaseRequirements_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Set of requirements to be fulfilled on the Unit when using this
+     * Release.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.ReleaseRequirements release_requirements = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearReleaseRequirements() { + bitField0_ = (bitField0_ & ~0x00000008); + releaseRequirements_ = null; + if (releaseRequirementsBuilder_ != null) { + releaseRequirementsBuilder_.dispose(); + releaseRequirementsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Set of requirements to be fulfilled on the Unit when using this
+     * Release.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.ReleaseRequirements release_requirements = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.ReleaseRequirements.Builder + getReleaseRequirementsBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getReleaseRequirementsFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Set of requirements to be fulfilled on the Unit when using this
+     * Release.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.ReleaseRequirements release_requirements = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release + .ReleaseRequirementsOrBuilder + getReleaseRequirementsOrBuilder() { + if (releaseRequirementsBuilder_ != null) { + return releaseRequirementsBuilder_.getMessageOrBuilder(); + } else { + return releaseRequirements_ == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.ReleaseRequirements + .getDefaultInstance() + : releaseRequirements_; + } + } + + /** + * + * + *
+     * Optional. Set of requirements to be fulfilled on the Unit when using this
+     * Release.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.ReleaseRequirements release_requirements = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.ReleaseRequirements, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.ReleaseRequirements + .Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release + .ReleaseRequirementsOrBuilder> + getReleaseRequirementsFieldBuilder() { + if (releaseRequirementsBuilder_ == null) { + releaseRequirementsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.ReleaseRequirements, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.ReleaseRequirements + .Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release + .ReleaseRequirementsOrBuilder>( + getReleaseRequirements(), getParentForChildren(), isClean()); + releaseRequirements_ = null; + } + return releaseRequirementsBuilder_; + } + + private java.util.List + inputVariables_ = java.util.Collections.emptyList(); + + private void ensureInputVariablesIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + inputVariables_ = + new java.util.ArrayList< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable>( + inputVariables_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariableOrBuilder> + inputVariablesBuilder_; + + /** + * + * + *
+     * Optional. Output only. List of input variables declared on the blueprint
+     * and can be present with their values on the unit spec
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getInputVariablesList() { + if (inputVariablesBuilder_ == null) { + return java.util.Collections.unmodifiableList(inputVariables_); + } else { + return inputVariablesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. Output only. List of input variables declared on the blueprint
+     * and can be present with their values on the unit spec
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getInputVariablesCount() { + if (inputVariablesBuilder_ == null) { + return inputVariables_.size(); + } else { + return inputVariablesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. Output only. List of input variables declared on the blueprint
+     * and can be present with their values on the unit spec
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable getInputVariables( + int index) { + if (inputVariablesBuilder_ == null) { + return inputVariables_.get(index); + } else { + return inputVariablesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. Output only. List of input variables declared on the blueprint
+     * and can be present with their values on the unit spec
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setInputVariables( + int index, com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable value) { + if (inputVariablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInputVariablesIsMutable(); + inputVariables_.set(index, value); + onChanged(); + } else { + inputVariablesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Output only. List of input variables declared on the blueprint
+     * and can be present with their values on the unit spec
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setInputVariables( + int index, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Builder + builderForValue) { + if (inputVariablesBuilder_ == null) { + ensureInputVariablesIsMutable(); + inputVariables_.set(index, builderForValue.build()); + onChanged(); + } else { + inputVariablesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Output only. List of input variables declared on the blueprint
+     * and can be present with their values on the unit spec
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addInputVariables( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable value) { + if (inputVariablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInputVariablesIsMutable(); + inputVariables_.add(value); + onChanged(); + } else { + inputVariablesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. Output only. List of input variables declared on the blueprint
+     * and can be present with their values on the unit spec
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addInputVariables( + int index, com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable value) { + if (inputVariablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInputVariablesIsMutable(); + inputVariables_.add(index, value); + onChanged(); + } else { + inputVariablesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Output only. List of input variables declared on the blueprint
+     * and can be present with their values on the unit spec
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addInputVariables( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Builder + builderForValue) { + if (inputVariablesBuilder_ == null) { + ensureInputVariablesIsMutable(); + inputVariables_.add(builderForValue.build()); + onChanged(); + } else { + inputVariablesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Output only. List of input variables declared on the blueprint
+     * and can be present with their values on the unit spec
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addInputVariables( + int index, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Builder + builderForValue) { + if (inputVariablesBuilder_ == null) { + ensureInputVariablesIsMutable(); + inputVariables_.add(index, builderForValue.build()); + onChanged(); + } else { + inputVariablesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Output only. List of input variables declared on the blueprint
+     * and can be present with their values on the unit spec
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllInputVariables( + java.lang.Iterable< + ? extends com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable> + values) { + if (inputVariablesBuilder_ == null) { + ensureInputVariablesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, inputVariables_); + onChanged(); + } else { + inputVariablesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. Output only. List of input variables declared on the blueprint
+     * and can be present with their values on the unit spec
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearInputVariables() { + if (inputVariablesBuilder_ == null) { + inputVariables_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + inputVariablesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. Output only. List of input variables declared on the blueprint
+     * and can be present with their values on the unit spec
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeInputVariables(int index) { + if (inputVariablesBuilder_ == null) { + ensureInputVariablesIsMutable(); + inputVariables_.remove(index); + onChanged(); + } else { + inputVariablesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. Output only. List of input variables declared on the blueprint
+     * and can be present with their values on the unit spec
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Builder + getInputVariablesBuilder(int index) { + return getInputVariablesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. Output only. List of input variables declared on the blueprint
+     * and can be present with their values on the unit spec
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariableOrBuilder + getInputVariablesOrBuilder(int index) { + if (inputVariablesBuilder_ == null) { + return inputVariables_.get(index); + } else { + return inputVariablesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. Output only. List of input variables declared on the blueprint
+     * and can be present with their values on the unit spec
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariableOrBuilder> + getInputVariablesOrBuilderList() { + if (inputVariablesBuilder_ != null) { + return inputVariablesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(inputVariables_); + } + } + + /** + * + * + *
+     * Optional. Output only. List of input variables declared on the blueprint
+     * and can be present with their values on the unit spec
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Builder + addInputVariablesBuilder() { + return getInputVariablesFieldBuilder() + .addBuilder( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable + .getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Output only. List of input variables declared on the blueprint
+     * and can be present with their values on the unit spec
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Builder + addInputVariablesBuilder(int index) { + return getInputVariablesFieldBuilder() + .addBuilder( + index, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable + .getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Output only. List of input variables declared on the blueprint
+     * and can be present with their values on the unit spec
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Builder> + getInputVariablesBuilderList() { + return getInputVariablesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariableOrBuilder> + getInputVariablesFieldBuilder() { + if (inputVariablesBuilder_ == null) { + inputVariablesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariableOrBuilder>( + inputVariables_, + ((bitField0_ & 0x00000010) != 0), + getParentForChildren(), + isClean()); + inputVariables_ = null; + } + return inputVariablesBuilder_; + } + + private java.util.List + outputVariables_ = java.util.Collections.emptyList(); + + private void ensureOutputVariablesIsMutable() { + if (!((bitField0_ & 0x00000020) != 0)) { + outputVariables_ = + new java.util.ArrayList< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable>( + outputVariables_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariableOrBuilder> + outputVariablesBuilder_; + + /** + * + * + *
+     * Optional. Output only. List of output variables declared on the blueprint
+     * and can be present with their values on the unit status
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable output_variables = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getOutputVariablesList() { + if (outputVariablesBuilder_ == null) { + return java.util.Collections.unmodifiableList(outputVariables_); + } else { + return outputVariablesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. Output only. List of output variables declared on the blueprint
+     * and can be present with their values on the unit status
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable output_variables = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getOutputVariablesCount() { + if (outputVariablesBuilder_ == null) { + return outputVariables_.size(); + } else { + return outputVariablesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. Output only. List of output variables declared on the blueprint
+     * and can be present with their values on the unit status
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable output_variables = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable getOutputVariables( + int index) { + if (outputVariablesBuilder_ == null) { + return outputVariables_.get(index); + } else { + return outputVariablesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. Output only. List of output variables declared on the blueprint
+     * and can be present with their values on the unit status
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable output_variables = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setOutputVariables( + int index, com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable value) { + if (outputVariablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOutputVariablesIsMutable(); + outputVariables_.set(index, value); + onChanged(); + } else { + outputVariablesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Output only. List of output variables declared on the blueprint
+     * and can be present with their values on the unit status
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable output_variables = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setOutputVariables( + int index, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Builder + builderForValue) { + if (outputVariablesBuilder_ == null) { + ensureOutputVariablesIsMutable(); + outputVariables_.set(index, builderForValue.build()); + onChanged(); + } else { + outputVariablesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Output only. List of output variables declared on the blueprint
+     * and can be present with their values on the unit status
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable output_variables = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addOutputVariables( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable value) { + if (outputVariablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOutputVariablesIsMutable(); + outputVariables_.add(value); + onChanged(); + } else { + outputVariablesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. Output only. List of output variables declared on the blueprint
+     * and can be present with their values on the unit status
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable output_variables = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addOutputVariables( + int index, com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable value) { + if (outputVariablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOutputVariablesIsMutable(); + outputVariables_.add(index, value); + onChanged(); + } else { + outputVariablesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Output only. List of output variables declared on the blueprint
+     * and can be present with their values on the unit status
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable output_variables = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addOutputVariables( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Builder + builderForValue) { + if (outputVariablesBuilder_ == null) { + ensureOutputVariablesIsMutable(); + outputVariables_.add(builderForValue.build()); + onChanged(); + } else { + outputVariablesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Output only. List of output variables declared on the blueprint
+     * and can be present with their values on the unit status
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable output_variables = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addOutputVariables( + int index, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Builder + builderForValue) { + if (outputVariablesBuilder_ == null) { + ensureOutputVariablesIsMutable(); + outputVariables_.add(index, builderForValue.build()); + onChanged(); + } else { + outputVariablesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Output only. List of output variables declared on the blueprint
+     * and can be present with their values on the unit status
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable output_variables = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllOutputVariables( + java.lang.Iterable< + ? extends com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable> + values) { + if (outputVariablesBuilder_ == null) { + ensureOutputVariablesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, outputVariables_); + onChanged(); + } else { + outputVariablesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. Output only. List of output variables declared on the blueprint
+     * and can be present with their values on the unit status
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable output_variables = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearOutputVariables() { + if (outputVariablesBuilder_ == null) { + outputVariables_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + } else { + outputVariablesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. Output only. List of output variables declared on the blueprint
+     * and can be present with their values on the unit status
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable output_variables = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeOutputVariables(int index) { + if (outputVariablesBuilder_ == null) { + ensureOutputVariablesIsMutable(); + outputVariables_.remove(index); + onChanged(); + } else { + outputVariablesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. Output only. List of output variables declared on the blueprint
+     * and can be present with their values on the unit status
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable output_variables = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Builder + getOutputVariablesBuilder(int index) { + return getOutputVariablesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. Output only. List of output variables declared on the blueprint
+     * and can be present with their values on the unit status
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable output_variables = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariableOrBuilder + getOutputVariablesOrBuilder(int index) { + if (outputVariablesBuilder_ == null) { + return outputVariables_.get(index); + } else { + return outputVariablesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. Output only. List of output variables declared on the blueprint
+     * and can be present with their values on the unit status
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable output_variables = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariableOrBuilder> + getOutputVariablesOrBuilderList() { + if (outputVariablesBuilder_ != null) { + return outputVariablesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(outputVariables_); + } + } + + /** + * + * + *
+     * Optional. Output only. List of output variables declared on the blueprint
+     * and can be present with their values on the unit status
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable output_variables = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Builder + addOutputVariablesBuilder() { + return getOutputVariablesFieldBuilder() + .addBuilder( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable + .getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Output only. List of output variables declared on the blueprint
+     * and can be present with their values on the unit status
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable output_variables = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Builder + addOutputVariablesBuilder(int index) { + return getOutputVariablesFieldBuilder() + .addBuilder( + index, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable + .getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Output only. List of output variables declared on the blueprint
+     * and can be present with their values on the unit status
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable output_variables = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Builder> + getOutputVariablesBuilderList() { + return getOutputVariablesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariableOrBuilder> + getOutputVariablesFieldBuilder() { + if (outputVariablesBuilder_ == null) { + outputVariablesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariableOrBuilder>( + outputVariables_, + ((bitField0_ & 0x00000020) != 0), + getParentForChildren(), + isClean()); + outputVariables_ = null; + } + return outputVariablesBuilder_; + } + + private java.util.List + inputVariableDefaults_ = java.util.Collections.emptyList(); + + private void ensureInputVariableDefaultsIsMutable() { + if (!((bitField0_ & 0x00000040) != 0)) { + inputVariableDefaults_ = + new java.util.ArrayList< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable>( + inputVariableDefaults_); + bitField0_ |= 0x00000040; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariableOrBuilder> + inputVariableDefaultsBuilder_; + + /** + * + * + *
+     * Optional. Mapping of input variables to default values. Maximum 100
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variable_defaults = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getInputVariableDefaultsList() { + if (inputVariableDefaultsBuilder_ == null) { + return java.util.Collections.unmodifiableList(inputVariableDefaults_); + } else { + return inputVariableDefaultsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. Mapping of input variables to default values. Maximum 100
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variable_defaults = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getInputVariableDefaultsCount() { + if (inputVariableDefaultsBuilder_ == null) { + return inputVariableDefaults_.size(); + } else { + return inputVariableDefaultsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. Mapping of input variables to default values. Maximum 100
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variable_defaults = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable + getInputVariableDefaults(int index) { + if (inputVariableDefaultsBuilder_ == null) { + return inputVariableDefaults_.get(index); + } else { + return inputVariableDefaultsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. Mapping of input variables to default values. Maximum 100
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variable_defaults = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setInputVariableDefaults( + int index, com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable value) { + if (inputVariableDefaultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInputVariableDefaultsIsMutable(); + inputVariableDefaults_.set(index, value); + onChanged(); + } else { + inputVariableDefaultsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Mapping of input variables to default values. Maximum 100
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variable_defaults = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setInputVariableDefaults( + int index, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Builder + builderForValue) { + if (inputVariableDefaultsBuilder_ == null) { + ensureInputVariableDefaultsIsMutable(); + inputVariableDefaults_.set(index, builderForValue.build()); + onChanged(); + } else { + inputVariableDefaultsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Mapping of input variables to default values. Maximum 100
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variable_defaults = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addInputVariableDefaults( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable value) { + if (inputVariableDefaultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInputVariableDefaultsIsMutable(); + inputVariableDefaults_.add(value); + onChanged(); + } else { + inputVariableDefaultsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. Mapping of input variables to default values. Maximum 100
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variable_defaults = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addInputVariableDefaults( + int index, com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable value) { + if (inputVariableDefaultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInputVariableDefaultsIsMutable(); + inputVariableDefaults_.add(index, value); + onChanged(); + } else { + inputVariableDefaultsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Mapping of input variables to default values. Maximum 100
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variable_defaults = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addInputVariableDefaults( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Builder + builderForValue) { + if (inputVariableDefaultsBuilder_ == null) { + ensureInputVariableDefaultsIsMutable(); + inputVariableDefaults_.add(builderForValue.build()); + onChanged(); + } else { + inputVariableDefaultsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Mapping of input variables to default values. Maximum 100
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variable_defaults = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addInputVariableDefaults( + int index, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Builder + builderForValue) { + if (inputVariableDefaultsBuilder_ == null) { + ensureInputVariableDefaultsIsMutable(); + inputVariableDefaults_.add(index, builderForValue.build()); + onChanged(); + } else { + inputVariableDefaultsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Mapping of input variables to default values. Maximum 100
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variable_defaults = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllInputVariableDefaults( + java.lang.Iterable< + ? extends com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable> + values) { + if (inputVariableDefaultsBuilder_ == null) { + ensureInputVariableDefaultsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, inputVariableDefaults_); + onChanged(); + } else { + inputVariableDefaultsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. Mapping of input variables to default values. Maximum 100
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variable_defaults = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearInputVariableDefaults() { + if (inputVariableDefaultsBuilder_ == null) { + inputVariableDefaults_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + } else { + inputVariableDefaultsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. Mapping of input variables to default values. Maximum 100
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variable_defaults = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeInputVariableDefaults(int index) { + if (inputVariableDefaultsBuilder_ == null) { + ensureInputVariableDefaultsIsMutable(); + inputVariableDefaults_.remove(index); + onChanged(); + } else { + inputVariableDefaultsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. Mapping of input variables to default values. Maximum 100
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variable_defaults = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Builder + getInputVariableDefaultsBuilder(int index) { + return getInputVariableDefaultsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. Mapping of input variables to default values. Maximum 100
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variable_defaults = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariableOrBuilder + getInputVariableDefaultsOrBuilder(int index) { + if (inputVariableDefaultsBuilder_ == null) { + return inputVariableDefaults_.get(index); + } else { + return inputVariableDefaultsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. Mapping of input variables to default values. Maximum 100
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variable_defaults = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + ? extends com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariableOrBuilder> + getInputVariableDefaultsOrBuilderList() { + if (inputVariableDefaultsBuilder_ != null) { + return inputVariableDefaultsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(inputVariableDefaults_); + } + } + + /** + * + * + *
+     * Optional. Mapping of input variables to default values. Maximum 100
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variable_defaults = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Builder + addInputVariableDefaultsBuilder() { + return getInputVariableDefaultsFieldBuilder() + .addBuilder( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable + .getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Mapping of input variables to default values. Maximum 100
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variable_defaults = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Builder + addInputVariableDefaultsBuilder(int index) { + return getInputVariableDefaultsFieldBuilder() + .addBuilder( + index, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable + .getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Mapping of input variables to default values. Maximum 100
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variable_defaults = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Builder> + getInputVariableDefaultsBuilderList() { + return getInputVariableDefaultsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariableOrBuilder> + getInputVariableDefaultsFieldBuilder() { + if (inputVariableDefaultsBuilder_ == null) { + inputVariableDefaultsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariableOrBuilder>( + inputVariableDefaults_, + ((bitField0_ & 0x00000040) != 0), + getParentForChildren(), + isClean()); + inputVariableDefaults_ = null; + } + return inputVariableDefaultsBuilder_; + } + + 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() { + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + bitField0_ |= 0x00000080; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
+     * Optional. The labels on the resource, which can be used for categorization.
+     * similar to Kubernetes resource labels.
+     * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** + * + * + *
+     * Optional. The labels on the resource, which can be used for categorization.
+     * similar to Kubernetes resource labels.
+     * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
+     * Optional. The labels on the resource, which can be used for categorization.
+     * similar to Kubernetes resource labels.
+     * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+     * Optional. The labels on the resource, which can be used for categorization.
+     * similar to Kubernetes resource labels.
+     * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000080); + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + + /** + * + * + *
+     * Optional. The labels on the resource, which can be used for categorization.
+     * similar to Kubernetes resource labels.
+     * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000080; + return internalGetMutableLabels().getMutableMap(); + } + + /** + * + * + *
+     * Optional. The labels on the resource, which can be used for categorization.
+     * similar to Kubernetes resource labels.
+     * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000080; + return this; + } + + /** + * + * + *
+     * Optional. The labels on the resource, which can be used for categorization.
+     * similar to Kubernetes resource labels.
+     * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000080; + return this; + } + + private com.google.protobuf.MapField annotations_; + + private com.google.protobuf.MapField + internalGetAnnotations() { + if (annotations_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AnnotationsDefaultEntryHolder.defaultEntry); + } + return annotations_; + } + + private com.google.protobuf.MapField + internalGetMutableAnnotations() { + if (annotations_ == null) { + annotations_ = + com.google.protobuf.MapField.newMapField(AnnotationsDefaultEntryHolder.defaultEntry); + } + if (!annotations_.isMutable()) { + annotations_ = annotations_.copy(); + } + bitField0_ |= 0x00000100; + onChanged(); + return annotations_; + } + + public int getAnnotationsCount() { + return internalGetAnnotations().getMap().size(); + } + + /** + * + * + *
+     * Optional. Annotations is an unstructured key-value map stored with a
+     * resource that may be set by external tools to store and retrieve arbitrary
+     * metadata. They are not queryable and should be preserved when modifying
+     * objects.
+     *
+     * More info: https://kubernetes.io/docs/user-guide/annotations
+     * 
+ * + * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetAnnotations().getMap().containsKey(key); + } + + /** Use {@link #getAnnotationsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getAnnotations() { + return getAnnotationsMap(); + } + + /** + * + * + *
+     * Optional. Annotations is an unstructured key-value map stored with a
+     * resource that may be set by external tools to store and retrieve arbitrary
+     * metadata. They are not queryable and should be preserved when modifying
+     * objects.
+     *
+     * More info: https://kubernetes.io/docs/user-guide/annotations
+     * 
+ * + * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getAnnotationsMap() { + return internalGetAnnotations().getMap(); + } + + /** + * + * + *
+     * Optional. Annotations is an unstructured key-value map stored with a
+     * resource that may be set by external tools to store and retrieve arbitrary
+     * metadata. They are not queryable and should be preserved when modifying
+     * objects.
+     *
+     * More info: https://kubernetes.io/docs/user-guide/annotations
+     * 
+ * + * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getAnnotationsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+     * Optional. Annotations is an unstructured key-value map stored with a
+     * resource that may be set by external tools to store and retrieve arbitrary
+     * metadata. They are not queryable and should be preserved when modifying
+     * objects.
+     *
+     * More info: https://kubernetes.io/docs/user-guide/annotations
+     * 
+ * + * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearAnnotations() { + bitField0_ = (bitField0_ & ~0x00000100); + internalGetMutableAnnotations().getMutableMap().clear(); + return this; + } + + /** + * + * + *
+     * Optional. Annotations is an unstructured key-value map stored with a
+     * resource that may be set by external tools to store and retrieve arbitrary
+     * metadata. They are not queryable and should be preserved when modifying
+     * objects.
+     *
+     * More info: https://kubernetes.io/docs/user-guide/annotations
+     * 
+ * + * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableAnnotations().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableAnnotations() { + bitField0_ |= 0x00000100; + return internalGetMutableAnnotations().getMutableMap(); + } + + /** + * + * + *
+     * Optional. Annotations is an unstructured key-value map stored with a
+     * resource that may be set by external tools to store and retrieve arbitrary
+     * metadata. They are not queryable and should be preserved when modifying
+     * objects.
+     *
+     * More info: https://kubernetes.io/docs/user-guide/annotations
+     * 
+ * + * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAnnotations(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableAnnotations().getMutableMap().put(key, value); + bitField0_ |= 0x00000100; + return this; + } + + /** + * + * + *
+     * Optional. Annotations is an unstructured key-value map stored with a
+     * resource that may be set by external tools to store and retrieve arbitrary
+     * metadata. They are not queryable and should be preserved when modifying
+     * objects.
+     *
+     * More info: https://kubernetes.io/docs/user-guide/annotations
+     * 
+ * + * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllAnnotations(java.util.Map values) { + internalGetMutableAnnotations().getMutableMap().putAll(values); + bitField0_ |= 0x00000100; + return this; + } + + private java.lang.Object uid_ = ""; + + /** + * + * + *
+     * Output only. The unique identifier of the resource. UID is unique in the
+     * time and space for this resource within the scope of the service. It is
+     * typically generated by the server on successful creation of a resource
+     * and must not be changed. UID is used to uniquely identify resources
+     * with resource name reuses. This should be a UUID4.
+     * 
+ * + * + * string uid = 10201 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The uid. + */ + public java.lang.String getUid() { + java.lang.Object ref = uid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The unique identifier of the resource. UID is unique in the
+     * time and space for this resource within the scope of the service. It is
+     * typically generated by the server on successful creation of a resource
+     * and must not be changed. UID is used to uniquely identify resources
+     * with resource name reuses. This should be a UUID4.
+     * 
+ * + * + * string uid = 10201 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The bytes for uid. + */ + public com.google.protobuf.ByteString getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The unique identifier of the resource. UID is unique in the
+     * time and space for this resource within the scope of the service. It is
+     * typically generated by the server on successful creation of a resource
+     * and must not be changed. UID is used to uniquely identify resources
+     * with resource name reuses. This should be a UUID4.
+     * 
+ * + * + * string uid = 10201 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @param value The uid to set. + * @return This builder for chaining. + */ + public Builder setUid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uid_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The unique identifier of the resource. UID is unique in the
+     * time and space for this resource within the scope of the service. It is
+     * typically generated by the server on successful creation of a resource
+     * and must not be changed. UID is used to uniquely identify resources
+     * with resource name reuses. This should be a UUID4.
+     * 
+ * + * + * string uid = 10201 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearUid() { + uid_ = getDefaultInstance().getUid(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The unique identifier of the resource. UID is unique in the
+     * time and space for this resource within the scope of the service. It is
+     * typically generated by the server on successful creation of a resource
+     * and must not be changed. UID is used to uniquely identify resources
+     * with resource name reuses. This should be a UUID4.
+     * 
+ * + * + * string uid = 10201 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for uid to set. + * @return This builder for chaining. + */ + public Builder setUidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uid_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + private java.lang.Object etag_ = ""; + + /** + * + * + *
+     * Output only. An opaque value that uniquely identifies a version or
+     * generation of a resource. It can be used to confirm that the client
+     * and server agree on the ordering of a resource being written.
+     * 
+ * + * string etag = 10202 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+     * Output only. An opaque value that uniquely identifies a version or
+     * generation of a resource. It can be used to confirm that the client
+     * and server agree on the ordering of a resource being written.
+     * 
+ * + * string etag = 10202 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+     * Output only. An opaque value that uniquely identifies a version or
+     * generation of a resource. It can be used to confirm that the client
+     * and server agree on the ordering of a resource being written.
+     * 
+ * + * string etag = 10202 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. An opaque value that uniquely identifies a version or
+     * generation of a resource. It can be used to confirm that the client
+     * and server agree on the ordering of a resource being written.
+     * 
+ * + * string etag = 10202 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. An opaque value that uniquely identifies a version or
+     * generation of a resource. It can be used to confirm that the client
+     * and server agree on the ordering of a resource being written.
+     * 
+ * + * string etag = 10202 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + bitField0_ |= 0x00000400; + 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 timestamp when the resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000800) != 0); + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.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 timestamp when the resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.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; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000800) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000800; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000800); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000800; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.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 timestamp when the resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.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 timestamp when the resource was last updated. Any
+     * change to the resource made by users must refresh this value.
+     * Changes to a resource made by the service should refresh this value.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00001000) != 0); + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was last updated. Any
+     * change to the resource made by users must refresh this value.
+     * Changes to a resource made by the service should refresh this value.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.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 timestamp when the resource was last updated. Any
+     * change to the resource made by users must refresh this value.
+     * Changes to a resource made by the service should refresh this value.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.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; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was last updated. Any
+     * change to the resource made by users must refresh this value.
+     * Changes to a resource made by the service should refresh this value.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was last updated. Any
+     * change to the resource made by users must refresh this value.
+     * Changes to a resource made by the service should refresh this value.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00001000) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00001000; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was last updated. Any
+     * change to the resource made by users must refresh this value.
+     * Changes to a resource made by the service should refresh this value.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00001000); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was last updated. Any
+     * change to the resource made by users must refresh this value.
+     * Changes to a resource made by the service should refresh this value.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00001000; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was last updated. Any
+     * change to the resource made by users must refresh this value.
+     * Changes to a resource made by the service should refresh this value.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.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 timestamp when the resource was last updated. Any
+     * change to the resource made by users must refresh this value.
+     * Changes to a resource made by the service should refresh this value.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.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_; + } + + @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.saasplatform.saasservicemgmt.v1beta1.Release) + } + + // @@protoc_insertion_point(class_scope:google.cloud.saasplatform.saasservicemgmt.v1beta1.Release) + private static final com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release(); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Release parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.saasplatform.saasservicemgmt.v1beta1.Release getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ReleaseName.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ReleaseName.java new file mode 100644 index 000000000000..f91c7653cfcb --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ReleaseName.java @@ -0,0 +1,223 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1; + +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; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class ReleaseName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_RELEASE = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/releases/{release}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String release; + + @Deprecated + protected ReleaseName() { + project = null; + location = null; + release = null; + } + + private ReleaseName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + release = Preconditions.checkNotNull(builder.getRelease()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getRelease() { + return release; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static ReleaseName of(String project, String location, String release) { + return newBuilder().setProject(project).setLocation(location).setRelease(release).build(); + } + + public static String format(String project, String location, String release) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setRelease(release) + .build() + .toString(); + } + + public static ReleaseName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_RELEASE.validatedMatch( + formattedString, "ReleaseName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("release")); + } + + 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 (ReleaseName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_RELEASE.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (release != null) { + fieldMapBuilder.put("release", release); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_RELEASE.instantiate( + "project", project, "location", location, "release", release); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + ReleaseName that = ((ReleaseName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.release, that.release); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(release); + return h; + } + + /** Builder for projects/{project}/locations/{location}/releases/{release}. */ + public static class Builder { + private String project; + private String location; + private String release; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getRelease() { + return release; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setRelease(String release) { + this.release = release; + return this; + } + + private Builder(ReleaseName releaseName) { + this.project = releaseName.project; + this.location = releaseName.location; + this.release = releaseName.release; + } + + public ReleaseName build() { + return new ReleaseName(this); + } + } +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ReleaseOrBuilder.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ReleaseOrBuilder.java new file mode 100644 index 000000000000..06297e17cbf6 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ReleaseOrBuilder.java @@ -0,0 +1,728 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_resources.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +public interface ReleaseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.saasplatform.saasservicemgmt.v1beta1.Release) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Identifier. The resource name (full URI of the resource) following the
+   * standard naming scheme:
+   *
+   *   "projects/{project}/locations/{location}/releases/{release}"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Identifier. The resource name (full URI of the resource) following the
+   * standard naming scheme:
+   *
+   *   "projects/{project}/locations/{location}/releases/{release}"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. Immutable. Reference to the UnitKind this Release corresponds to
+   * (required and immutable once created).
+   * 
+ * + * + * string unit_kind = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The unitKind. + */ + java.lang.String getUnitKind(); + + /** + * + * + *
+   * Required. Immutable. Reference to the UnitKind this Release corresponds to
+   * (required and immutable once created).
+   * 
+ * + * + * string unit_kind = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for unitKind. + */ + com.google.protobuf.ByteString getUnitKindBytes(); + + /** + * + * + *
+   * Optional. Blueprints are OCI Images that contain all of the artifacts
+   * needed to provision a unit.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Blueprint blueprint = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the blueprint field is set. + */ + boolean hasBlueprint(); + + /** + * + * + *
+   * Optional. Blueprints are OCI Images that contain all of the artifacts
+   * needed to provision a unit.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Blueprint blueprint = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The blueprint. + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Blueprint getBlueprint(); + + /** + * + * + *
+   * Optional. Blueprints are OCI Images that contain all of the artifacts
+   * needed to provision a unit.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Blueprint blueprint = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.BlueprintOrBuilder getBlueprintOrBuilder(); + + /** + * + * + *
+   * Optional. Set of requirements to be fulfilled on the Unit when using this
+   * Release.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.ReleaseRequirements release_requirements = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the releaseRequirements field is set. + */ + boolean hasReleaseRequirements(); + + /** + * + * + *
+   * Optional. Set of requirements to be fulfilled on the Unit when using this
+   * Release.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.ReleaseRequirements release_requirements = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The releaseRequirements. + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.ReleaseRequirements + getReleaseRequirements(); + + /** + * + * + *
+   * Optional. Set of requirements to be fulfilled on the Unit when using this
+   * Release.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.ReleaseRequirements release_requirements = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.ReleaseRequirementsOrBuilder + getReleaseRequirementsOrBuilder(); + + /** + * + * + *
+   * Optional. Output only. List of input variables declared on the blueprint
+   * and can be present with their values on the unit spec
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getInputVariablesList(); + + /** + * + * + *
+   * Optional. Output only. List of input variables declared on the blueprint
+   * and can be present with their values on the unit spec
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable getInputVariables(int index); + + /** + * + * + *
+   * Optional. Output only. List of input variables declared on the blueprint
+   * and can be present with their values on the unit spec
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getInputVariablesCount(); + + /** + * + * + *
+   * Optional. Output only. List of input variables declared on the blueprint
+   * and can be present with their values on the unit spec
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List< + ? extends com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariableOrBuilder> + getInputVariablesOrBuilderList(); + + /** + * + * + *
+   * Optional. Output only. List of input variables declared on the blueprint
+   * and can be present with their values on the unit spec
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariableOrBuilder + getInputVariablesOrBuilder(int index); + + /** + * + * + *
+   * Optional. Output only. List of output variables declared on the blueprint
+   * and can be present with their values on the unit status
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable output_variables = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getOutputVariablesList(); + + /** + * + * + *
+   * Optional. Output only. List of output variables declared on the blueprint
+   * and can be present with their values on the unit status
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable output_variables = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable getOutputVariables(int index); + + /** + * + * + *
+   * Optional. Output only. List of output variables declared on the blueprint
+   * and can be present with their values on the unit status
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable output_variables = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getOutputVariablesCount(); + + /** + * + * + *
+   * Optional. Output only. List of output variables declared on the blueprint
+   * and can be present with their values on the unit status
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable output_variables = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List< + ? extends com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariableOrBuilder> + getOutputVariablesOrBuilderList(); + + /** + * + * + *
+   * Optional. Output only. List of output variables declared on the blueprint
+   * and can be present with their values on the unit status
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable output_variables = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariableOrBuilder + getOutputVariablesOrBuilder(int index); + + /** + * + * + *
+   * Optional. Mapping of input variables to default values. Maximum 100
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variable_defaults = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getInputVariableDefaultsList(); + + /** + * + * + *
+   * Optional. Mapping of input variables to default values. Maximum 100
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variable_defaults = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable getInputVariableDefaults( + int index); + + /** + * + * + *
+   * Optional. Mapping of input variables to default values. Maximum 100
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variable_defaults = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getInputVariableDefaultsCount(); + + /** + * + * + *
+   * Optional. Mapping of input variables to default values. Maximum 100
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variable_defaults = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + ? extends com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariableOrBuilder> + getInputVariableDefaultsOrBuilderList(); + + /** + * + * + *
+   * Optional. Mapping of input variables to default values. Maximum 100
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variable_defaults = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariableOrBuilder + getInputVariableDefaultsOrBuilder(int index); + + /** + * + * + *
+   * Optional. The labels on the resource, which can be used for categorization.
+   * similar to Kubernetes resource labels.
+   * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getLabelsCount(); + + /** + * + * + *
+   * Optional. The labels on the resource, which can be used for categorization.
+   * similar to Kubernetes resource labels.
+   * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsLabels(java.lang.String key); + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + + /** + * + * + *
+   * Optional. The labels on the resource, which can be used for categorization.
+   * similar to Kubernetes resource labels.
+   * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map getLabelsMap(); + + /** + * + * + *
+   * Optional. The labels on the resource, which can be used for categorization.
+   * similar to Kubernetes resource labels.
+   * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
+   * Optional. The labels on the resource, which can be used for categorization.
+   * similar to Kubernetes resource labels.
+   * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
+   * Optional. Annotations is an unstructured key-value map stored with a
+   * resource that may be set by external tools to store and retrieve arbitrary
+   * metadata. They are not queryable and should be preserved when modifying
+   * objects.
+   *
+   * More info: https://kubernetes.io/docs/user-guide/annotations
+   * 
+ * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getAnnotationsCount(); + + /** + * + * + *
+   * Optional. Annotations is an unstructured key-value map stored with a
+   * resource that may be set by external tools to store and retrieve arbitrary
+   * metadata. They are not queryable and should be preserved when modifying
+   * objects.
+   *
+   * More info: https://kubernetes.io/docs/user-guide/annotations
+   * 
+ * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsAnnotations(java.lang.String key); + + /** Use {@link #getAnnotationsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getAnnotations(); + + /** + * + * + *
+   * Optional. Annotations is an unstructured key-value map stored with a
+   * resource that may be set by external tools to store and retrieve arbitrary
+   * metadata. They are not queryable and should be preserved when modifying
+   * objects.
+   *
+   * More info: https://kubernetes.io/docs/user-guide/annotations
+   * 
+ * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map getAnnotationsMap(); + + /** + * + * + *
+   * Optional. Annotations is an unstructured key-value map stored with a
+   * resource that may be set by external tools to store and retrieve arbitrary
+   * metadata. They are not queryable and should be preserved when modifying
+   * objects.
+   *
+   * More info: https://kubernetes.io/docs/user-guide/annotations
+   * 
+ * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + java.lang.String getAnnotationsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
+   * Optional. Annotations is an unstructured key-value map stored with a
+   * resource that may be set by external tools to store and retrieve arbitrary
+   * metadata. They are not queryable and should be preserved when modifying
+   * objects.
+   *
+   * More info: https://kubernetes.io/docs/user-guide/annotations
+   * 
+ * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.lang.String getAnnotationsOrThrow(java.lang.String key); + + /** + * + * + *
+   * Output only. The unique identifier of the resource. UID is unique in the
+   * time and space for this resource within the scope of the service. It is
+   * typically generated by the server on successful creation of a resource
+   * and must not be changed. UID is used to uniquely identify resources
+   * with resource name reuses. This should be a UUID4.
+   * 
+ * + * + * string uid = 10201 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The uid. + */ + java.lang.String getUid(); + + /** + * + * + *
+   * Output only. The unique identifier of the resource. UID is unique in the
+   * time and space for this resource within the scope of the service. It is
+   * typically generated by the server on successful creation of a resource
+   * and must not be changed. UID is used to uniquely identify resources
+   * with resource name reuses. This should be a UUID4.
+   * 
+ * + * + * string uid = 10201 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The bytes for uid. + */ + com.google.protobuf.ByteString getUidBytes(); + + /** + * + * + *
+   * Output only. An opaque value that uniquely identifies a version or
+   * generation of a resource. It can be used to confirm that the client
+   * and server agree on the ordering of a resource being written.
+   * 
+ * + * string etag = 10202 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The etag. + */ + java.lang.String getEtag(); + + /** + * + * + *
+   * Output only. An opaque value that uniquely identifies a version or
+   * generation of a resource. It can be used to confirm that the client
+   * and server agree on the ordering of a resource being written.
+   * 
+ * + * string etag = 10202 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); + + /** + * + * + *
+   * Output only. The timestamp when the resource was created.
+   * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
+   * Output only. The timestamp when the resource was created.
+   * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
+   * Output only. The timestamp when the resource was created.
+   * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. The timestamp when the resource was last updated. Any
+   * change to the resource made by users must refresh this value.
+   * Changes to a resource made by the service should refresh this value.
+   * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
+   * Output only. The timestamp when the resource was last updated. Any
+   * change to the resource made by users must refresh this value.
+   * Changes to a resource made by the service should refresh this value.
+   * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
+   * Output only. The timestamp when the resource was last updated. Any
+   * change to the resource made by users must refresh this value.
+   * Changes to a resource made by the service should refresh this value.
+   * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/Rollout.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/Rollout.java new file mode 100644 index 000000000000..4453e491ab58 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/Rollout.java @@ -0,0 +1,6217 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/rollouts_resources.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +/** + * + * + *
+ * Represents a single rollout execution and its results
+ * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout} + */ +public final class Rollout extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout) + RolloutOrBuilder { + private static final long serialVersionUID = 0L; + + // Use Rollout.newBuilder() to construct. + private Rollout(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Rollout() { + name_ = ""; + release_ = ""; + state_ = 0; + stateMessage_ = ""; + rootRollout_ = ""; + parentRollout_ = ""; + rolloutOrchestrationStrategy_ = ""; + unitFilter_ = ""; + rolloutKind_ = ""; + uid_ = ""; + etag_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Rollout(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Rollout_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 10401: + return internalGetLabels(); + case 10402: + return internalGetAnnotations(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Rollout_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout.Builder.class); + } + + /** + * + * + *
+   * The current state of the rollout.
+   * 
+ * + * Protobuf enum {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout.RolloutState} + */ + public enum RolloutState implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified state.
+     * 
+ * + * ROLLOUT_STATE_UNSPECIFIED = 0; + */ + ROLLOUT_STATE_UNSPECIFIED(0), + /** + * + * + *
+     * Rollout is in progress.
+     * 
+ * + * ROLLOUT_STATE_RUNNING = 1; + */ + ROLLOUT_STATE_RUNNING(1), + /** + * + * + *
+     * Rollout has been paused.
+     * 
+ * + * ROLLOUT_STATE_PAUSED = 2; + */ + ROLLOUT_STATE_PAUSED(2), + /** + * + * + *
+     * Rollout completed successfully.
+     * 
+ * + * ROLLOUT_STATE_SUCCEEDED = 3; + */ + ROLLOUT_STATE_SUCCEEDED(3), + /** + * + * + *
+     * Rollout has failed.
+     * 
+ * + * ROLLOUT_STATE_FAILED = 4; + */ + ROLLOUT_STATE_FAILED(4), + /** + * + * + *
+     * Rollout has been canceled.
+     * 
+ * + * ROLLOUT_STATE_CANCELLED = 5; + */ + ROLLOUT_STATE_CANCELLED(5), + /** + * + * + *
+     * Rollout is waiting for some condition to be met before starting.
+     * 
+ * + * ROLLOUT_STATE_WAITING = 6; + */ + ROLLOUT_STATE_WAITING(6), + /** + * + * + *
+     * Rollout is being canceled.
+     * 
+ * + * ROLLOUT_STATE_CANCELLING = 7; + */ + ROLLOUT_STATE_CANCELLING(7), + /** + * + * + *
+     * Rollout is being resumed.
+     * 
+ * + * ROLLOUT_STATE_RESUMING = 8; + */ + ROLLOUT_STATE_RESUMING(8), + /** + * + * + *
+     * Rollout is being paused.
+     * 
+ * + * ROLLOUT_STATE_PAUSING = 9; + */ + ROLLOUT_STATE_PAUSING(9), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Unspecified state.
+     * 
+ * + * ROLLOUT_STATE_UNSPECIFIED = 0; + */ + public static final int ROLLOUT_STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Rollout is in progress.
+     * 
+ * + * ROLLOUT_STATE_RUNNING = 1; + */ + public static final int ROLLOUT_STATE_RUNNING_VALUE = 1; + + /** + * + * + *
+     * Rollout has been paused.
+     * 
+ * + * ROLLOUT_STATE_PAUSED = 2; + */ + public static final int ROLLOUT_STATE_PAUSED_VALUE = 2; + + /** + * + * + *
+     * Rollout completed successfully.
+     * 
+ * + * ROLLOUT_STATE_SUCCEEDED = 3; + */ + public static final int ROLLOUT_STATE_SUCCEEDED_VALUE = 3; + + /** + * + * + *
+     * Rollout has failed.
+     * 
+ * + * ROLLOUT_STATE_FAILED = 4; + */ + public static final int ROLLOUT_STATE_FAILED_VALUE = 4; + + /** + * + * + *
+     * Rollout has been canceled.
+     * 
+ * + * ROLLOUT_STATE_CANCELLED = 5; + */ + public static final int ROLLOUT_STATE_CANCELLED_VALUE = 5; + + /** + * + * + *
+     * Rollout is waiting for some condition to be met before starting.
+     * 
+ * + * ROLLOUT_STATE_WAITING = 6; + */ + public static final int ROLLOUT_STATE_WAITING_VALUE = 6; + + /** + * + * + *
+     * Rollout is being canceled.
+     * 
+ * + * ROLLOUT_STATE_CANCELLING = 7; + */ + public static final int ROLLOUT_STATE_CANCELLING_VALUE = 7; + + /** + * + * + *
+     * Rollout is being resumed.
+     * 
+ * + * ROLLOUT_STATE_RESUMING = 8; + */ + public static final int ROLLOUT_STATE_RESUMING_VALUE = 8; + + /** + * + * + *
+     * Rollout is being paused.
+     * 
+ * + * ROLLOUT_STATE_PAUSING = 9; + */ + public static final int ROLLOUT_STATE_PAUSING_VALUE = 9; + + 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 RolloutState 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 RolloutState forNumber(int value) { + switch (value) { + case 0: + return ROLLOUT_STATE_UNSPECIFIED; + case 1: + return ROLLOUT_STATE_RUNNING; + case 2: + return ROLLOUT_STATE_PAUSED; + case 3: + return ROLLOUT_STATE_SUCCEEDED; + case 4: + return ROLLOUT_STATE_FAILED; + case 5: + return ROLLOUT_STATE_CANCELLED; + case 6: + return ROLLOUT_STATE_WAITING; + case 7: + return ROLLOUT_STATE_CANCELLING; + case 8: + return ROLLOUT_STATE_RESUMING; + case 9: + return ROLLOUT_STATE_PAUSING; + 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 RolloutState findValueByNumber(int number) { + return RolloutState.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + 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.saasplatform.saasservicemgmt.v1beta1.Rollout.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final RolloutState[] VALUES = values(); + + public static RolloutState 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 RolloutState(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout.RolloutState) + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Identifier. The resource name (full URI of the resource) following the
+   * standard naming scheme:
+   *
+   *   "projects/{project}/locations/{location}/rollout/{rollout_id}"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + @java.lang.Override + 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; + } + } + + /** + * + * + *
+   * Identifier. The resource name (full URI of the resource) following the
+   * standard naming scheme:
+   *
+   *   "projects/{project}/locations/{location}/rollout/{rollout_id}"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + @java.lang.Override + 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 RELEASE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object release_ = ""; + + /** + * + * + *
+   * Optional. Immutable. Name of the Release that gets rolled out to target
+   * Units. Required if no other type of release is specified.
+   * 
+ * + * + * string release = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The release. + */ + @java.lang.Override + public java.lang.String getRelease() { + java.lang.Object ref = release_; + 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(); + release_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Immutable. Name of the Release that gets rolled out to target
+   * Units. Required if no other type of release is specified.
+   * 
+ * + * + * string release = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for release. + */ + @java.lang.Override + public com.google.protobuf.ByteString getReleaseBytes() { + java.lang.Object ref = release_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + release_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int START_TIME_FIELD_NUMBER = 7; + private com.google.protobuf.Timestamp startTime_; + + /** + * + * + *
+   * Optional. Output only. The time when the rollout started executing. Will be
+   * empty if the rollout hasn't started yet.
+   * 
+ * + * + * .google.protobuf.Timestamp start_time = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the startTime field is set. + */ + @java.lang.Override + public boolean hasStartTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. Output only. The time when the rollout started executing. Will be
+   * empty if the rollout hasn't started yet.
+   * 
+ * + * + * .google.protobuf.Timestamp start_time = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The startTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getStartTime() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + + /** + * + * + *
+   * Optional. Output only. The time when the rollout started executing. Will be
+   * empty if the rollout hasn't started yet.
+   * 
+ * + * + * .google.protobuf.Timestamp start_time = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + + public static final int END_TIME_FIELD_NUMBER = 8; + private com.google.protobuf.Timestamp endTime_; + + /** + * + * + *
+   * Optional. Output only. The time when the rollout finished execution
+   * (regardless of  success, failure, or cancellation). Will be empty if the
+   * rollout hasn't finished yet. Once set, the rollout is in terminal state and
+   * all the results are final.
+   * 
+ * + * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + @java.lang.Override + public boolean hasEndTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Optional. Output only. The time when the rollout finished execution
+   * (regardless of  success, failure, or cancellation). Will be empty if the
+   * rollout hasn't finished yet. Once set, the rollout is in terminal state and
+   * all the results are final.
+   * 
+ * + * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEndTime() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + + /** + * + * + *
+   * Optional. Output only. The time when the rollout finished execution
+   * (regardless of  success, failure, or cancellation). Will be empty if the
+   * rollout hasn't finished yet. Once set, the rollout is in terminal state and
+   * all the results are final.
+   * 
+ * + * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + + public static final int STATE_FIELD_NUMBER = 10; + private int state_ = 0; + + /** + * + * + *
+   * Output only. Current state of the rollout.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout.RolloutState state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
+   * Output only. Current state of the rollout.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout.RolloutState state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout.RolloutState getState() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout.RolloutState result = + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout.RolloutState.forNumber( + state_); + return result == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout.RolloutState.UNRECOGNIZED + : result; + } + + public static final int STATE_MESSAGE_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") + private volatile java.lang.Object stateMessage_ = ""; + + /** + * + * + *
+   * Output only. Human readable message indicating details about the last state
+   * transition.
+   * 
+ * + * string state_message = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The stateMessage. + */ + @java.lang.Override + public java.lang.String getStateMessage() { + java.lang.Object ref = stateMessage_; + 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(); + stateMessage_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. Human readable message indicating details about the last state
+   * transition.
+   * 
+ * + * string state_message = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for stateMessage. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStateMessageBytes() { + java.lang.Object ref = stateMessage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + stateMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_TRANSITION_TIME_FIELD_NUMBER = 12; + private com.google.protobuf.Timestamp stateTransitionTime_; + + /** + * + * + *
+   * Optional. Output only. The time when the rollout transitioned into its
+   * current state.
+   * 
+ * + * + * .google.protobuf.Timestamp state_transition_time = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the stateTransitionTime field is set. + */ + @java.lang.Override + public boolean hasStateTransitionTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Optional. Output only. The time when the rollout transitioned into its
+   * current state.
+   * 
+ * + * + * .google.protobuf.Timestamp state_transition_time = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The stateTransitionTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getStateTransitionTime() { + return stateTransitionTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : stateTransitionTime_; + } + + /** + * + * + *
+   * Optional. Output only. The time when the rollout transitioned into its
+   * current state.
+   * 
+ * + * + * .google.protobuf.Timestamp state_transition_time = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getStateTransitionTimeOrBuilder() { + return stateTransitionTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : stateTransitionTime_; + } + + public static final int ROOT_ROLLOUT_FIELD_NUMBER = 16; + + @SuppressWarnings("serial") + private volatile java.lang.Object rootRollout_ = ""; + + /** + * + * + *
+   * Optional. Output only. The root rollout that this rollout is stemming from.
+   * The resource name (full URI of the resource) following the standard naming
+   * scheme:
+   *
+   *   "projects/{project}/locations/{location}/rollouts/{rollout_id}"
+   * 
+ * + * + * string root_rollout = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The rootRollout. + */ + @java.lang.Override + public java.lang.String getRootRollout() { + java.lang.Object ref = rootRollout_; + 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(); + rootRollout_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Output only. The root rollout that this rollout is stemming from.
+   * The resource name (full URI of the resource) following the standard naming
+   * scheme:
+   *
+   *   "projects/{project}/locations/{location}/rollouts/{rollout_id}"
+   * 
+ * + * + * string root_rollout = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for rootRollout. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRootRolloutBytes() { + java.lang.Object ref = rootRollout_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rootRollout_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PARENT_ROLLOUT_FIELD_NUMBER = 17; + + @SuppressWarnings("serial") + private volatile java.lang.Object parentRollout_ = ""; + + /** + * + * + *
+   * Optional. Output only. The direct parent rollout that this rollout is
+   * stemming from. The resource name (full URI of the resource) following the
+   * standard naming scheme:
+   *
+   *   "projects/{project}/locations/{location}/rollouts/{rollout_id}"
+   * 
+ * + * + * string parent_rollout = 17 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The parentRollout. + */ + @java.lang.Override + public java.lang.String getParentRollout() { + java.lang.Object ref = parentRollout_; + 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(); + parentRollout_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Output only. The direct parent rollout that this rollout is
+   * stemming from. The resource name (full URI of the resource) following the
+   * standard naming scheme:
+   *
+   *   "projects/{project}/locations/{location}/rollouts/{rollout_id}"
+   * 
+ * + * + * string parent_rollout = 17 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parentRollout. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentRolloutBytes() { + java.lang.Object ref = parentRollout_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parentRollout_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ROLLOUT_ORCHESTRATION_STRATEGY_FIELD_NUMBER = 19; + + @SuppressWarnings("serial") + private volatile java.lang.Object rolloutOrchestrationStrategy_ = ""; + + /** + * + * + *
+   * Optional. The strategy used for executing this Rollout.
+   * This strategy will override whatever strategy is specified in the
+   * RolloutType. If not specified on creation, the
+   * strategy from RolloutType will be used.
+   *
+   * There are two supported values strategies which are used to control
+   * - "Google.Cloud.Simple.AllAtOnce"
+   * - "Google.Cloud.Simple.OneLocationAtATime"
+   *
+   * A rollout with one of these simple strategies will rollout across
+   * all locations defined in the targeted UnitKind's Saas Locations.
+   * 
+ * + * string rollout_orchestration_strategy = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The rolloutOrchestrationStrategy. + */ + @java.lang.Override + public java.lang.String getRolloutOrchestrationStrategy() { + java.lang.Object ref = rolloutOrchestrationStrategy_; + 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(); + rolloutOrchestrationStrategy_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The strategy used for executing this Rollout.
+   * This strategy will override whatever strategy is specified in the
+   * RolloutType. If not specified on creation, the
+   * strategy from RolloutType will be used.
+   *
+   * There are two supported values strategies which are used to control
+   * - "Google.Cloud.Simple.AllAtOnce"
+   * - "Google.Cloud.Simple.OneLocationAtATime"
+   *
+   * A rollout with one of these simple strategies will rollout across
+   * all locations defined in the targeted UnitKind's Saas Locations.
+   * 
+ * + * string rollout_orchestration_strategy = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for rolloutOrchestrationStrategy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRolloutOrchestrationStrategyBytes() { + java.lang.Object ref = rolloutOrchestrationStrategy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rolloutOrchestrationStrategy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UNIT_FILTER_FIELD_NUMBER = 21; + + @SuppressWarnings("serial") + private volatile java.lang.Object unitFilter_ = ""; + + /** + * + * + *
+   * Optional. CEL(https://github.com/google/cel-spec) formatted filter string
+   * against Unit. The filter will be applied to determine the eligible unit
+   * population. This filter can only reduce, but not expand the scope of the
+   * rollout. If not provided, the unit_filter from the RolloutType will be
+   * used.
+   * 
+ * + * string unit_filter = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The unitFilter. + */ + @java.lang.Override + public java.lang.String getUnitFilter() { + java.lang.Object ref = unitFilter_; + 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(); + unitFilter_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. CEL(https://github.com/google/cel-spec) formatted filter string
+   * against Unit. The filter will be applied to determine the eligible unit
+   * population. This filter can only reduce, but not expand the scope of the
+   * rollout. If not provided, the unit_filter from the RolloutType will be
+   * used.
+   * 
+ * + * string unit_filter = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for unitFilter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUnitFilterBytes() { + java.lang.Object ref = unitFilter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + unitFilter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ROLLOUT_KIND_FIELD_NUMBER = 22; + + @SuppressWarnings("serial") + private volatile java.lang.Object rolloutKind_ = ""; + + /** + * + * + *
+   * Optional. Immutable. Name of the RolloutKind this rollout is stemming from
+   * and adhering to.
+   * 
+ * + * + * string rollout_kind = 22 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The rolloutKind. + */ + @java.lang.Override + public java.lang.String getRolloutKind() { + java.lang.Object ref = rolloutKind_; + 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(); + rolloutKind_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Immutable. Name of the RolloutKind this rollout is stemming from
+   * and adhering to.
+   * 
+ * + * + * string rollout_kind = 22 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for rolloutKind. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRolloutKindBytes() { + java.lang.Object ref = rolloutKind_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rolloutKind_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATS_FIELD_NUMBER = 24; + private com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutStats stats_; + + /** + * + * + *
+   * Optional. Output only. Details about the progress of the rollout.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutStats stats = 24 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the stats field is set. + */ + @java.lang.Override + public boolean hasStats() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+   * Optional. Output only. Details about the progress of the rollout.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutStats stats = 24 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The stats. + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutStats getStats() { + return stats_ == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutStats.getDefaultInstance() + : stats_; + } + + /** + * + * + *
+   * Optional. Output only. Details about the progress of the rollout.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutStats stats = 24 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutStatsOrBuilder + getStatsOrBuilder() { + return stats_ == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutStats.getDefaultInstance() + : stats_; + } + + public static final int CONTROL_FIELD_NUMBER = 25; + private com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl control_; + + /** + * + * + *
+   * Optional. Requested change to the execution of this rollout.
+   * Default RolloutControl.action is ROLLOUT_ACTION_RUN meaning
+   * the rollout will be executed to completion while progressing through
+   * all natural Rollout States (such as RUNNING -> SUCCEEDED or RUNNING ->
+   * FAILED). Requests can only be made when the Rollout is in a non-terminal
+   * state.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl control = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the control field is set. + */ + @java.lang.Override + public boolean hasControl() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+   * Optional. Requested change to the execution of this rollout.
+   * Default RolloutControl.action is ROLLOUT_ACTION_RUN meaning
+   * the rollout will be executed to completion while progressing through
+   * all natural Rollout States (such as RUNNING -> SUCCEEDED or RUNNING ->
+   * FAILED). Requests can only be made when the Rollout is in a non-terminal
+   * state.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl control = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The control. + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl getControl() { + return control_ == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl.getDefaultInstance() + : control_; + } + + /** + * + * + *
+   * Optional. Requested change to the execution of this rollout.
+   * Default RolloutControl.action is ROLLOUT_ACTION_RUN meaning
+   * the rollout will be executed to completion while progressing through
+   * all natural Rollout States (such as RUNNING -> SUCCEEDED or RUNNING ->
+   * FAILED). Requests can only be made when the Rollout is in a non-terminal
+   * state.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl control = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControlOrBuilder + getControlOrBuilder() { + return control_ == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl.getDefaultInstance() + : control_; + } + + public static final int LABELS_FIELD_NUMBER = 10401; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Rollout_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + 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(); + } + + /** + * + * + *
+   * Optional. The labels on the resource, which can be used for categorization.
+   * similar to Kubernetes resource labels.
+   * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** + * + * + *
+   * Optional. The labels on the resource, which can be used for categorization.
+   * similar to Kubernetes resource labels.
+   * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
+   * Optional. The labels on the resource, which can be used for categorization.
+   * similar to Kubernetes resource labels.
+   * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+   * Optional. The labels on the resource, which can be used for categorization.
+   * similar to Kubernetes resource labels.
+   * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int ANNOTATIONS_FIELD_NUMBER = 10402; + + private static final class AnnotationsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Rollout_AnnotationsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField annotations_; + + private com.google.protobuf.MapField + internalGetAnnotations() { + if (annotations_ == null) { + return com.google.protobuf.MapField.emptyMapField(AnnotationsDefaultEntryHolder.defaultEntry); + } + return annotations_; + } + + public int getAnnotationsCount() { + return internalGetAnnotations().getMap().size(); + } + + /** + * + * + *
+   * Optional. Annotations is an unstructured key-value map stored with a
+   * resource that may be set by external tools to store and retrieve arbitrary
+   * metadata. They are not queryable and should be preserved when modifying
+   * objects.
+   *
+   * More info: https://kubernetes.io/docs/user-guide/annotations
+   * 
+ * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetAnnotations().getMap().containsKey(key); + } + + /** Use {@link #getAnnotationsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getAnnotations() { + return getAnnotationsMap(); + } + + /** + * + * + *
+   * Optional. Annotations is an unstructured key-value map stored with a
+   * resource that may be set by external tools to store and retrieve arbitrary
+   * metadata. They are not queryable and should be preserved when modifying
+   * objects.
+   *
+   * More info: https://kubernetes.io/docs/user-guide/annotations
+   * 
+ * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getAnnotationsMap() { + return internalGetAnnotations().getMap(); + } + + /** + * + * + *
+   * Optional. Annotations is an unstructured key-value map stored with a
+   * resource that may be set by external tools to store and retrieve arbitrary
+   * metadata. They are not queryable and should be preserved when modifying
+   * objects.
+   *
+   * More info: https://kubernetes.io/docs/user-guide/annotations
+   * 
+ * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getAnnotationsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+   * Optional. Annotations is an unstructured key-value map stored with a
+   * resource that may be set by external tools to store and retrieve arbitrary
+   * metadata. They are not queryable and should be preserved when modifying
+   * objects.
+   *
+   * More info: https://kubernetes.io/docs/user-guide/annotations
+   * 
+ * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int UID_FIELD_NUMBER = 10201; + + @SuppressWarnings("serial") + private volatile java.lang.Object uid_ = ""; + + /** + * + * + *
+   * Output only. The unique identifier of the resource. UID is unique in the
+   * time and space for this resource within the scope of the service. It is
+   * typically generated by the server on successful creation of a resource
+   * and must not be changed. UID is used to uniquely identify resources
+   * with resource name reuses. This should be a UUID4.
+   * 
+ * + * + * string uid = 10201 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The uid. + */ + @java.lang.Override + public java.lang.String getUid() { + java.lang.Object ref = uid_; + 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(); + uid_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The unique identifier of the resource. UID is unique in the
+   * time and space for this resource within the scope of the service. It is
+   * typically generated by the server on successful creation of a resource
+   * and must not be changed. UID is used to uniquely identify resources
+   * with resource name reuses. This should be a UUID4.
+   * 
+ * + * + * string uid = 10201 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The bytes for uid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ETAG_FIELD_NUMBER = 10202; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + + /** + * + * + *
+   * Output only. An opaque value that uniquely identifies a version or
+   * generation of a resource. It can be used to confirm that the client
+   * and server agree on the ordering of a resource being written.
+   * 
+ * + * string etag = 10202 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The etag. + */ + @java.lang.Override + 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. An opaque value that uniquely identifies a version or
+   * generation of a resource. It can be used to confirm that the client
+   * and server agree on the ordering of a resource being written.
+   * 
+ * + * string etag = 10202 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for etag. + */ + @java.lang.Override + 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 CREATE_TIME_FIELD_NUMBER = 10303; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
+   * Output only. The timestamp when the resource was created.
+   * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+   * Output only. The timestamp when the resource was created.
+   * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
+   * Output only. The timestamp when the resource was created.
+   * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 10304; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
+   * Output only. The timestamp when the resource was last updated. Any
+   * change to the resource made by users must refresh this value.
+   * Changes to a resource made by the service should refresh this value.
+   * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+   * Output only. The timestamp when the resource was last updated. Any
+   * change to the resource made by users must refresh this value.
+   * Changes to a resource made by the service should refresh this value.
+   * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
+   * Output only. The timestamp when the resource was last updated. Any
+   * change to the resource made by users must refresh this value.
+   * Changes to a resource made by the service should refresh this value.
+   * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(release_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, release_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(7, getStartTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(8, getEndTime()); + } + if (state_ + != com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout.RolloutState + .ROLLOUT_STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(10, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stateMessage_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, stateMessage_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(12, getStateTransitionTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rootRollout_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 16, rootRollout_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parentRollout_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 17, parentRollout_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rolloutOrchestrationStrategy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 19, rolloutOrchestrationStrategy_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(unitFilter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 21, unitFilter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rolloutKind_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 22, rolloutKind_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(24, getStats()); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(25, getControl()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10201, uid_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10202, etag_); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeMessage(10303, getCreateTime()); + } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeMessage(10304, getUpdateTime()); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 10401); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetAnnotations(), AnnotationsDefaultEntryHolder.defaultEntry, 10402); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(release_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, release_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getStartTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getEndTime()); + } + if (state_ + != com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout.RolloutState + .ROLLOUT_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, state_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stateMessage_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, stateMessage_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(12, getStateTransitionTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rootRollout_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, rootRollout_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parentRollout_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, parentRollout_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rolloutOrchestrationStrategy_)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize( + 19, rolloutOrchestrationStrategy_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(unitFilter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(21, unitFilter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rolloutKind_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(22, rolloutKind_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(24, getStats()); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(25, getControl()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10201, uid_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10202, etag_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10303, getCreateTime()); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10304, 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(10401, labels__); + } + for (java.util.Map.Entry entry : + internalGetAnnotations().getMap().entrySet()) { + com.google.protobuf.MapEntry annotations__ = + AnnotationsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10402, annotations__); + } + size += getUnknownFields().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.saasplatform.saasservicemgmt.v1beta1.Rollout)) { + return super.equals(obj); + } + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout other = + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout) obj; + + if (!getName().equals(other.getName())) return false; + if (!getRelease().equals(other.getRelease())) return false; + if (hasStartTime() != other.hasStartTime()) return false; + if (hasStartTime()) { + if (!getStartTime().equals(other.getStartTime())) return false; + } + if (hasEndTime() != other.hasEndTime()) return false; + if (hasEndTime()) { + if (!getEndTime().equals(other.getEndTime())) return false; + } + if (state_ != other.state_) return false; + if (!getStateMessage().equals(other.getStateMessage())) return false; + if (hasStateTransitionTime() != other.hasStateTransitionTime()) return false; + if (hasStateTransitionTime()) { + if (!getStateTransitionTime().equals(other.getStateTransitionTime())) return false; + } + if (!getRootRollout().equals(other.getRootRollout())) return false; + if (!getParentRollout().equals(other.getParentRollout())) return false; + if (!getRolloutOrchestrationStrategy().equals(other.getRolloutOrchestrationStrategy())) + return false; + if (!getUnitFilter().equals(other.getUnitFilter())) return false; + if (!getRolloutKind().equals(other.getRolloutKind())) return false; + if (hasStats() != other.hasStats()) return false; + if (hasStats()) { + if (!getStats().equals(other.getStats())) return false; + } + if (hasControl() != other.hasControl()) return false; + if (hasControl()) { + if (!getControl().equals(other.getControl())) return false; + } + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!internalGetAnnotations().equals(other.internalGetAnnotations())) return false; + if (!getUid().equals(other.getUid())) return false; + if (!getEtag().equals(other.getEtag())) 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + RELEASE_FIELD_NUMBER; + hash = (53 * hash) + getRelease().hashCode(); + if (hasStartTime()) { + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + } + if (hasEndTime()) { + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEndTime().hashCode(); + } + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + STATE_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getStateMessage().hashCode(); + if (hasStateTransitionTime()) { + hash = (37 * hash) + STATE_TRANSITION_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStateTransitionTime().hashCode(); + } + hash = (37 * hash) + ROOT_ROLLOUT_FIELD_NUMBER; + hash = (53 * hash) + getRootRollout().hashCode(); + hash = (37 * hash) + PARENT_ROLLOUT_FIELD_NUMBER; + hash = (53 * hash) + getParentRollout().hashCode(); + hash = (37 * hash) + ROLLOUT_ORCHESTRATION_STRATEGY_FIELD_NUMBER; + hash = (53 * hash) + getRolloutOrchestrationStrategy().hashCode(); + hash = (37 * hash) + UNIT_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getUnitFilter().hashCode(); + hash = (37 * hash) + ROLLOUT_KIND_FIELD_NUMBER; + hash = (53 * hash) + getRolloutKind().hashCode(); + if (hasStats()) { + hash = (37 * hash) + STATS_FIELD_NUMBER; + hash = (53 * hash) + getStats().hashCode(); + } + if (hasControl()) { + hash = (37 * hash) + CONTROL_FIELD_NUMBER; + hash = (53 * hash) + getControl().hashCode(); + } + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + if (!internalGetAnnotations().getMap().isEmpty()) { + hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; + hash = (53 * hash) + internalGetAnnotations().hashCode(); + } + hash = (37 * hash) + UID_FIELD_NUMBER; + hash = (53 * hash) + getUid().hashCode(); + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout 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.saasplatform.saasservicemgmt.v1beta1.Rollout parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout 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.saasplatform.saasservicemgmt.v1beta1.Rollout parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout 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.saasplatform.saasservicemgmt.v1beta1.Rollout parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout 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.saasplatform.saasservicemgmt.v1beta1.Rollout parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout 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.saasplatform.saasservicemgmt.v1beta1.Rollout 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; + } + + /** + * + * + *
+   * Represents a single rollout execution and its results
+   * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout) + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Rollout_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 10401: + return internalGetLabels(); + case 10402: + return internalGetAnnotations(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 10401: + return internalGetMutableLabels(); + case 10402: + return internalGetMutableAnnotations(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Rollout_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout.Builder.class); + } + + // Construct using com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getStartTimeFieldBuilder(); + getEndTimeFieldBuilder(); + getStateTransitionTimeFieldBuilder(); + getStatsFieldBuilder(); + getControlFieldBuilder(); + getCreateTimeFieldBuilder(); + getUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + release_ = ""; + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + state_ = 0; + stateMessage_ = ""; + stateTransitionTime_ = null; + if (stateTransitionTimeBuilder_ != null) { + stateTransitionTimeBuilder_.dispose(); + stateTransitionTimeBuilder_ = null; + } + rootRollout_ = ""; + parentRollout_ = ""; + rolloutOrchestrationStrategy_ = ""; + unitFilter_ = ""; + rolloutKind_ = ""; + stats_ = null; + if (statsBuilder_ != null) { + statsBuilder_.dispose(); + statsBuilder_ = null; + } + control_ = null; + if (controlBuilder_ != null) { + controlBuilder_.dispose(); + controlBuilder_ = null; + } + internalGetMutableLabels().clear(); + internalGetMutableAnnotations().clear(); + uid_ = ""; + etag_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Rollout_descriptor; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout + getDefaultInstanceForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout build() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout buildPartial() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout result = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.release_ = release_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.stateMessage_ = stateMessage_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.stateTransitionTime_ = + stateTransitionTimeBuilder_ == null + ? stateTransitionTime_ + : stateTransitionTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.rootRollout_ = rootRollout_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.parentRollout_ = parentRollout_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.rolloutOrchestrationStrategy_ = rolloutOrchestrationStrategy_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.unitFilter_ = unitFilter_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.rolloutKind_ = rolloutKind_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.stats_ = statsBuilder_ == null ? stats_ : statsBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.control_ = controlBuilder_ == null ? control_ : controlBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.annotations_ = internalGetAnnotations(); + result.annotations_.makeImmutable(); + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.uid_ = uid_; + } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.etag_ = etag_; + } + if (((from_bitField0_ & 0x00040000) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00080000) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000040; + } + result.bitField0_ |= to_bitField0_; + } + + @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.saasplatform.saasservicemgmt.v1beta1.Rollout) { + return mergeFrom((com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout other) { + if (other + == com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRelease().isEmpty()) { + release_ = other.release_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (!other.getStateMessage().isEmpty()) { + stateMessage_ = other.stateMessage_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (other.hasStateTransitionTime()) { + mergeStateTransitionTime(other.getStateTransitionTime()); + } + if (!other.getRootRollout().isEmpty()) { + rootRollout_ = other.rootRollout_; + bitField0_ |= 0x00000080; + onChanged(); + } + if (!other.getParentRollout().isEmpty()) { + parentRollout_ = other.parentRollout_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (!other.getRolloutOrchestrationStrategy().isEmpty()) { + rolloutOrchestrationStrategy_ = other.rolloutOrchestrationStrategy_; + bitField0_ |= 0x00000200; + onChanged(); + } + if (!other.getUnitFilter().isEmpty()) { + unitFilter_ = other.unitFilter_; + bitField0_ |= 0x00000400; + onChanged(); + } + if (!other.getRolloutKind().isEmpty()) { + rolloutKind_ = other.rolloutKind_; + bitField0_ |= 0x00000800; + onChanged(); + } + if (other.hasStats()) { + mergeStats(other.getStats()); + } + if (other.hasControl()) { + mergeControl(other.getControl()); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00004000; + internalGetMutableAnnotations().mergeFrom(other.internalGetAnnotations()); + bitField0_ |= 0x00008000; + if (!other.getUid().isEmpty()) { + uid_ = other.uid_; + bitField0_ |= 0x00010000; + onChanged(); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + bitField0_ |= 0x00020000; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 26: + { + release_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 26 + case 58: + { + input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 58 + case 66: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 66 + case 80: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 80 + case 90: + { + stateMessage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 90 + case 98: + { + input.readMessage( + getStateTransitionTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 98 + case 130: + { + rootRollout_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 130 + case 138: + { + parentRollout_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 138 + case 154: + { + rolloutOrchestrationStrategy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 154 + case 170: + { + unitFilter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000400; + break; + } // case 170 + case 178: + { + rolloutKind_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000800; + break; + } // case 178 + case 194: + { + input.readMessage(getStatsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00001000; + break; + } // case 194 + case 202: + { + input.readMessage(getControlFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00002000; + break; + } // case 202 + case 81610: + { + uid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00010000; + break; + } // case 81610 + case 81618: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00020000; + break; + } // case 81618 + case 82426: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00040000; + break; + } // case 82426 + case 82434: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00080000; + break; + } // case 82434 + case 83210: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00004000; + break; + } // case 83210 + case 83218: + { + com.google.protobuf.MapEntry annotations__ = + input.readMessage( + AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableAnnotations() + .getMutableMap() + .put(annotations__.getKey(), annotations__.getValue()); + bitField0_ |= 0x00008000; + break; + } // case 83218 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Identifier. The resource name (full URI of the resource) following the
+     * standard naming scheme:
+     *
+     *   "projects/{project}/locations/{location}/rollout/{rollout_id}"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + } + } + + /** + * + * + *
+     * Identifier. The resource name (full URI of the resource) following the
+     * standard naming scheme:
+     *
+     *   "projects/{project}/locations/{location}/rollout/{rollout_id}"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + } + } + + /** + * + * + *
+     * Identifier. The resource name (full URI of the resource) following the
+     * standard naming scheme:
+     *
+     *   "projects/{project}/locations/{location}/rollout/{rollout_id}"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Identifier. The resource name (full URI of the resource) following the
+     * standard naming scheme:
+     *
+     *   "projects/{project}/locations/{location}/rollout/{rollout_id}"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Identifier. The resource name (full URI of the resource) following the
+     * standard naming scheme:
+     *
+     *   "projects/{project}/locations/{location}/rollout/{rollout_id}"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object release_ = ""; + + /** + * + * + *
+     * Optional. Immutable. Name of the Release that gets rolled out to target
+     * Units. Required if no other type of release is specified.
+     * 
+ * + * + * string release = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The release. + */ + public java.lang.String getRelease() { + java.lang.Object ref = release_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + release_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Immutable. Name of the Release that gets rolled out to target
+     * Units. Required if no other type of release is specified.
+     * 
+ * + * + * string release = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for release. + */ + public com.google.protobuf.ByteString getReleaseBytes() { + java.lang.Object ref = release_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + release_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Immutable. Name of the Release that gets rolled out to target
+     * Units. Required if no other type of release is specified.
+     * 
+ * + * + * string release = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @param value The release to set. + * @return This builder for chaining. + */ + public Builder setRelease(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + release_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Immutable. Name of the Release that gets rolled out to target
+     * Units. Required if no other type of release is specified.
+     * 
+ * + * + * string release = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRelease() { + release_ = getDefaultInstance().getRelease(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Immutable. Name of the Release that gets rolled out to target
+     * Units. Required if no other type of release is specified.
+     * 
+ * + * + * string release = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for release to set. + * @return This builder for chaining. + */ + public Builder setReleaseBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + release_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp startTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; + + /** + * + * + *
+     * Optional. Output only. The time when the rollout started executing. Will be
+     * empty if the rollout hasn't started yet.
+     * 
+ * + * + * .google.protobuf.Timestamp start_time = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the startTime field is set. + */ + public boolean hasStartTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Optional. Output only. The time when the rollout started executing. Will be
+     * empty if the rollout hasn't started yet.
+     * 
+ * + * + * .google.protobuf.Timestamp start_time = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The startTime. + */ + public com.google.protobuf.Timestamp getStartTime() { + if (startTimeBuilder_ == null) { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } else { + return startTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Output only. The time when the rollout started executing. Will be
+     * empty if the rollout hasn't started yet.
+     * 
+ * + * + * .google.protobuf.Timestamp start_time = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + } else { + startTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Output only. The time when the rollout started executing. Will be
+     * empty if the rollout hasn't started yet.
+     * 
+ * + * + * .google.protobuf.Timestamp start_time = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (startTimeBuilder_ == null) { + startTime_ = builderForValue.build(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Output only. The time when the rollout started executing. Will be
+     * empty if the rollout hasn't started yet.
+     * 
+ * + * + * .google.protobuf.Timestamp start_time = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); + } else { + startTime_ = value; + } + } else { + startTimeBuilder_.mergeFrom(value); + } + if (startTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Output only. The time when the rollout started executing. Will be
+     * empty if the rollout hasn't started yet.
+     * 
+ * + * + * .google.protobuf.Timestamp start_time = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearStartTime() { + bitField0_ = (bitField0_ & ~0x00000004); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Output only. The time when the rollout started executing. Will be
+     * empty if the rollout hasn't started yet.
+     * 
+ * + * + * .google.protobuf.Timestamp start_time = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getStartTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Output only. The time when the rollout started executing. Will be
+     * empty if the rollout hasn't started yet.
+     * 
+ * + * + * .google.protobuf.Timestamp start_time = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + if (startTimeBuilder_ != null) { + return startTimeBuilder_.getMessageOrBuilder(); + } else { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + } + + /** + * + * + *
+     * Optional. Output only. The time when the rollout started executing. Will be
+     * empty if the rollout hasn't started yet.
+     * 
+ * + * + * .google.protobuf.Timestamp start_time = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getStartTimeFieldBuilder() { + if (startTimeBuilder_ == null) { + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); + startTime_ = null; + } + return startTimeBuilder_; + } + + private com.google.protobuf.Timestamp endTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; + + /** + * + * + *
+     * Optional. Output only. The time when the rollout finished execution
+     * (regardless of  success, failure, or cancellation). Will be empty if the
+     * rollout hasn't finished yet. Once set, the rollout is in terminal state and
+     * all the results are final.
+     * 
+ * + * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + public boolean hasEndTime() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Optional. Output only. The time when the rollout finished execution
+     * (regardless of  success, failure, or cancellation). Will be empty if the
+     * rollout hasn't finished yet. Once set, the rollout is in terminal state and
+     * all the results are final.
+     * 
+ * + * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + public com.google.protobuf.Timestamp getEndTime() { + if (endTimeBuilder_ == null) { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } else { + return endTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Output only. The time when the rollout finished execution
+     * (regardless of  success, failure, or cancellation). Will be empty if the
+     * rollout hasn't finished yet. Once set, the rollout is in terminal state and
+     * all the results are final.
+     * 
+ * + * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endTime_ = value; + } else { + endTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Output only. The time when the rollout finished execution
+     * (regardless of  success, failure, or cancellation). Will be empty if the
+     * rollout hasn't finished yet. Once set, the rollout is in terminal state and
+     * all the results are final.
+     * 
+ * + * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Output only. The time when the rollout finished execution
+     * (regardless of  success, failure, or cancellation). Will be empty if the
+     * rollout hasn't finished yet. Once set, the rollout is in terminal state and
+     * all the results are final.
+     * 
+ * + * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEndTimeBuilder().mergeFrom(value); + } else { + endTime_ = value; + } + } else { + endTimeBuilder_.mergeFrom(value); + } + if (endTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Output only. The time when the rollout finished execution
+     * (regardless of  success, failure, or cancellation). Will be empty if the
+     * rollout hasn't finished yet. Once set, the rollout is in terminal state and
+     * all the results are final.
+     * 
+ * + * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearEndTime() { + bitField0_ = (bitField0_ & ~0x00000008); + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Output only. The time when the rollout finished execution
+     * (regardless of  success, failure, or cancellation). Will be empty if the
+     * rollout hasn't finished yet. Once set, the rollout is in terminal state and
+     * all the results are final.
+     * 
+ * + * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getEndTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Output only. The time when the rollout finished execution
+     * (regardless of  success, failure, or cancellation). Will be empty if the
+     * rollout hasn't finished yet. Once set, the rollout is in terminal state and
+     * all the results are final.
+     * 
+ * + * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + } + + /** + * + * + *
+     * Optional. Output only. The time when the rollout finished execution
+     * (regardless of  success, failure, or cancellation). Will be empty if the
+     * rollout hasn't finished yet. Once set, the rollout is in terminal state and
+     * all the results are final.
+     * 
+ * + * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getEndTimeFieldBuilder() { + if (endTimeBuilder_ == null) { + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); + endTime_ = null; + } + return endTimeBuilder_; + } + + private int state_ = 0; + + /** + * + * + *
+     * Output only. Current state of the rollout.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout.RolloutState state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
+     * Output only. Current state of the rollout.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout.RolloutState state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Current state of the rollout.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout.RolloutState state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout.RolloutState getState() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout.RolloutState result = + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout.RolloutState.forNumber( + state_); + return result == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout.RolloutState.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Output only. Current state of the rollout.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout.RolloutState state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout.RolloutState value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Current state of the rollout.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout.RolloutState state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000010); + state_ = 0; + onChanged(); + return this; + } + + private java.lang.Object stateMessage_ = ""; + + /** + * + * + *
+     * Output only. Human readable message indicating details about the last state
+     * transition.
+     * 
+ * + * string state_message = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The stateMessage. + */ + public java.lang.String getStateMessage() { + java.lang.Object ref = stateMessage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + stateMessage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. Human readable message indicating details about the last state
+     * transition.
+     * 
+ * + * string state_message = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for stateMessage. + */ + public com.google.protobuf.ByteString getStateMessageBytes() { + java.lang.Object ref = stateMessage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + stateMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. Human readable message indicating details about the last state
+     * transition.
+     * 
+ * + * string state_message = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The stateMessage to set. + * @return This builder for chaining. + */ + public Builder setStateMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + stateMessage_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Human readable message indicating details about the last state
+     * transition.
+     * 
+ * + * string state_message = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearStateMessage() { + stateMessage_ = getDefaultInstance().getStateMessage(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Human readable message indicating details about the last state
+     * transition.
+     * 
+ * + * string state_message = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for stateMessage to set. + * @return This builder for chaining. + */ + public Builder setStateMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + stateMessage_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp stateTransitionTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + stateTransitionTimeBuilder_; + + /** + * + * + *
+     * Optional. Output only. The time when the rollout transitioned into its
+     * current state.
+     * 
+ * + * + * .google.protobuf.Timestamp state_transition_time = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the stateTransitionTime field is set. + */ + public boolean hasStateTransitionTime() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+     * Optional. Output only. The time when the rollout transitioned into its
+     * current state.
+     * 
+ * + * + * .google.protobuf.Timestamp state_transition_time = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The stateTransitionTime. + */ + public com.google.protobuf.Timestamp getStateTransitionTime() { + if (stateTransitionTimeBuilder_ == null) { + return stateTransitionTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : stateTransitionTime_; + } else { + return stateTransitionTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Output only. The time when the rollout transitioned into its
+     * current state.
+     * 
+ * + * + * .google.protobuf.Timestamp state_transition_time = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setStateTransitionTime(com.google.protobuf.Timestamp value) { + if (stateTransitionTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + stateTransitionTime_ = value; + } else { + stateTransitionTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Output only. The time when the rollout transitioned into its
+     * current state.
+     * 
+ * + * + * .google.protobuf.Timestamp state_transition_time = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setStateTransitionTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (stateTransitionTimeBuilder_ == null) { + stateTransitionTime_ = builderForValue.build(); + } else { + stateTransitionTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Output only. The time when the rollout transitioned into its
+     * current state.
+     * 
+ * + * + * .google.protobuf.Timestamp state_transition_time = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeStateTransitionTime(com.google.protobuf.Timestamp value) { + if (stateTransitionTimeBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && stateTransitionTime_ != null + && stateTransitionTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStateTransitionTimeBuilder().mergeFrom(value); + } else { + stateTransitionTime_ = value; + } + } else { + stateTransitionTimeBuilder_.mergeFrom(value); + } + if (stateTransitionTime_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Output only. The time when the rollout transitioned into its
+     * current state.
+     * 
+ * + * + * .google.protobuf.Timestamp state_transition_time = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearStateTransitionTime() { + bitField0_ = (bitField0_ & ~0x00000040); + stateTransitionTime_ = null; + if (stateTransitionTimeBuilder_ != null) { + stateTransitionTimeBuilder_.dispose(); + stateTransitionTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Output only. The time when the rollout transitioned into its
+     * current state.
+     * 
+ * + * + * .google.protobuf.Timestamp state_transition_time = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getStateTransitionTimeBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return getStateTransitionTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Output only. The time when the rollout transitioned into its
+     * current state.
+     * 
+ * + * + * .google.protobuf.Timestamp state_transition_time = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getStateTransitionTimeOrBuilder() { + if (stateTransitionTimeBuilder_ != null) { + return stateTransitionTimeBuilder_.getMessageOrBuilder(); + } else { + return stateTransitionTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : stateTransitionTime_; + } + } + + /** + * + * + *
+     * Optional. Output only. The time when the rollout transitioned into its
+     * current state.
+     * 
+ * + * + * .google.protobuf.Timestamp state_transition_time = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getStateTransitionTimeFieldBuilder() { + if (stateTransitionTimeBuilder_ == null) { + stateTransitionTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStateTransitionTime(), getParentForChildren(), isClean()); + stateTransitionTime_ = null; + } + return stateTransitionTimeBuilder_; + } + + private java.lang.Object rootRollout_ = ""; + + /** + * + * + *
+     * Optional. Output only. The root rollout that this rollout is stemming from.
+     * The resource name (full URI of the resource) following the standard naming
+     * scheme:
+     *
+     *   "projects/{project}/locations/{location}/rollouts/{rollout_id}"
+     * 
+ * + * + * string root_rollout = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The rootRollout. + */ + public java.lang.String getRootRollout() { + java.lang.Object ref = rootRollout_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rootRollout_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Output only. The root rollout that this rollout is stemming from.
+     * The resource name (full URI of the resource) following the standard naming
+     * scheme:
+     *
+     *   "projects/{project}/locations/{location}/rollouts/{rollout_id}"
+     * 
+ * + * + * string root_rollout = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for rootRollout. + */ + public com.google.protobuf.ByteString getRootRolloutBytes() { + java.lang.Object ref = rootRollout_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rootRollout_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Output only. The root rollout that this rollout is stemming from.
+     * The resource name (full URI of the resource) following the standard naming
+     * scheme:
+     *
+     *   "projects/{project}/locations/{location}/rollouts/{rollout_id}"
+     * 
+ * + * + * string root_rollout = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The rootRollout to set. + * @return This builder for chaining. + */ + public Builder setRootRollout(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + rootRollout_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Output only. The root rollout that this rollout is stemming from.
+     * The resource name (full URI of the resource) following the standard naming
+     * scheme:
+     *
+     *   "projects/{project}/locations/{location}/rollouts/{rollout_id}"
+     * 
+ * + * + * string root_rollout = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRootRollout() { + rootRollout_ = getDefaultInstance().getRootRollout(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Output only. The root rollout that this rollout is stemming from.
+     * The resource name (full URI of the resource) following the standard naming
+     * scheme:
+     *
+     *   "projects/{project}/locations/{location}/rollouts/{rollout_id}"
+     * 
+ * + * + * string root_rollout = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for rootRollout to set. + * @return This builder for chaining. + */ + public Builder setRootRolloutBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + rootRollout_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + private java.lang.Object parentRollout_ = ""; + + /** + * + * + *
+     * Optional. Output only. The direct parent rollout that this rollout is
+     * stemming from. The resource name (full URI of the resource) following the
+     * standard naming scheme:
+     *
+     *   "projects/{project}/locations/{location}/rollouts/{rollout_id}"
+     * 
+ * + * + * string parent_rollout = 17 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The parentRollout. + */ + public java.lang.String getParentRollout() { + java.lang.Object ref = parentRollout_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parentRollout_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Output only. The direct parent rollout that this rollout is
+     * stemming from. The resource name (full URI of the resource) following the
+     * standard naming scheme:
+     *
+     *   "projects/{project}/locations/{location}/rollouts/{rollout_id}"
+     * 
+ * + * + * string parent_rollout = 17 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parentRollout. + */ + public com.google.protobuf.ByteString getParentRolloutBytes() { + java.lang.Object ref = parentRollout_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parentRollout_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Output only. The direct parent rollout that this rollout is
+     * stemming from. The resource name (full URI of the resource) following the
+     * standard naming scheme:
+     *
+     *   "projects/{project}/locations/{location}/rollouts/{rollout_id}"
+     * 
+ * + * + * string parent_rollout = 17 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The parentRollout to set. + * @return This builder for chaining. + */ + public Builder setParentRollout(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parentRollout_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Output only. The direct parent rollout that this rollout is
+     * stemming from. The resource name (full URI of the resource) following the
+     * standard naming scheme:
+     *
+     *   "projects/{project}/locations/{location}/rollouts/{rollout_id}"
+     * 
+ * + * + * string parent_rollout = 17 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParentRollout() { + parentRollout_ = getDefaultInstance().getParentRollout(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Output only. The direct parent rollout that this rollout is
+     * stemming from. The resource name (full URI of the resource) following the
+     * standard naming scheme:
+     *
+     *   "projects/{project}/locations/{location}/rollouts/{rollout_id}"
+     * 
+ * + * + * string parent_rollout = 17 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parentRollout to set. + * @return This builder for chaining. + */ + public Builder setParentRolloutBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parentRollout_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + private java.lang.Object rolloutOrchestrationStrategy_ = ""; + + /** + * + * + *
+     * Optional. The strategy used for executing this Rollout.
+     * This strategy will override whatever strategy is specified in the
+     * RolloutType. If not specified on creation, the
+     * strategy from RolloutType will be used.
+     *
+     * There are two supported values strategies which are used to control
+     * - "Google.Cloud.Simple.AllAtOnce"
+     * - "Google.Cloud.Simple.OneLocationAtATime"
+     *
+     * A rollout with one of these simple strategies will rollout across
+     * all locations defined in the targeted UnitKind's Saas Locations.
+     * 
+ * + * string rollout_orchestration_strategy = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The rolloutOrchestrationStrategy. + */ + public java.lang.String getRolloutOrchestrationStrategy() { + java.lang.Object ref = rolloutOrchestrationStrategy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rolloutOrchestrationStrategy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The strategy used for executing this Rollout.
+     * This strategy will override whatever strategy is specified in the
+     * RolloutType. If not specified on creation, the
+     * strategy from RolloutType will be used.
+     *
+     * There are two supported values strategies which are used to control
+     * - "Google.Cloud.Simple.AllAtOnce"
+     * - "Google.Cloud.Simple.OneLocationAtATime"
+     *
+     * A rollout with one of these simple strategies will rollout across
+     * all locations defined in the targeted UnitKind's Saas Locations.
+     * 
+ * + * string rollout_orchestration_strategy = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for rolloutOrchestrationStrategy. + */ + public com.google.protobuf.ByteString getRolloutOrchestrationStrategyBytes() { + java.lang.Object ref = rolloutOrchestrationStrategy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rolloutOrchestrationStrategy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The strategy used for executing this Rollout.
+     * This strategy will override whatever strategy is specified in the
+     * RolloutType. If not specified on creation, the
+     * strategy from RolloutType will be used.
+     *
+     * There are two supported values strategies which are used to control
+     * - "Google.Cloud.Simple.AllAtOnce"
+     * - "Google.Cloud.Simple.OneLocationAtATime"
+     *
+     * A rollout with one of these simple strategies will rollout across
+     * all locations defined in the targeted UnitKind's Saas Locations.
+     * 
+ * + * string rollout_orchestration_strategy = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The rolloutOrchestrationStrategy to set. + * @return This builder for chaining. + */ + public Builder setRolloutOrchestrationStrategy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + rolloutOrchestrationStrategy_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The strategy used for executing this Rollout.
+     * This strategy will override whatever strategy is specified in the
+     * RolloutType. If not specified on creation, the
+     * strategy from RolloutType will be used.
+     *
+     * There are two supported values strategies which are used to control
+     * - "Google.Cloud.Simple.AllAtOnce"
+     * - "Google.Cloud.Simple.OneLocationAtATime"
+     *
+     * A rollout with one of these simple strategies will rollout across
+     * all locations defined in the targeted UnitKind's Saas Locations.
+     * 
+ * + * string rollout_orchestration_strategy = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearRolloutOrchestrationStrategy() { + rolloutOrchestrationStrategy_ = getDefaultInstance().getRolloutOrchestrationStrategy(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The strategy used for executing this Rollout.
+     * This strategy will override whatever strategy is specified in the
+     * RolloutType. If not specified on creation, the
+     * strategy from RolloutType will be used.
+     *
+     * There are two supported values strategies which are used to control
+     * - "Google.Cloud.Simple.AllAtOnce"
+     * - "Google.Cloud.Simple.OneLocationAtATime"
+     *
+     * A rollout with one of these simple strategies will rollout across
+     * all locations defined in the targeted UnitKind's Saas Locations.
+     * 
+ * + * string rollout_orchestration_strategy = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes for rolloutOrchestrationStrategy to set. + * @return This builder for chaining. + */ + public Builder setRolloutOrchestrationStrategyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + rolloutOrchestrationStrategy_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + private java.lang.Object unitFilter_ = ""; + + /** + * + * + *
+     * Optional. CEL(https://github.com/google/cel-spec) formatted filter string
+     * against Unit. The filter will be applied to determine the eligible unit
+     * population. This filter can only reduce, but not expand the scope of the
+     * rollout. If not provided, the unit_filter from the RolloutType will be
+     * used.
+     * 
+ * + * string unit_filter = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The unitFilter. + */ + public java.lang.String getUnitFilter() { + java.lang.Object ref = unitFilter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + unitFilter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. CEL(https://github.com/google/cel-spec) formatted filter string
+     * against Unit. The filter will be applied to determine the eligible unit
+     * population. This filter can only reduce, but not expand the scope of the
+     * rollout. If not provided, the unit_filter from the RolloutType will be
+     * used.
+     * 
+ * + * string unit_filter = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for unitFilter. + */ + public com.google.protobuf.ByteString getUnitFilterBytes() { + java.lang.Object ref = unitFilter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + unitFilter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. CEL(https://github.com/google/cel-spec) formatted filter string
+     * against Unit. The filter will be applied to determine the eligible unit
+     * population. This filter can only reduce, but not expand the scope of the
+     * rollout. If not provided, the unit_filter from the RolloutType will be
+     * used.
+     * 
+ * + * string unit_filter = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The unitFilter to set. + * @return This builder for chaining. + */ + public Builder setUnitFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + unitFilter_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. CEL(https://github.com/google/cel-spec) formatted filter string
+     * against Unit. The filter will be applied to determine the eligible unit
+     * population. This filter can only reduce, but not expand the scope of the
+     * rollout. If not provided, the unit_filter from the RolloutType will be
+     * used.
+     * 
+ * + * string unit_filter = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearUnitFilter() { + unitFilter_ = getDefaultInstance().getUnitFilter(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. CEL(https://github.com/google/cel-spec) formatted filter string
+     * against Unit. The filter will be applied to determine the eligible unit
+     * population. This filter can only reduce, but not expand the scope of the
+     * rollout. If not provided, the unit_filter from the RolloutType will be
+     * used.
+     * 
+ * + * string unit_filter = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for unitFilter to set. + * @return This builder for chaining. + */ + public Builder setUnitFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + unitFilter_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + private java.lang.Object rolloutKind_ = ""; + + /** + * + * + *
+     * Optional. Immutable. Name of the RolloutKind this rollout is stemming from
+     * and adhering to.
+     * 
+ * + * + * string rollout_kind = 22 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The rolloutKind. + */ + public java.lang.String getRolloutKind() { + java.lang.Object ref = rolloutKind_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rolloutKind_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Immutable. Name of the RolloutKind this rollout is stemming from
+     * and adhering to.
+     * 
+ * + * + * string rollout_kind = 22 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for rolloutKind. + */ + public com.google.protobuf.ByteString getRolloutKindBytes() { + java.lang.Object ref = rolloutKind_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rolloutKind_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Immutable. Name of the RolloutKind this rollout is stemming from
+     * and adhering to.
+     * 
+ * + * + * string rollout_kind = 22 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @param value The rolloutKind to set. + * @return This builder for chaining. + */ + public Builder setRolloutKind(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + rolloutKind_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Immutable. Name of the RolloutKind this rollout is stemming from
+     * and adhering to.
+     * 
+ * + * + * string rollout_kind = 22 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRolloutKind() { + rolloutKind_ = getDefaultInstance().getRolloutKind(); + bitField0_ = (bitField0_ & ~0x00000800); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Immutable. Name of the RolloutKind this rollout is stemming from
+     * and adhering to.
+     * 
+ * + * + * string rollout_kind = 22 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for rolloutKind to set. + * @return This builder for chaining. + */ + public Builder setRolloutKindBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + rolloutKind_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + private com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutStats stats_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutStats, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutStats.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutStatsOrBuilder> + statsBuilder_; + + /** + * + * + *
+     * Optional. Output only. Details about the progress of the rollout.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutStats stats = 24 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the stats field is set. + */ + public boolean hasStats() { + return ((bitField0_ & 0x00001000) != 0); + } + + /** + * + * + *
+     * Optional. Output only. Details about the progress of the rollout.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutStats stats = 24 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The stats. + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutStats getStats() { + if (statsBuilder_ == null) { + return stats_ == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutStats + .getDefaultInstance() + : stats_; + } else { + return statsBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Output only. Details about the progress of the rollout.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutStats stats = 24 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setStats( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutStats value) { + if (statsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + stats_ = value; + } else { + statsBuilder_.setMessage(value); + } + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Output only. Details about the progress of the rollout.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutStats stats = 24 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setStats( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutStats.Builder + builderForValue) { + if (statsBuilder_ == null) { + stats_ = builderForValue.build(); + } else { + statsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Output only. Details about the progress of the rollout.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutStats stats = 24 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeStats( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutStats value) { + if (statsBuilder_ == null) { + if (((bitField0_ & 0x00001000) != 0) + && stats_ != null + && stats_ + != com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutStats + .getDefaultInstance()) { + getStatsBuilder().mergeFrom(value); + } else { + stats_ = value; + } + } else { + statsBuilder_.mergeFrom(value); + } + if (stats_ != null) { + bitField0_ |= 0x00001000; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Output only. Details about the progress of the rollout.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutStats stats = 24 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearStats() { + bitField0_ = (bitField0_ & ~0x00001000); + stats_ = null; + if (statsBuilder_ != null) { + statsBuilder_.dispose(); + statsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Output only. Details about the progress of the rollout.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutStats stats = 24 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutStats.Builder + getStatsBuilder() { + bitField0_ |= 0x00001000; + onChanged(); + return getStatsFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Output only. Details about the progress of the rollout.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutStats stats = 24 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutStatsOrBuilder + getStatsOrBuilder() { + if (statsBuilder_ != null) { + return statsBuilder_.getMessageOrBuilder(); + } else { + return stats_ == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutStats + .getDefaultInstance() + : stats_; + } + } + + /** + * + * + *
+     * Optional. Output only. Details about the progress of the rollout.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutStats stats = 24 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutStats, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutStats.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutStatsOrBuilder> + getStatsFieldBuilder() { + if (statsBuilder_ == null) { + statsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutStats, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutStats.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutStatsOrBuilder>( + getStats(), getParentForChildren(), isClean()); + stats_ = null; + } + return statsBuilder_; + } + + private com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl control_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControlOrBuilder> + controlBuilder_; + + /** + * + * + *
+     * Optional. Requested change to the execution of this rollout.
+     * Default RolloutControl.action is ROLLOUT_ACTION_RUN meaning
+     * the rollout will be executed to completion while progressing through
+     * all natural Rollout States (such as RUNNING -> SUCCEEDED or RUNNING ->
+     * FAILED). Requests can only be made when the Rollout is in a non-terminal
+     * state.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl control = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the control field is set. + */ + public boolean hasControl() { + return ((bitField0_ & 0x00002000) != 0); + } + + /** + * + * + *
+     * Optional. Requested change to the execution of this rollout.
+     * Default RolloutControl.action is ROLLOUT_ACTION_RUN meaning
+     * the rollout will be executed to completion while progressing through
+     * all natural Rollout States (such as RUNNING -> SUCCEEDED or RUNNING ->
+     * FAILED). Requests can only be made when the Rollout is in a non-terminal
+     * state.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl control = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The control. + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl getControl() { + if (controlBuilder_ == null) { + return control_ == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl + .getDefaultInstance() + : control_; + } else { + return controlBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Requested change to the execution of this rollout.
+     * Default RolloutControl.action is ROLLOUT_ACTION_RUN meaning
+     * the rollout will be executed to completion while progressing through
+     * all natural Rollout States (such as RUNNING -> SUCCEEDED or RUNNING ->
+     * FAILED). Requests can only be made when the Rollout is in a non-terminal
+     * state.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl control = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setControl( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl value) { + if (controlBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + control_ = value; + } else { + controlBuilder_.setMessage(value); + } + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Requested change to the execution of this rollout.
+     * Default RolloutControl.action is ROLLOUT_ACTION_RUN meaning
+     * the rollout will be executed to completion while progressing through
+     * all natural Rollout States (such as RUNNING -> SUCCEEDED or RUNNING ->
+     * FAILED). Requests can only be made when the Rollout is in a non-terminal
+     * state.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl control = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setControl( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl.Builder + builderForValue) { + if (controlBuilder_ == null) { + control_ = builderForValue.build(); + } else { + controlBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Requested change to the execution of this rollout.
+     * Default RolloutControl.action is ROLLOUT_ACTION_RUN meaning
+     * the rollout will be executed to completion while progressing through
+     * all natural Rollout States (such as RUNNING -> SUCCEEDED or RUNNING ->
+     * FAILED). Requests can only be made when the Rollout is in a non-terminal
+     * state.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl control = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeControl( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl value) { + if (controlBuilder_ == null) { + if (((bitField0_ & 0x00002000) != 0) + && control_ != null + && control_ + != com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl + .getDefaultInstance()) { + getControlBuilder().mergeFrom(value); + } else { + control_ = value; + } + } else { + controlBuilder_.mergeFrom(value); + } + if (control_ != null) { + bitField0_ |= 0x00002000; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Requested change to the execution of this rollout.
+     * Default RolloutControl.action is ROLLOUT_ACTION_RUN meaning
+     * the rollout will be executed to completion while progressing through
+     * all natural Rollout States (such as RUNNING -> SUCCEEDED or RUNNING ->
+     * FAILED). Requests can only be made when the Rollout is in a non-terminal
+     * state.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl control = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearControl() { + bitField0_ = (bitField0_ & ~0x00002000); + control_ = null; + if (controlBuilder_ != null) { + controlBuilder_.dispose(); + controlBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Requested change to the execution of this rollout.
+     * Default RolloutControl.action is ROLLOUT_ACTION_RUN meaning
+     * the rollout will be executed to completion while progressing through
+     * all natural Rollout States (such as RUNNING -> SUCCEEDED or RUNNING ->
+     * FAILED). Requests can only be made when the Rollout is in a non-terminal
+     * state.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl control = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl.Builder + getControlBuilder() { + bitField0_ |= 0x00002000; + onChanged(); + return getControlFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Requested change to the execution of this rollout.
+     * Default RolloutControl.action is ROLLOUT_ACTION_RUN meaning
+     * the rollout will be executed to completion while progressing through
+     * all natural Rollout States (such as RUNNING -> SUCCEEDED or RUNNING ->
+     * FAILED). Requests can only be made when the Rollout is in a non-terminal
+     * state.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl control = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControlOrBuilder + getControlOrBuilder() { + if (controlBuilder_ != null) { + return controlBuilder_.getMessageOrBuilder(); + } else { + return control_ == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl + .getDefaultInstance() + : control_; + } + } + + /** + * + * + *
+     * Optional. Requested change to the execution of this rollout.
+     * Default RolloutControl.action is ROLLOUT_ACTION_RUN meaning
+     * the rollout will be executed to completion while progressing through
+     * all natural Rollout States (such as RUNNING -> SUCCEEDED or RUNNING ->
+     * FAILED). Requests can only be made when the Rollout is in a non-terminal
+     * state.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl control = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControlOrBuilder> + getControlFieldBuilder() { + if (controlBuilder_ == null) { + controlBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControlOrBuilder>( + getControl(), getParentForChildren(), isClean()); + control_ = null; + } + return controlBuilder_; + } + + 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() { + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + bitField0_ |= 0x00004000; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
+     * Optional. The labels on the resource, which can be used for categorization.
+     * similar to Kubernetes resource labels.
+     * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** + * + * + *
+     * Optional. The labels on the resource, which can be used for categorization.
+     * similar to Kubernetes resource labels.
+     * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
+     * Optional. The labels on the resource, which can be used for categorization.
+     * similar to Kubernetes resource labels.
+     * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+     * Optional. The labels on the resource, which can be used for categorization.
+     * similar to Kubernetes resource labels.
+     * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00004000); + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + + /** + * + * + *
+     * Optional. The labels on the resource, which can be used for categorization.
+     * similar to Kubernetes resource labels.
+     * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableLabels() { + bitField0_ |= 0x00004000; + return internalGetMutableLabels().getMutableMap(); + } + + /** + * + * + *
+     * Optional. The labels on the resource, which can be used for categorization.
+     * similar to Kubernetes resource labels.
+     * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00004000; + return this; + } + + /** + * + * + *
+     * Optional. The labels on the resource, which can be used for categorization.
+     * similar to Kubernetes resource labels.
+     * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00004000; + return this; + } + + private com.google.protobuf.MapField annotations_; + + private com.google.protobuf.MapField + internalGetAnnotations() { + if (annotations_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AnnotationsDefaultEntryHolder.defaultEntry); + } + return annotations_; + } + + private com.google.protobuf.MapField + internalGetMutableAnnotations() { + if (annotations_ == null) { + annotations_ = + com.google.protobuf.MapField.newMapField(AnnotationsDefaultEntryHolder.defaultEntry); + } + if (!annotations_.isMutable()) { + annotations_ = annotations_.copy(); + } + bitField0_ |= 0x00008000; + onChanged(); + return annotations_; + } + + public int getAnnotationsCount() { + return internalGetAnnotations().getMap().size(); + } + + /** + * + * + *
+     * Optional. Annotations is an unstructured key-value map stored with a
+     * resource that may be set by external tools to store and retrieve arbitrary
+     * metadata. They are not queryable and should be preserved when modifying
+     * objects.
+     *
+     * More info: https://kubernetes.io/docs/user-guide/annotations
+     * 
+ * + * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetAnnotations().getMap().containsKey(key); + } + + /** Use {@link #getAnnotationsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getAnnotations() { + return getAnnotationsMap(); + } + + /** + * + * + *
+     * Optional. Annotations is an unstructured key-value map stored with a
+     * resource that may be set by external tools to store and retrieve arbitrary
+     * metadata. They are not queryable and should be preserved when modifying
+     * objects.
+     *
+     * More info: https://kubernetes.io/docs/user-guide/annotations
+     * 
+ * + * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getAnnotationsMap() { + return internalGetAnnotations().getMap(); + } + + /** + * + * + *
+     * Optional. Annotations is an unstructured key-value map stored with a
+     * resource that may be set by external tools to store and retrieve arbitrary
+     * metadata. They are not queryable and should be preserved when modifying
+     * objects.
+     *
+     * More info: https://kubernetes.io/docs/user-guide/annotations
+     * 
+ * + * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getAnnotationsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+     * Optional. Annotations is an unstructured key-value map stored with a
+     * resource that may be set by external tools to store and retrieve arbitrary
+     * metadata. They are not queryable and should be preserved when modifying
+     * objects.
+     *
+     * More info: https://kubernetes.io/docs/user-guide/annotations
+     * 
+ * + * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearAnnotations() { + bitField0_ = (bitField0_ & ~0x00008000); + internalGetMutableAnnotations().getMutableMap().clear(); + return this; + } + + /** + * + * + *
+     * Optional. Annotations is an unstructured key-value map stored with a
+     * resource that may be set by external tools to store and retrieve arbitrary
+     * metadata. They are not queryable and should be preserved when modifying
+     * objects.
+     *
+     * More info: https://kubernetes.io/docs/user-guide/annotations
+     * 
+ * + * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableAnnotations().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableAnnotations() { + bitField0_ |= 0x00008000; + return internalGetMutableAnnotations().getMutableMap(); + } + + /** + * + * + *
+     * Optional. Annotations is an unstructured key-value map stored with a
+     * resource that may be set by external tools to store and retrieve arbitrary
+     * metadata. They are not queryable and should be preserved when modifying
+     * objects.
+     *
+     * More info: https://kubernetes.io/docs/user-guide/annotations
+     * 
+ * + * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAnnotations(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableAnnotations().getMutableMap().put(key, value); + bitField0_ |= 0x00008000; + return this; + } + + /** + * + * + *
+     * Optional. Annotations is an unstructured key-value map stored with a
+     * resource that may be set by external tools to store and retrieve arbitrary
+     * metadata. They are not queryable and should be preserved when modifying
+     * objects.
+     *
+     * More info: https://kubernetes.io/docs/user-guide/annotations
+     * 
+ * + * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllAnnotations(java.util.Map values) { + internalGetMutableAnnotations().getMutableMap().putAll(values); + bitField0_ |= 0x00008000; + return this; + } + + private java.lang.Object uid_ = ""; + + /** + * + * + *
+     * Output only. The unique identifier of the resource. UID is unique in the
+     * time and space for this resource within the scope of the service. It is
+     * typically generated by the server on successful creation of a resource
+     * and must not be changed. UID is used to uniquely identify resources
+     * with resource name reuses. This should be a UUID4.
+     * 
+ * + * + * string uid = 10201 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The uid. + */ + public java.lang.String getUid() { + java.lang.Object ref = uid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The unique identifier of the resource. UID is unique in the
+     * time and space for this resource within the scope of the service. It is
+     * typically generated by the server on successful creation of a resource
+     * and must not be changed. UID is used to uniquely identify resources
+     * with resource name reuses. This should be a UUID4.
+     * 
+ * + * + * string uid = 10201 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The bytes for uid. + */ + public com.google.protobuf.ByteString getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The unique identifier of the resource. UID is unique in the
+     * time and space for this resource within the scope of the service. It is
+     * typically generated by the server on successful creation of a resource
+     * and must not be changed. UID is used to uniquely identify resources
+     * with resource name reuses. This should be a UUID4.
+     * 
+ * + * + * string uid = 10201 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @param value The uid to set. + * @return This builder for chaining. + */ + public Builder setUid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uid_ = value; + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The unique identifier of the resource. UID is unique in the
+     * time and space for this resource within the scope of the service. It is
+     * typically generated by the server on successful creation of a resource
+     * and must not be changed. UID is used to uniquely identify resources
+     * with resource name reuses. This should be a UUID4.
+     * 
+ * + * + * string uid = 10201 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearUid() { + uid_ = getDefaultInstance().getUid(); + bitField0_ = (bitField0_ & ~0x00010000); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The unique identifier of the resource. UID is unique in the
+     * time and space for this resource within the scope of the service. It is
+     * typically generated by the server on successful creation of a resource
+     * and must not be changed. UID is used to uniquely identify resources
+     * with resource name reuses. This should be a UUID4.
+     * 
+ * + * + * string uid = 10201 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for uid to set. + * @return This builder for chaining. + */ + public Builder setUidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uid_ = value; + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + + private java.lang.Object etag_ = ""; + + /** + * + * + *
+     * Output only. An opaque value that uniquely identifies a version or
+     * generation of a resource. It can be used to confirm that the client
+     * and server agree on the ordering of a resource being written.
+     * 
+ * + * string etag = 10202 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+     * Output only. An opaque value that uniquely identifies a version or
+     * generation of a resource. It can be used to confirm that the client
+     * and server agree on the ordering of a resource being written.
+     * 
+ * + * string etag = 10202 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+     * Output only. An opaque value that uniquely identifies a version or
+     * generation of a resource. It can be used to confirm that the client
+     * and server agree on the ordering of a resource being written.
+     * 
+ * + * string etag = 10202 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. An opaque value that uniquely identifies a version or
+     * generation of a resource. It can be used to confirm that the client
+     * and server agree on the ordering of a resource being written.
+     * 
+ * + * string etag = 10202 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00020000); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. An opaque value that uniquely identifies a version or
+     * generation of a resource. It can be used to confirm that the client
+     * and server agree on the ordering of a resource being written.
+     * 
+ * + * string etag = 10202 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + bitField0_ |= 0x00020000; + 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 timestamp when the resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00040000) != 0); + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.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 timestamp when the resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.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; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00040000) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00040000; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00040000); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00040000; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.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 timestamp when the resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.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 timestamp when the resource was last updated. Any
+     * change to the resource made by users must refresh this value.
+     * Changes to a resource made by the service should refresh this value.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00080000) != 0); + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was last updated. Any
+     * change to the resource made by users must refresh this value.
+     * Changes to a resource made by the service should refresh this value.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.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 timestamp when the resource was last updated. Any
+     * change to the resource made by users must refresh this value.
+     * Changes to a resource made by the service should refresh this value.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.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; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was last updated. Any
+     * change to the resource made by users must refresh this value.
+     * Changes to a resource made by the service should refresh this value.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was last updated. Any
+     * change to the resource made by users must refresh this value.
+     * Changes to a resource made by the service should refresh this value.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00080000) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00080000; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was last updated. Any
+     * change to the resource made by users must refresh this value.
+     * Changes to a resource made by the service should refresh this value.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00080000); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was last updated. Any
+     * change to the resource made by users must refresh this value.
+     * Changes to a resource made by the service should refresh this value.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00080000; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was last updated. Any
+     * change to the resource made by users must refresh this value.
+     * Changes to a resource made by the service should refresh this value.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.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 timestamp when the resource was last updated. Any
+     * change to the resource made by users must refresh this value.
+     * Changes to a resource made by the service should refresh this value.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.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_; + } + + @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.saasplatform.saasservicemgmt.v1beta1.Rollout) + } + + // @@protoc_insertion_point(class_scope:google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout) + private static final com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout(); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Rollout parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.saasplatform.saasservicemgmt.v1beta1.Rollout getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/RolloutAction.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/RolloutAction.java new file mode 100644 index 000000000000..a29b3534b3ad --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/RolloutAction.java @@ -0,0 +1,215 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/rollouts_resources.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +/** + * + * + *
+ * RolloutAction indicates the action to be performed on the Rollout.
+ * 
+ * + * Protobuf enum {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutAction} + */ +public enum RolloutAction implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Unspecified action, will be treated as RUN by default.
+   * 
+ * + * ROLLOUT_ACTION_UNSPECIFIED = 0; + */ + ROLLOUT_ACTION_UNSPECIFIED(0), + /** + * + * + *
+   * Run the Rollout until it naturally reaches a terminal state.
+   * A rollout requested to run will progress through all natural Rollout
+   * States (such as RUNNING -> SUCCEEDED or RUNNING -> FAILED).
+   * If retriable errors are encountered during the rollout, the rollout
+   * will paused by default and can be resumed by re-requesting this RUN
+   * action.
+   * 
+ * + * ROLLOUT_ACTION_RUN = 1; + */ + ROLLOUT_ACTION_RUN(1), + /** + * + * + *
+   * Pause the Rollout until it is resumed (i.e. RUN is requested).
+   * 
+ * + * ROLLOUT_ACTION_PAUSE = 2; + */ + ROLLOUT_ACTION_PAUSE(2), + /** + * + * + *
+   * Cancel the Rollout permanently.
+   * 
+ * + * ROLLOUT_ACTION_CANCEL = 3; + */ + ROLLOUT_ACTION_CANCEL(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Unspecified action, will be treated as RUN by default.
+   * 
+ * + * ROLLOUT_ACTION_UNSPECIFIED = 0; + */ + public static final int ROLLOUT_ACTION_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+   * Run the Rollout until it naturally reaches a terminal state.
+   * A rollout requested to run will progress through all natural Rollout
+   * States (such as RUNNING -> SUCCEEDED or RUNNING -> FAILED).
+   * If retriable errors are encountered during the rollout, the rollout
+   * will paused by default and can be resumed by re-requesting this RUN
+   * action.
+   * 
+ * + * ROLLOUT_ACTION_RUN = 1; + */ + public static final int ROLLOUT_ACTION_RUN_VALUE = 1; + + /** + * + * + *
+   * Pause the Rollout until it is resumed (i.e. RUN is requested).
+   * 
+ * + * ROLLOUT_ACTION_PAUSE = 2; + */ + public static final int ROLLOUT_ACTION_PAUSE_VALUE = 2; + + /** + * + * + *
+   * Cancel the Rollout permanently.
+   * 
+ * + * ROLLOUT_ACTION_CANCEL = 3; + */ + public static final int ROLLOUT_ACTION_CANCEL_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 RolloutAction 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 RolloutAction forNumber(int value) { + switch (value) { + case 0: + return ROLLOUT_ACTION_UNSPECIFIED; + case 1: + return ROLLOUT_ACTION_RUN; + case 2: + return ROLLOUT_ACTION_PAUSE; + case 3: + return ROLLOUT_ACTION_CANCEL; + 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 RolloutAction findValueByNumber(int number) { + return RolloutAction.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + 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.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsResourcesProto + .getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final RolloutAction[] VALUES = values(); + + public static RolloutAction 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 RolloutAction(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutAction) +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/RolloutControl.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/RolloutControl.java new file mode 100644 index 000000000000..69fd210a1170 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/RolloutControl.java @@ -0,0 +1,1766 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/rollouts_resources.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +/** + * + * + *
+ * RolloutControl provides a way to request a change to the execution of a
+ * Rollout by pausing or canceling it.
+ * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl} + */ +public final class RolloutControl extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl) + RolloutControlOrBuilder { + private static final long serialVersionUID = 0L; + + // Use RolloutControl.newBuilder() to construct. + private RolloutControl(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RolloutControl() { + action_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RolloutControl(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_RolloutControl_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_RolloutControl_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl.Builder.class); + } + + public interface RunRolloutActionParamsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl.RunRolloutActionParams) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Required. If true, the rollout will retry failed operations when resumed.
+     * This is applicable only the current state of the Rollout is PAUSED and
+     * the requested action is RUN.
+     * 
+ * + * bool retry_failed_operations = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The retryFailedOperations. + */ + boolean getRetryFailedOperations(); + } + + /** + * + * + *
+   * Parameters for the RUN action controlling the behavior of the rollout
+   * when it is resumed from a PAUSED state.
+   * 
+ * + * Protobuf type {@code + * google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl.RunRolloutActionParams} + */ + public static final class RunRolloutActionParams extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl.RunRolloutActionParams) + RunRolloutActionParamsOrBuilder { + private static final long serialVersionUID = 0L; + + // Use RunRolloutActionParams.newBuilder() to construct. + private RunRolloutActionParams(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RunRolloutActionParams() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RunRolloutActionParams(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_RolloutControl_RunRolloutActionParams_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_RolloutControl_RunRolloutActionParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl + .RunRolloutActionParams.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl + .RunRolloutActionParams.Builder.class); + } + + public static final int RETRY_FAILED_OPERATIONS_FIELD_NUMBER = 1; + private boolean retryFailedOperations_ = false; + + /** + * + * + *
+     * Required. If true, the rollout will retry failed operations when resumed.
+     * This is applicable only the current state of the Rollout is PAUSED and
+     * the requested action is RUN.
+     * 
+ * + * bool retry_failed_operations = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The retryFailedOperations. + */ + @java.lang.Override + public boolean getRetryFailedOperations() { + return retryFailedOperations_; + } + + 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 (retryFailedOperations_ != false) { + output.writeBool(1, retryFailedOperations_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (retryFailedOperations_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, retryFailedOperations_); + } + size += getUnknownFields().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.saasplatform.saasservicemgmt.v1beta1.RolloutControl + .RunRolloutActionParams)) { + return super.equals(obj); + } + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl.RunRolloutActionParams + other = + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl + .RunRolloutActionParams) + obj; + + if (getRetryFailedOperations() != other.getRetryFailedOperations()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + RETRY_FAILED_OPERATIONS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRetryFailedOperations()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl + .RunRolloutActionParams + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl + .RunRolloutActionParams + 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.saasplatform.saasservicemgmt.v1beta1.RolloutControl + .RunRolloutActionParams + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl + .RunRolloutActionParams + 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.saasplatform.saasservicemgmt.v1beta1.RolloutControl + .RunRolloutActionParams + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl + .RunRolloutActionParams + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl + .RunRolloutActionParams + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl + .RunRolloutActionParams + 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.saasplatform.saasservicemgmt.v1beta1.RolloutControl + .RunRolloutActionParams + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl + .RunRolloutActionParams + 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.saasplatform.saasservicemgmt.v1beta1.RolloutControl + .RunRolloutActionParams + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl + .RunRolloutActionParams + 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.saasplatform.saasservicemgmt.v1beta1.RolloutControl.RunRolloutActionParams + 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; + } + + /** + * + * + *
+     * Parameters for the RUN action controlling the behavior of the rollout
+     * when it is resumed from a PAUSED state.
+     * 
+ * + * Protobuf type {@code + * google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl.RunRolloutActionParams} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl.RunRolloutActionParams) + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl + .RunRolloutActionParamsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_RolloutControl_RunRolloutActionParams_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_RolloutControl_RunRolloutActionParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl + .RunRolloutActionParams.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl + .RunRolloutActionParams.Builder.class); + } + + // Construct using + // com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl.RunRolloutActionParams.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + retryFailedOperations_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_RolloutControl_RunRolloutActionParams_descriptor; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl + .RunRolloutActionParams + getDefaultInstanceForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl + .RunRolloutActionParams.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl + .RunRolloutActionParams + build() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl.RunRolloutActionParams + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl + .RunRolloutActionParams + buildPartial() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl.RunRolloutActionParams + result = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl + .RunRolloutActionParams(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl + .RunRolloutActionParams + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.retryFailedOperations_ = retryFailedOperations_; + } + } + + @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.saasplatform.saasservicemgmt.v1beta1.RolloutControl + .RunRolloutActionParams) { + return mergeFrom( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl + .RunRolloutActionParams) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl + .RunRolloutActionParams + other) { + if (other + == com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl + .RunRolloutActionParams.getDefaultInstance()) return this; + if (other.getRetryFailedOperations() != false) { + setRetryFailedOperations(other.getRetryFailedOperations()); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + retryFailedOperations_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private boolean retryFailedOperations_; + + /** + * + * + *
+       * Required. If true, the rollout will retry failed operations when resumed.
+       * This is applicable only the current state of the Rollout is PAUSED and
+       * the requested action is RUN.
+       * 
+ * + * bool retry_failed_operations = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The retryFailedOperations. + */ + @java.lang.Override + public boolean getRetryFailedOperations() { + return retryFailedOperations_; + } + + /** + * + * + *
+       * Required. If true, the rollout will retry failed operations when resumed.
+       * This is applicable only the current state of the Rollout is PAUSED and
+       * the requested action is RUN.
+       * 
+ * + * bool retry_failed_operations = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The retryFailedOperations to set. + * @return This builder for chaining. + */ + public Builder setRetryFailedOperations(boolean value) { + + retryFailedOperations_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Required. If true, the rollout will retry failed operations when resumed.
+       * This is applicable only the current state of the Rollout is PAUSED and
+       * the requested action is RUN.
+       * 
+ * + * bool retry_failed_operations = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearRetryFailedOperations() { + bitField0_ = (bitField0_ & ~0x00000001); + retryFailedOperations_ = false; + 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.saasplatform.saasservicemgmt.v1beta1.RolloutControl.RunRolloutActionParams) + } + + // @@protoc_insertion_point(class_scope:google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl.RunRolloutActionParams) + private static final com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl + .RunRolloutActionParams + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl + .RunRolloutActionParams(); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl + .RunRolloutActionParams + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RunRolloutActionParams parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.saasplatform.saasservicemgmt.v1beta1.RolloutControl + .RunRolloutActionParams + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int actionParamsCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object actionParams_; + + public enum ActionParamsCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + RUN_PARAMS(2), + ACTIONPARAMS_NOT_SET(0); + private final int value; + + private ActionParamsCase(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 ActionParamsCase valueOf(int value) { + return forNumber(value); + } + + public static ActionParamsCase forNumber(int value) { + switch (value) { + case 2: + return RUN_PARAMS; + case 0: + return ACTIONPARAMS_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ActionParamsCase getActionParamsCase() { + return ActionParamsCase.forNumber(actionParamsCase_); + } + + public static final int RUN_PARAMS_FIELD_NUMBER = 2; + + /** + * + * + *
+   * Optional. Parameters for the RUN action. It is an error to specify this
+   * if the RolloutAction is not set to RUN. By default, the rollout will
+   * retry failed operations when resumed.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl.RunRolloutActionParams run_params = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the runParams field is set. + */ + @java.lang.Override + public boolean hasRunParams() { + return actionParamsCase_ == 2; + } + + /** + * + * + *
+   * Optional. Parameters for the RUN action. It is an error to specify this
+   * if the RolloutAction is not set to RUN. By default, the rollout will
+   * retry failed operations when resumed.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl.RunRolloutActionParams run_params = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The runParams. + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl.RunRolloutActionParams + getRunParams() { + if (actionParamsCase_ == 2) { + return (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl + .RunRolloutActionParams) + actionParams_; + } + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl + .RunRolloutActionParams.getDefaultInstance(); + } + + /** + * + * + *
+   * Optional. Parameters for the RUN action. It is an error to specify this
+   * if the RolloutAction is not set to RUN. By default, the rollout will
+   * retry failed operations when resumed.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl.RunRolloutActionParams run_params = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl + .RunRolloutActionParamsOrBuilder + getRunParamsOrBuilder() { + if (actionParamsCase_ == 2) { + return (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl + .RunRolloutActionParams) + actionParams_; + } + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl + .RunRolloutActionParams.getDefaultInstance(); + } + + public static final int ACTION_FIELD_NUMBER = 1; + private int action_ = 0; + + /** + * + * + *
+   * Required. Action to be performed on the Rollout.
+   * The default behavior is to run the rollout until it naturally reaches a
+   * terminal state.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutAction action = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for action. + */ + @java.lang.Override + public int getActionValue() { + return action_; + } + + /** + * + * + *
+   * Required. Action to be performed on the Rollout.
+   * The default behavior is to run the rollout until it naturally reaches a
+   * terminal state.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutAction action = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The action. + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutAction getAction() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutAction result = + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutAction.forNumber(action_); + return result == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutAction.UNRECOGNIZED + : result; + } + + 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 (action_ + != com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutAction + .ROLLOUT_ACTION_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, action_); + } + if (actionParamsCase_ == 2) { + output.writeMessage( + 2, + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl + .RunRolloutActionParams) + actionParams_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (action_ + != com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutAction + .ROLLOUT_ACTION_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, action_); + } + if (actionParamsCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl + .RunRolloutActionParams) + actionParams_); + } + size += getUnknownFields().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.saasplatform.saasservicemgmt.v1beta1.RolloutControl)) { + return super.equals(obj); + } + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl other = + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl) obj; + + if (action_ != other.action_) return false; + if (!getActionParamsCase().equals(other.getActionParamsCase())) return false; + switch (actionParamsCase_) { + case 2: + if (!getRunParams().equals(other.getRunParams())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + ACTION_FIELD_NUMBER; + hash = (53 * hash) + action_; + switch (actionParamsCase_) { + case 2: + hash = (37 * hash) + RUN_PARAMS_FIELD_NUMBER; + hash = (53 * hash) + getRunParams().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl 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.saasplatform.saasservicemgmt.v1beta1.RolloutControl parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl 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.saasplatform.saasservicemgmt.v1beta1.RolloutControl parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl 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.saasplatform.saasservicemgmt.v1beta1.RolloutControl + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl + 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.saasplatform.saasservicemgmt.v1beta1.RolloutControl parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl 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.saasplatform.saasservicemgmt.v1beta1.RolloutControl 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; + } + + /** + * + * + *
+   * RolloutControl provides a way to request a change to the execution of a
+   * Rollout by pausing or canceling it.
+   * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl) + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControlOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_RolloutControl_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_RolloutControl_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl.Builder.class); + } + + // Construct using + // com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (runParamsBuilder_ != null) { + runParamsBuilder_.clear(); + } + action_ = 0; + actionParamsCase_ = 0; + actionParams_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_RolloutControl_descriptor; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl + getDefaultInstanceForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl build() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl buildPartial() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl result = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.action_ = action_; + } + } + + private void buildPartialOneofs( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl result) { + result.actionParamsCase_ = actionParamsCase_; + result.actionParams_ = this.actionParams_; + if (actionParamsCase_ == 2 && runParamsBuilder_ != null) { + result.actionParams_ = runParamsBuilder_.build(); + } + } + + @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.saasplatform.saasservicemgmt.v1beta1.RolloutControl) { + return mergeFrom( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl other) { + if (other + == com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl + .getDefaultInstance()) return this; + if (other.action_ != 0) { + setActionValue(other.getActionValue()); + } + switch (other.getActionParamsCase()) { + case RUN_PARAMS: + { + mergeRunParams(other.getRunParams()); + break; + } + case ACTIONPARAMS_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + action_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 8 + case 18: + { + input.readMessage(getRunParamsFieldBuilder().getBuilder(), extensionRegistry); + actionParamsCase_ = 2; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int actionParamsCase_ = 0; + private java.lang.Object actionParams_; + + public ActionParamsCase getActionParamsCase() { + return ActionParamsCase.forNumber(actionParamsCase_); + } + + public Builder clearActionParams() { + actionParamsCase_ = 0; + actionParams_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl + .RunRolloutActionParams, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl + .RunRolloutActionParams.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl + .RunRolloutActionParamsOrBuilder> + runParamsBuilder_; + + /** + * + * + *
+     * Optional. Parameters for the RUN action. It is an error to specify this
+     * if the RolloutAction is not set to RUN. By default, the rollout will
+     * retry failed operations when resumed.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl.RunRolloutActionParams run_params = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the runParams field is set. + */ + @java.lang.Override + public boolean hasRunParams() { + return actionParamsCase_ == 2; + } + + /** + * + * + *
+     * Optional. Parameters for the RUN action. It is an error to specify this
+     * if the RolloutAction is not set to RUN. By default, the rollout will
+     * retry failed operations when resumed.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl.RunRolloutActionParams run_params = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The runParams. + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl + .RunRolloutActionParams + getRunParams() { + if (runParamsBuilder_ == null) { + if (actionParamsCase_ == 2) { + return (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl + .RunRolloutActionParams) + actionParams_; + } + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl + .RunRolloutActionParams.getDefaultInstance(); + } else { + if (actionParamsCase_ == 2) { + return runParamsBuilder_.getMessage(); + } + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl + .RunRolloutActionParams.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. Parameters for the RUN action. It is an error to specify this
+     * if the RolloutAction is not set to RUN. By default, the rollout will
+     * retry failed operations when resumed.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl.RunRolloutActionParams run_params = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRunParams( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl.RunRolloutActionParams + value) { + if (runParamsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + actionParams_ = value; + onChanged(); + } else { + runParamsBuilder_.setMessage(value); + } + actionParamsCase_ = 2; + return this; + } + + /** + * + * + *
+     * Optional. Parameters for the RUN action. It is an error to specify this
+     * if the RolloutAction is not set to RUN. By default, the rollout will
+     * retry failed operations when resumed.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl.RunRolloutActionParams run_params = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRunParams( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl.RunRolloutActionParams + .Builder + builderForValue) { + if (runParamsBuilder_ == null) { + actionParams_ = builderForValue.build(); + onChanged(); + } else { + runParamsBuilder_.setMessage(builderForValue.build()); + } + actionParamsCase_ = 2; + return this; + } + + /** + * + * + *
+     * Optional. Parameters for the RUN action. It is an error to specify this
+     * if the RolloutAction is not set to RUN. By default, the rollout will
+     * retry failed operations when resumed.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl.RunRolloutActionParams run_params = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeRunParams( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl.RunRolloutActionParams + value) { + if (runParamsBuilder_ == null) { + if (actionParamsCase_ == 2 + && actionParams_ + != com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl + .RunRolloutActionParams.getDefaultInstance()) { + actionParams_ = + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl + .RunRolloutActionParams.newBuilder( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl + .RunRolloutActionParams) + actionParams_) + .mergeFrom(value) + .buildPartial(); + } else { + actionParams_ = value; + } + onChanged(); + } else { + if (actionParamsCase_ == 2) { + runParamsBuilder_.mergeFrom(value); + } else { + runParamsBuilder_.setMessage(value); + } + } + actionParamsCase_ = 2; + return this; + } + + /** + * + * + *
+     * Optional. Parameters for the RUN action. It is an error to specify this
+     * if the RolloutAction is not set to RUN. By default, the rollout will
+     * retry failed operations when resumed.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl.RunRolloutActionParams run_params = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearRunParams() { + if (runParamsBuilder_ == null) { + if (actionParamsCase_ == 2) { + actionParamsCase_ = 0; + actionParams_ = null; + onChanged(); + } + } else { + if (actionParamsCase_ == 2) { + actionParamsCase_ = 0; + actionParams_ = null; + } + runParamsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. Parameters for the RUN action. It is an error to specify this
+     * if the RolloutAction is not set to RUN. By default, the rollout will
+     * retry failed operations when resumed.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl.RunRolloutActionParams run_params = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl + .RunRolloutActionParams.Builder + getRunParamsBuilder() { + return getRunParamsFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Parameters for the RUN action. It is an error to specify this
+     * if the RolloutAction is not set to RUN. By default, the rollout will
+     * retry failed operations when resumed.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl.RunRolloutActionParams run_params = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl + .RunRolloutActionParamsOrBuilder + getRunParamsOrBuilder() { + if ((actionParamsCase_ == 2) && (runParamsBuilder_ != null)) { + return runParamsBuilder_.getMessageOrBuilder(); + } else { + if (actionParamsCase_ == 2) { + return (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl + .RunRolloutActionParams) + actionParams_; + } + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl + .RunRolloutActionParams.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. Parameters for the RUN action. It is an error to specify this
+     * if the RolloutAction is not set to RUN. By default, the rollout will
+     * retry failed operations when resumed.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl.RunRolloutActionParams run_params = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl + .RunRolloutActionParams, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl + .RunRolloutActionParams.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl + .RunRolloutActionParamsOrBuilder> + getRunParamsFieldBuilder() { + if (runParamsBuilder_ == null) { + if (!(actionParamsCase_ == 2)) { + actionParams_ = + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl + .RunRolloutActionParams.getDefaultInstance(); + } + runParamsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl + .RunRolloutActionParams, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl + .RunRolloutActionParams.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl + .RunRolloutActionParamsOrBuilder>( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl + .RunRolloutActionParams) + actionParams_, + getParentForChildren(), + isClean()); + actionParams_ = null; + } + actionParamsCase_ = 2; + onChanged(); + return runParamsBuilder_; + } + + private int action_ = 0; + + /** + * + * + *
+     * Required. Action to be performed on the Rollout.
+     * The default behavior is to run the rollout until it naturally reaches a
+     * terminal state.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutAction action = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for action. + */ + @java.lang.Override + public int getActionValue() { + return action_; + } + + /** + * + * + *
+     * Required. Action to be performed on the Rollout.
+     * The default behavior is to run the rollout until it naturally reaches a
+     * terminal state.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutAction action = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for action to set. + * @return This builder for chaining. + */ + public Builder setActionValue(int value) { + action_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Action to be performed on the Rollout.
+     * The default behavior is to run the rollout until it naturally reaches a
+     * terminal state.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutAction action = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The action. + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutAction getAction() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutAction result = + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutAction.forNumber(action_); + return result == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutAction.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Required. Action to be performed on the Rollout.
+     * The default behavior is to run the rollout until it naturally reaches a
+     * terminal state.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutAction action = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The action to set. + * @return This builder for chaining. + */ + public Builder setAction( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutAction value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + action_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Action to be performed on the Rollout.
+     * The default behavior is to run the rollout until it naturally reaches a
+     * terminal state.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutAction action = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearAction() { + bitField0_ = (bitField0_ & ~0x00000002); + action_ = 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.saasplatform.saasservicemgmt.v1beta1.RolloutControl) + } + + // @@protoc_insertion_point(class_scope:google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl) + private static final com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl(); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RolloutControl parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.saasplatform.saasservicemgmt.v1beta1.RolloutControl + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/RolloutControlOrBuilder.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/RolloutControlOrBuilder.java new file mode 100644 index 000000000000..962f14cb8772 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/RolloutControlOrBuilder.java @@ -0,0 +1,115 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/rollouts_resources.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +public interface RolloutControlOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Parameters for the RUN action. It is an error to specify this
+   * if the RolloutAction is not set to RUN. By default, the rollout will
+   * retry failed operations when resumed.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl.RunRolloutActionParams run_params = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the runParams field is set. + */ + boolean hasRunParams(); + + /** + * + * + *
+   * Optional. Parameters for the RUN action. It is an error to specify this
+   * if the RolloutAction is not set to RUN. By default, the rollout will
+   * retry failed operations when resumed.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl.RunRolloutActionParams run_params = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The runParams. + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl.RunRolloutActionParams + getRunParams(); + + /** + * + * + *
+   * Optional. Parameters for the RUN action. It is an error to specify this
+   * if the RolloutAction is not set to RUN. By default, the rollout will
+   * retry failed operations when resumed.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl.RunRolloutActionParams run_params = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl + .RunRolloutActionParamsOrBuilder + getRunParamsOrBuilder(); + + /** + * + * + *
+   * Required. Action to be performed on the Rollout.
+   * The default behavior is to run the rollout until it naturally reaches a
+   * terminal state.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutAction action = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for action. + */ + int getActionValue(); + + /** + * + * + *
+   * Required. Action to be performed on the Rollout.
+   * The default behavior is to run the rollout until it naturally reaches a
+   * terminal state.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutAction action = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The action. + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutAction getAction(); + + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl.ActionParamsCase + getActionParamsCase(); +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/RolloutKind.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/RolloutKind.java new file mode 100644 index 000000000000..4ea264b120c0 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/RolloutKind.java @@ -0,0 +1,3898 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/rollouts_resources.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +/** + * + * + *
+ * An object that describes various settings of Rollout execution. Includes
+ * built-in policies across GCP and GDC, and customizable policies.
+ * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind} + */ +public final class RolloutKind extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind) + RolloutKindOrBuilder { + private static final long serialVersionUID = 0L; + + // Use RolloutKind.newBuilder() to construct. + private RolloutKind(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RolloutKind() { + name_ = ""; + unitKind_ = ""; + rolloutOrchestrationStrategy_ = ""; + unitFilter_ = ""; + updateUnitKindStrategy_ = 0; + uid_ = ""; + etag_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RolloutKind(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_RolloutKind_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 10401: + return internalGetLabels(); + case 10402: + return internalGetAnnotations(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_RolloutKind_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind.Builder.class); + } + + /** + * Protobuf enum {@code + * google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind.UpdateUnitKindStrategy} + */ + public enum UpdateUnitKindStrategy implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Strategy unspecified.
+     * 
+ * + * UPDATE_UNIT_KIND_STRATEGY_UNSPECIFIED = 0; + */ + UPDATE_UNIT_KIND_STRATEGY_UNSPECIFIED(0), + /** + * + * + *
+     * Update the unit kind strategy on the rollout start.
+     * 
+ * + * UPDATE_UNIT_KIND_STRATEGY_ON_START = 1; + */ + UPDATE_UNIT_KIND_STRATEGY_ON_START(1), + /** + * + * + *
+     * Never update the unit kind.
+     * 
+ * + * UPDATE_UNIT_KIND_STRATEGY_NEVER = 2; + */ + UPDATE_UNIT_KIND_STRATEGY_NEVER(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Strategy unspecified.
+     * 
+ * + * UPDATE_UNIT_KIND_STRATEGY_UNSPECIFIED = 0; + */ + public static final int UPDATE_UNIT_KIND_STRATEGY_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Update the unit kind strategy on the rollout start.
+     * 
+ * + * UPDATE_UNIT_KIND_STRATEGY_ON_START = 1; + */ + public static final int UPDATE_UNIT_KIND_STRATEGY_ON_START_VALUE = 1; + + /** + * + * + *
+     * Never update the unit kind.
+     * 
+ * + * UPDATE_UNIT_KIND_STRATEGY_NEVER = 2; + */ + public static final int UPDATE_UNIT_KIND_STRATEGY_NEVER_VALUE = 2; + + 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 UpdateUnitKindStrategy 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 UpdateUnitKindStrategy forNumber(int value) { + switch (value) { + case 0: + return UPDATE_UNIT_KIND_STRATEGY_UNSPECIFIED; + case 1: + return UPDATE_UNIT_KIND_STRATEGY_ON_START; + case 2: + return UPDATE_UNIT_KIND_STRATEGY_NEVER; + 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 UpdateUnitKindStrategy findValueByNumber(int number) { + return UpdateUnitKindStrategy.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + 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.saasplatform.saasservicemgmt.v1beta1.RolloutKind.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final UpdateUnitKindStrategy[] VALUES = values(); + + public static UpdateUnitKindStrategy 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 UpdateUnitKindStrategy(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind.UpdateUnitKindStrategy) + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Identifier. The resource name (full URI of the resource) following the
+   * standard naming scheme:
+   *
+   *   "projects/{project}/locations/{location}/rolloutKinds/{rollout_kind_id}"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + @java.lang.Override + 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; + } + } + + /** + * + * + *
+   * Identifier. The resource name (full URI of the resource) following the
+   * standard naming scheme:
+   *
+   *   "projects/{project}/locations/{location}/rolloutKinds/{rollout_kind_id}"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + @java.lang.Override + 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 UNIT_KIND_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object unitKind_ = ""; + + /** + * + * + *
+   * Required. Immutable. UnitKind that this rollout kind corresponds to.
+   * Rollouts stemming from this rollout kind will target the units of this unit
+   * kind. In other words, this defines the population of target units to be
+   * upgraded by rollouts.
+   * 
+ * + * + * string unit_kind = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The unitKind. + */ + @java.lang.Override + public java.lang.String getUnitKind() { + java.lang.Object ref = unitKind_; + 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(); + unitKind_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. Immutable. UnitKind that this rollout kind corresponds to.
+   * Rollouts stemming from this rollout kind will target the units of this unit
+   * kind. In other words, this defines the population of target units to be
+   * upgraded by rollouts.
+   * 
+ * + * + * string unit_kind = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for unitKind. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUnitKindBytes() { + java.lang.Object ref = unitKind_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + unitKind_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ROLLOUT_ORCHESTRATION_STRATEGY_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object rolloutOrchestrationStrategy_ = ""; + + /** + * + * + *
+   * Optional. The strategy used for executing a Rollout. This is a required
+   * field.
+   *
+   * There are two supported values strategies which are used to control
+   * - "Google.Cloud.Simple.AllAtOnce"
+   * - "Google.Cloud.Simple.OneLocationAtATime"
+   *
+   * A rollout with one of these simple strategies will rollout across
+   * all locations defined in the associated UnitKind's Saas Locations.
+   * 
+ * + * string rollout_orchestration_strategy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The rolloutOrchestrationStrategy. + */ + @java.lang.Override + public java.lang.String getRolloutOrchestrationStrategy() { + java.lang.Object ref = rolloutOrchestrationStrategy_; + 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(); + rolloutOrchestrationStrategy_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The strategy used for executing a Rollout. This is a required
+   * field.
+   *
+   * There are two supported values strategies which are used to control
+   * - "Google.Cloud.Simple.AllAtOnce"
+   * - "Google.Cloud.Simple.OneLocationAtATime"
+   *
+   * A rollout with one of these simple strategies will rollout across
+   * all locations defined in the associated UnitKind's Saas Locations.
+   * 
+ * + * string rollout_orchestration_strategy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for rolloutOrchestrationStrategy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRolloutOrchestrationStrategyBytes() { + java.lang.Object ref = rolloutOrchestrationStrategy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rolloutOrchestrationStrategy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UNIT_FILTER_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object unitFilter_ = ""; + + /** + * + * + *
+   * Optional. CEL(https://github.com/google/cel-spec) formatted filter string
+   * against Unit. The filter will be applied to determine the eligible unit
+   * population. This filter can only reduce, but not expand the scope of the
+   * rollout.
+   * 
+ * + * string unit_filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The unitFilter. + */ + @java.lang.Override + public java.lang.String getUnitFilter() { + java.lang.Object ref = unitFilter_; + 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(); + unitFilter_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. CEL(https://github.com/google/cel-spec) formatted filter string
+   * against Unit. The filter will be applied to determine the eligible unit
+   * population. This filter can only reduce, but not expand the scope of the
+   * rollout.
+   * 
+ * + * string unit_filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for unitFilter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUnitFilterBytes() { + java.lang.Object ref = unitFilter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + unitFilter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UPDATE_UNIT_KIND_STRATEGY_FIELD_NUMBER = 6; + private int updateUnitKindStrategy_ = 0; + + /** + * + * + *
+   * Optional. The config for updating the unit kind. By default, the unit kind
+   * will be updated on the rollout start.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind.UpdateUnitKindStrategy update_unit_kind_strategy = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for updateUnitKindStrategy. + */ + @java.lang.Override + public int getUpdateUnitKindStrategyValue() { + return updateUnitKindStrategy_; + } + + /** + * + * + *
+   * Optional. The config for updating the unit kind. By default, the unit kind
+   * will be updated on the rollout start.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind.UpdateUnitKindStrategy update_unit_kind_strategy = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateUnitKindStrategy. + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind.UpdateUnitKindStrategy + getUpdateUnitKindStrategy() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind.UpdateUnitKindStrategy + result = + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind.UpdateUnitKindStrategy + .forNumber(updateUnitKindStrategy_); + return result == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind.UpdateUnitKindStrategy + .UNRECOGNIZED + : result; + } + + public static final int ERROR_BUDGET_FIELD_NUMBER = 7; + private com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ErrorBudget errorBudget_; + + /** + * + * + *
+   * Optional. The configuration for error budget. If the number of failed units
+   * exceeds max(allowed_count, allowed_ratio * total_units), the rollout will
+   * be paused. If not set, all units will be attempted to be updated regardless
+   * of the number of failures encountered.
+   * 
+ * + * + * optional .google.cloud.saasplatform.saasservicemgmt.v1beta1.ErrorBudget error_budget = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the errorBudget field is set. + */ + @java.lang.Override + public boolean hasErrorBudget() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. The configuration for error budget. If the number of failed units
+   * exceeds max(allowed_count, allowed_ratio * total_units), the rollout will
+   * be paused. If not set, all units will be attempted to be updated regardless
+   * of the number of failures encountered.
+   * 
+ * + * + * optional .google.cloud.saasplatform.saasservicemgmt.v1beta1.ErrorBudget error_budget = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The errorBudget. + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ErrorBudget getErrorBudget() { + return errorBudget_ == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ErrorBudget.getDefaultInstance() + : errorBudget_; + } + + /** + * + * + *
+   * Optional. The configuration for error budget. If the number of failed units
+   * exceeds max(allowed_count, allowed_ratio * total_units), the rollout will
+   * be paused. If not set, all units will be attempted to be updated regardless
+   * of the number of failures encountered.
+   * 
+ * + * + * optional .google.cloud.saasplatform.saasservicemgmt.v1beta1.ErrorBudget error_budget = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ErrorBudgetOrBuilder + getErrorBudgetOrBuilder() { + return errorBudget_ == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ErrorBudget.getDefaultInstance() + : errorBudget_; + } + + public static final int LABELS_FIELD_NUMBER = 10401; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_RolloutKind_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + 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(); + } + + /** + * + * + *
+   * Optional. The labels on the resource, which can be used for categorization.
+   * similar to Kubernetes resource labels.
+   * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** + * + * + *
+   * Optional. The labels on the resource, which can be used for categorization.
+   * similar to Kubernetes resource labels.
+   * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
+   * Optional. The labels on the resource, which can be used for categorization.
+   * similar to Kubernetes resource labels.
+   * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+   * Optional. The labels on the resource, which can be used for categorization.
+   * similar to Kubernetes resource labels.
+   * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int ANNOTATIONS_FIELD_NUMBER = 10402; + + private static final class AnnotationsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_RolloutKind_AnnotationsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField annotations_; + + private com.google.protobuf.MapField + internalGetAnnotations() { + if (annotations_ == null) { + return com.google.protobuf.MapField.emptyMapField(AnnotationsDefaultEntryHolder.defaultEntry); + } + return annotations_; + } + + public int getAnnotationsCount() { + return internalGetAnnotations().getMap().size(); + } + + /** + * + * + *
+   * Optional. Annotations is an unstructured key-value map stored with a
+   * resource that may be set by external tools to store and retrieve arbitrary
+   * metadata. They are not queryable and should be preserved when modifying
+   * objects.
+   *
+   * More info: https://kubernetes.io/docs/user-guide/annotations
+   * 
+ * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetAnnotations().getMap().containsKey(key); + } + + /** Use {@link #getAnnotationsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getAnnotations() { + return getAnnotationsMap(); + } + + /** + * + * + *
+   * Optional. Annotations is an unstructured key-value map stored with a
+   * resource that may be set by external tools to store and retrieve arbitrary
+   * metadata. They are not queryable and should be preserved when modifying
+   * objects.
+   *
+   * More info: https://kubernetes.io/docs/user-guide/annotations
+   * 
+ * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getAnnotationsMap() { + return internalGetAnnotations().getMap(); + } + + /** + * + * + *
+   * Optional. Annotations is an unstructured key-value map stored with a
+   * resource that may be set by external tools to store and retrieve arbitrary
+   * metadata. They are not queryable and should be preserved when modifying
+   * objects.
+   *
+   * More info: https://kubernetes.io/docs/user-guide/annotations
+   * 
+ * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getAnnotationsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+   * Optional. Annotations is an unstructured key-value map stored with a
+   * resource that may be set by external tools to store and retrieve arbitrary
+   * metadata. They are not queryable and should be preserved when modifying
+   * objects.
+   *
+   * More info: https://kubernetes.io/docs/user-guide/annotations
+   * 
+ * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int UID_FIELD_NUMBER = 10201; + + @SuppressWarnings("serial") + private volatile java.lang.Object uid_ = ""; + + /** + * + * + *
+   * Output only. The unique identifier of the resource. UID is unique in the
+   * time and space for this resource within the scope of the service. It is
+   * typically generated by the server on successful creation of a resource
+   * and must not be changed. UID is used to uniquely identify resources
+   * with resource name reuses. This should be a UUID4.
+   * 
+ * + * + * string uid = 10201 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The uid. + */ + @java.lang.Override + public java.lang.String getUid() { + java.lang.Object ref = uid_; + 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(); + uid_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The unique identifier of the resource. UID is unique in the
+   * time and space for this resource within the scope of the service. It is
+   * typically generated by the server on successful creation of a resource
+   * and must not be changed. UID is used to uniquely identify resources
+   * with resource name reuses. This should be a UUID4.
+   * 
+ * + * + * string uid = 10201 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The bytes for uid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ETAG_FIELD_NUMBER = 10202; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + + /** + * + * + *
+   * Output only. An opaque value that uniquely identifies a version or
+   * generation of a resource. It can be used to confirm that the client
+   * and server agree on the ordering of a resource being written.
+   * 
+ * + * string etag = 10202 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The etag. + */ + @java.lang.Override + 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. An opaque value that uniquely identifies a version or
+   * generation of a resource. It can be used to confirm that the client
+   * and server agree on the ordering of a resource being written.
+   * 
+ * + * string etag = 10202 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for etag. + */ + @java.lang.Override + 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 CREATE_TIME_FIELD_NUMBER = 10303; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
+   * Output only. The timestamp when the resource was created.
+   * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Output only. The timestamp when the resource was created.
+   * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
+   * Output only. The timestamp when the resource was created.
+   * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 10304; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
+   * Output only. The timestamp when the resource was last updated. Any
+   * change to the resource made by users must refresh this value.
+   * Changes to a resource made by the service should refresh this value.
+   * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Output only. The timestamp when the resource was last updated. Any
+   * change to the resource made by users must refresh this value.
+   * Changes to a resource made by the service should refresh this value.
+   * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
+   * Output only. The timestamp when the resource was last updated. Any
+   * change to the resource made by users must refresh this value.
+   * Changes to a resource made by the service should refresh this value.
+   * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(unitKind_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, unitKind_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rolloutOrchestrationStrategy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, rolloutOrchestrationStrategy_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(unitFilter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, unitFilter_); + } + if (updateUnitKindStrategy_ + != com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind.UpdateUnitKindStrategy + .UPDATE_UNIT_KIND_STRATEGY_UNSPECIFIED + .getNumber()) { + output.writeEnum(6, updateUnitKindStrategy_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(7, getErrorBudget()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10201, uid_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10202, etag_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(10303, getCreateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(10304, getUpdateTime()); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 10401); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetAnnotations(), AnnotationsDefaultEntryHolder.defaultEntry, 10402); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(unitKind_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, unitKind_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rolloutOrchestrationStrategy_)) { + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize( + 3, rolloutOrchestrationStrategy_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(unitFilter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, unitFilter_); + } + if (updateUnitKindStrategy_ + != com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind.UpdateUnitKindStrategy + .UPDATE_UNIT_KIND_STRATEGY_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, updateUnitKindStrategy_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getErrorBudget()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10201, uid_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10202, etag_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10303, getCreateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10304, 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(10401, labels__); + } + for (java.util.Map.Entry entry : + internalGetAnnotations().getMap().entrySet()) { + com.google.protobuf.MapEntry annotations__ = + AnnotationsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10402, annotations__); + } + size += getUnknownFields().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.saasplatform.saasservicemgmt.v1beta1.RolloutKind)) { + return super.equals(obj); + } + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind other = + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnitKind().equals(other.getUnitKind())) return false; + if (!getRolloutOrchestrationStrategy().equals(other.getRolloutOrchestrationStrategy())) + return false; + if (!getUnitFilter().equals(other.getUnitFilter())) return false; + if (updateUnitKindStrategy_ != other.updateUnitKindStrategy_) return false; + if (hasErrorBudget() != other.hasErrorBudget()) return false; + if (hasErrorBudget()) { + if (!getErrorBudget().equals(other.getErrorBudget())) return false; + } + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!internalGetAnnotations().equals(other.internalGetAnnotations())) return false; + if (!getUid().equals(other.getUid())) return false; + if (!getEtag().equals(other.getEtag())) 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + UNIT_KIND_FIELD_NUMBER; + hash = (53 * hash) + getUnitKind().hashCode(); + hash = (37 * hash) + ROLLOUT_ORCHESTRATION_STRATEGY_FIELD_NUMBER; + hash = (53 * hash) + getRolloutOrchestrationStrategy().hashCode(); + hash = (37 * hash) + UNIT_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getUnitFilter().hashCode(); + hash = (37 * hash) + UPDATE_UNIT_KIND_STRATEGY_FIELD_NUMBER; + hash = (53 * hash) + updateUnitKindStrategy_; + if (hasErrorBudget()) { + hash = (37 * hash) + ERROR_BUDGET_FIELD_NUMBER; + hash = (53 * hash) + getErrorBudget().hashCode(); + } + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + if (!internalGetAnnotations().getMap().isEmpty()) { + hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; + hash = (53 * hash) + internalGetAnnotations().hashCode(); + } + hash = (37 * hash) + UID_FIELD_NUMBER; + hash = (53 * hash) + getUid().hashCode(); + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind 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.saasplatform.saasservicemgmt.v1beta1.RolloutKind parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind 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.saasplatform.saasservicemgmt.v1beta1.RolloutKind parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind 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.saasplatform.saasservicemgmt.v1beta1.RolloutKind + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind + 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.saasplatform.saasservicemgmt.v1beta1.RolloutKind parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind 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.saasplatform.saasservicemgmt.v1beta1.RolloutKind 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; + } + + /** + * + * + *
+   * An object that describes various settings of Rollout execution. Includes
+   * built-in policies across GCP and GDC, and customizable policies.
+   * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind) + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKindOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_RolloutKind_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 10401: + return internalGetLabels(); + case 10402: + return internalGetAnnotations(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 10401: + return internalGetMutableLabels(); + case 10402: + return internalGetMutableAnnotations(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_RolloutKind_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind.Builder.class); + } + + // Construct using + // com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getErrorBudgetFieldBuilder(); + getCreateTimeFieldBuilder(); + getUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + unitKind_ = ""; + rolloutOrchestrationStrategy_ = ""; + unitFilter_ = ""; + updateUnitKindStrategy_ = 0; + errorBudget_ = null; + if (errorBudgetBuilder_ != null) { + errorBudgetBuilder_.dispose(); + errorBudgetBuilder_ = null; + } + internalGetMutableLabels().clear(); + internalGetMutableAnnotations().clear(); + uid_ = ""; + etag_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_RolloutKind_descriptor; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind + getDefaultInstanceForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind build() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind buildPartial() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind result = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.unitKind_ = unitKind_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.rolloutOrchestrationStrategy_ = rolloutOrchestrationStrategy_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.unitFilter_ = unitFilter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.updateUnitKindStrategy_ = updateUnitKindStrategy_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000020) != 0)) { + result.errorBudget_ = + errorBudgetBuilder_ == null ? errorBudget_ : errorBudgetBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.annotations_ = internalGetAnnotations(); + result.annotations_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.uid_ = uid_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.etag_ = etag_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @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.saasplatform.saasservicemgmt.v1beta1.RolloutKind) { + return mergeFrom((com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind other) { + if (other + == com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getUnitKind().isEmpty()) { + unitKind_ = other.unitKind_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getRolloutOrchestrationStrategy().isEmpty()) { + rolloutOrchestrationStrategy_ = other.rolloutOrchestrationStrategy_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getUnitFilter().isEmpty()) { + unitFilter_ = other.unitFilter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.updateUnitKindStrategy_ != 0) { + setUpdateUnitKindStrategyValue(other.getUpdateUnitKindStrategyValue()); + } + if (other.hasErrorBudget()) { + mergeErrorBudget(other.getErrorBudget()); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000040; + internalGetMutableAnnotations().mergeFrom(other.internalGetAnnotations()); + bitField0_ |= 0x00000080; + if (!other.getUid().isEmpty()) { + uid_ = other.uid_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + bitField0_ |= 0x00000200; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + unitKind_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + rolloutOrchestrationStrategy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 42: + { + unitFilter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 42 + case 48: + { + updateUnitKindStrategy_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 48 + case 58: + { + input.readMessage(getErrorBudgetFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 58 + case 81610: + { + uid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 81610 + case 81618: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 81618 + case 82426: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000400; + break; + } // case 82426 + case 82434: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000800; + break; + } // case 82434 + case 83210: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000040; + break; + } // case 83210 + case 83218: + { + com.google.protobuf.MapEntry annotations__ = + input.readMessage( + AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableAnnotations() + .getMutableMap() + .put(annotations__.getKey(), annotations__.getValue()); + bitField0_ |= 0x00000080; + break; + } // case 83218 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Identifier. The resource name (full URI of the resource) following the
+     * standard naming scheme:
+     *
+     *   "projects/{project}/locations/{location}/rolloutKinds/{rollout_kind_id}"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + } + } + + /** + * + * + *
+     * Identifier. The resource name (full URI of the resource) following the
+     * standard naming scheme:
+     *
+     *   "projects/{project}/locations/{location}/rolloutKinds/{rollout_kind_id}"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + } + } + + /** + * + * + *
+     * Identifier. The resource name (full URI of the resource) following the
+     * standard naming scheme:
+     *
+     *   "projects/{project}/locations/{location}/rolloutKinds/{rollout_kind_id}"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Identifier. The resource name (full URI of the resource) following the
+     * standard naming scheme:
+     *
+     *   "projects/{project}/locations/{location}/rolloutKinds/{rollout_kind_id}"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Identifier. The resource name (full URI of the resource) following the
+     * standard naming scheme:
+     *
+     *   "projects/{project}/locations/{location}/rolloutKinds/{rollout_kind_id}"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object unitKind_ = ""; + + /** + * + * + *
+     * Required. Immutable. UnitKind that this rollout kind corresponds to.
+     * Rollouts stemming from this rollout kind will target the units of this unit
+     * kind. In other words, this defines the population of target units to be
+     * upgraded by rollouts.
+     * 
+ * + * + * string unit_kind = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The unitKind. + */ + public java.lang.String getUnitKind() { + java.lang.Object ref = unitKind_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + unitKind_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. Immutable. UnitKind that this rollout kind corresponds to.
+     * Rollouts stemming from this rollout kind will target the units of this unit
+     * kind. In other words, this defines the population of target units to be
+     * upgraded by rollouts.
+     * 
+ * + * + * string unit_kind = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for unitKind. + */ + public com.google.protobuf.ByteString getUnitKindBytes() { + java.lang.Object ref = unitKind_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + unitKind_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. Immutable. UnitKind that this rollout kind corresponds to.
+     * Rollouts stemming from this rollout kind will target the units of this unit
+     * kind. In other words, this defines the population of target units to be
+     * upgraded by rollouts.
+     * 
+ * + * + * string unit_kind = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @param value The unitKind to set. + * @return This builder for chaining. + */ + public Builder setUnitKind(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + unitKind_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Immutable. UnitKind that this rollout kind corresponds to.
+     * Rollouts stemming from this rollout kind will target the units of this unit
+     * kind. In other words, this defines the population of target units to be
+     * upgraded by rollouts.
+     * 
+ * + * + * string unit_kind = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearUnitKind() { + unitKind_ = getDefaultInstance().getUnitKind(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Immutable. UnitKind that this rollout kind corresponds to.
+     * Rollouts stemming from this rollout kind will target the units of this unit
+     * kind. In other words, this defines the population of target units to be
+     * upgraded by rollouts.
+     * 
+ * + * + * string unit_kind = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for unitKind to set. + * @return This builder for chaining. + */ + public Builder setUnitKindBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + unitKind_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object rolloutOrchestrationStrategy_ = ""; + + /** + * + * + *
+     * Optional. The strategy used for executing a Rollout. This is a required
+     * field.
+     *
+     * There are two supported values strategies which are used to control
+     * - "Google.Cloud.Simple.AllAtOnce"
+     * - "Google.Cloud.Simple.OneLocationAtATime"
+     *
+     * A rollout with one of these simple strategies will rollout across
+     * all locations defined in the associated UnitKind's Saas Locations.
+     * 
+ * + * string rollout_orchestration_strategy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The rolloutOrchestrationStrategy. + */ + public java.lang.String getRolloutOrchestrationStrategy() { + java.lang.Object ref = rolloutOrchestrationStrategy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rolloutOrchestrationStrategy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The strategy used for executing a Rollout. This is a required
+     * field.
+     *
+     * There are two supported values strategies which are used to control
+     * - "Google.Cloud.Simple.AllAtOnce"
+     * - "Google.Cloud.Simple.OneLocationAtATime"
+     *
+     * A rollout with one of these simple strategies will rollout across
+     * all locations defined in the associated UnitKind's Saas Locations.
+     * 
+ * + * string rollout_orchestration_strategy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for rolloutOrchestrationStrategy. + */ + public com.google.protobuf.ByteString getRolloutOrchestrationStrategyBytes() { + java.lang.Object ref = rolloutOrchestrationStrategy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rolloutOrchestrationStrategy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The strategy used for executing a Rollout. This is a required
+     * field.
+     *
+     * There are two supported values strategies which are used to control
+     * - "Google.Cloud.Simple.AllAtOnce"
+     * - "Google.Cloud.Simple.OneLocationAtATime"
+     *
+     * A rollout with one of these simple strategies will rollout across
+     * all locations defined in the associated UnitKind's Saas Locations.
+     * 
+ * + * string rollout_orchestration_strategy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The rolloutOrchestrationStrategy to set. + * @return This builder for chaining. + */ + public Builder setRolloutOrchestrationStrategy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + rolloutOrchestrationStrategy_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The strategy used for executing a Rollout. This is a required
+     * field.
+     *
+     * There are two supported values strategies which are used to control
+     * - "Google.Cloud.Simple.AllAtOnce"
+     * - "Google.Cloud.Simple.OneLocationAtATime"
+     *
+     * A rollout with one of these simple strategies will rollout across
+     * all locations defined in the associated UnitKind's Saas Locations.
+     * 
+ * + * string rollout_orchestration_strategy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearRolloutOrchestrationStrategy() { + rolloutOrchestrationStrategy_ = getDefaultInstance().getRolloutOrchestrationStrategy(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The strategy used for executing a Rollout. This is a required
+     * field.
+     *
+     * There are two supported values strategies which are used to control
+     * - "Google.Cloud.Simple.AllAtOnce"
+     * - "Google.Cloud.Simple.OneLocationAtATime"
+     *
+     * A rollout with one of these simple strategies will rollout across
+     * all locations defined in the associated UnitKind's Saas Locations.
+     * 
+ * + * string rollout_orchestration_strategy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes for rolloutOrchestrationStrategy to set. + * @return This builder for chaining. + */ + public Builder setRolloutOrchestrationStrategyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + rolloutOrchestrationStrategy_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object unitFilter_ = ""; + + /** + * + * + *
+     * Optional. CEL(https://github.com/google/cel-spec) formatted filter string
+     * against Unit. The filter will be applied to determine the eligible unit
+     * population. This filter can only reduce, but not expand the scope of the
+     * rollout.
+     * 
+ * + * string unit_filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The unitFilter. + */ + public java.lang.String getUnitFilter() { + java.lang.Object ref = unitFilter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + unitFilter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. CEL(https://github.com/google/cel-spec) formatted filter string
+     * against Unit. The filter will be applied to determine the eligible unit
+     * population. This filter can only reduce, but not expand the scope of the
+     * rollout.
+     * 
+ * + * string unit_filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for unitFilter. + */ + public com.google.protobuf.ByteString getUnitFilterBytes() { + java.lang.Object ref = unitFilter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + unitFilter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. CEL(https://github.com/google/cel-spec) formatted filter string
+     * against Unit. The filter will be applied to determine the eligible unit
+     * population. This filter can only reduce, but not expand the scope of the
+     * rollout.
+     * 
+ * + * string unit_filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The unitFilter to set. + * @return This builder for chaining. + */ + public Builder setUnitFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + unitFilter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. CEL(https://github.com/google/cel-spec) formatted filter string
+     * against Unit. The filter will be applied to determine the eligible unit
+     * population. This filter can only reduce, but not expand the scope of the
+     * rollout.
+     * 
+ * + * string unit_filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearUnitFilter() { + unitFilter_ = getDefaultInstance().getUnitFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. CEL(https://github.com/google/cel-spec) formatted filter string
+     * against Unit. The filter will be applied to determine the eligible unit
+     * population. This filter can only reduce, but not expand the scope of the
+     * rollout.
+     * 
+ * + * string unit_filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for unitFilter to set. + * @return This builder for chaining. + */ + public Builder setUnitFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + unitFilter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private int updateUnitKindStrategy_ = 0; + + /** + * + * + *
+     * Optional. The config for updating the unit kind. By default, the unit kind
+     * will be updated on the rollout start.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind.UpdateUnitKindStrategy update_unit_kind_strategy = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for updateUnitKindStrategy. + */ + @java.lang.Override + public int getUpdateUnitKindStrategyValue() { + return updateUnitKindStrategy_; + } + + /** + * + * + *
+     * Optional. The config for updating the unit kind. By default, the unit kind
+     * will be updated on the rollout start.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind.UpdateUnitKindStrategy update_unit_kind_strategy = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for updateUnitKindStrategy to set. + * @return This builder for chaining. + */ + public Builder setUpdateUnitKindStrategyValue(int value) { + updateUnitKindStrategy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The config for updating the unit kind. By default, the unit kind
+     * will be updated on the rollout start.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind.UpdateUnitKindStrategy update_unit_kind_strategy = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateUnitKindStrategy. + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind.UpdateUnitKindStrategy + getUpdateUnitKindStrategy() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind.UpdateUnitKindStrategy + result = + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind + .UpdateUnitKindStrategy.forNumber(updateUnitKindStrategy_); + return result == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind.UpdateUnitKindStrategy + .UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Optional. The config for updating the unit kind. By default, the unit kind
+     * will be updated on the rollout start.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind.UpdateUnitKindStrategy update_unit_kind_strategy = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The updateUnitKindStrategy to set. + * @return This builder for chaining. + */ + public Builder setUpdateUnitKindStrategy( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind.UpdateUnitKindStrategy + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + updateUnitKindStrategy_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The config for updating the unit kind. By default, the unit kind
+     * will be updated on the rollout start.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind.UpdateUnitKindStrategy update_unit_kind_strategy = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearUpdateUnitKindStrategy() { + bitField0_ = (bitField0_ & ~0x00000010); + updateUnitKindStrategy_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ErrorBudget errorBudget_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ErrorBudget, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ErrorBudget.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ErrorBudgetOrBuilder> + errorBudgetBuilder_; + + /** + * + * + *
+     * Optional. The configuration for error budget. If the number of failed units
+     * exceeds max(allowed_count, allowed_ratio * total_units), the rollout will
+     * be paused. If not set, all units will be attempted to be updated regardless
+     * of the number of failures encountered.
+     * 
+ * + * + * optional .google.cloud.saasplatform.saasservicemgmt.v1beta1.ErrorBudget error_budget = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the errorBudget field is set. + */ + public boolean hasErrorBudget() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+     * Optional. The configuration for error budget. If the number of failed units
+     * exceeds max(allowed_count, allowed_ratio * total_units), the rollout will
+     * be paused. If not set, all units will be attempted to be updated regardless
+     * of the number of failures encountered.
+     * 
+ * + * + * optional .google.cloud.saasplatform.saasservicemgmt.v1beta1.ErrorBudget error_budget = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The errorBudget. + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ErrorBudget getErrorBudget() { + if (errorBudgetBuilder_ == null) { + return errorBudget_ == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ErrorBudget.getDefaultInstance() + : errorBudget_; + } else { + return errorBudgetBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. The configuration for error budget. If the number of failed units
+     * exceeds max(allowed_count, allowed_ratio * total_units), the rollout will
+     * be paused. If not set, all units will be attempted to be updated regardless
+     * of the number of failures encountered.
+     * 
+ * + * + * optional .google.cloud.saasplatform.saasservicemgmt.v1beta1.ErrorBudget error_budget = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setErrorBudget( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ErrorBudget value) { + if (errorBudgetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + errorBudget_ = value; + } else { + errorBudgetBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The configuration for error budget. If the number of failed units
+     * exceeds max(allowed_count, allowed_ratio * total_units), the rollout will
+     * be paused. If not set, all units will be attempted to be updated regardless
+     * of the number of failures encountered.
+     * 
+ * + * + * optional .google.cloud.saasplatform.saasservicemgmt.v1beta1.ErrorBudget error_budget = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setErrorBudget( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ErrorBudget.Builder builderForValue) { + if (errorBudgetBuilder_ == null) { + errorBudget_ = builderForValue.build(); + } else { + errorBudgetBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The configuration for error budget. If the number of failed units
+     * exceeds max(allowed_count, allowed_ratio * total_units), the rollout will
+     * be paused. If not set, all units will be attempted to be updated regardless
+     * of the number of failures encountered.
+     * 
+ * + * + * optional .google.cloud.saasplatform.saasservicemgmt.v1beta1.ErrorBudget error_budget = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeErrorBudget( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ErrorBudget value) { + if (errorBudgetBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && errorBudget_ != null + && errorBudget_ + != com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ErrorBudget + .getDefaultInstance()) { + getErrorBudgetBuilder().mergeFrom(value); + } else { + errorBudget_ = value; + } + } else { + errorBudgetBuilder_.mergeFrom(value); + } + if (errorBudget_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The configuration for error budget. If the number of failed units
+     * exceeds max(allowed_count, allowed_ratio * total_units), the rollout will
+     * be paused. If not set, all units will be attempted to be updated regardless
+     * of the number of failures encountered.
+     * 
+ * + * + * optional .google.cloud.saasplatform.saasservicemgmt.v1beta1.ErrorBudget error_budget = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearErrorBudget() { + bitField0_ = (bitField0_ & ~0x00000020); + errorBudget_ = null; + if (errorBudgetBuilder_ != null) { + errorBudgetBuilder_.dispose(); + errorBudgetBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The configuration for error budget. If the number of failed units
+     * exceeds max(allowed_count, allowed_ratio * total_units), the rollout will
+     * be paused. If not set, all units will be attempted to be updated regardless
+     * of the number of failures encountered.
+     * 
+ * + * + * optional .google.cloud.saasplatform.saasservicemgmt.v1beta1.ErrorBudget error_budget = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ErrorBudget.Builder + getErrorBudgetBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getErrorBudgetFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The configuration for error budget. If the number of failed units
+     * exceeds max(allowed_count, allowed_ratio * total_units), the rollout will
+     * be paused. If not set, all units will be attempted to be updated regardless
+     * of the number of failures encountered.
+     * 
+ * + * + * optional .google.cloud.saasplatform.saasservicemgmt.v1beta1.ErrorBudget error_budget = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ErrorBudgetOrBuilder + getErrorBudgetOrBuilder() { + if (errorBudgetBuilder_ != null) { + return errorBudgetBuilder_.getMessageOrBuilder(); + } else { + return errorBudget_ == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ErrorBudget.getDefaultInstance() + : errorBudget_; + } + } + + /** + * + * + *
+     * Optional. The configuration for error budget. If the number of failed units
+     * exceeds max(allowed_count, allowed_ratio * total_units), the rollout will
+     * be paused. If not set, all units will be attempted to be updated regardless
+     * of the number of failures encountered.
+     * 
+ * + * + * optional .google.cloud.saasplatform.saasservicemgmt.v1beta1.ErrorBudget error_budget = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ErrorBudget, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ErrorBudget.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ErrorBudgetOrBuilder> + getErrorBudgetFieldBuilder() { + if (errorBudgetBuilder_ == null) { + errorBudgetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ErrorBudget, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ErrorBudget.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ErrorBudgetOrBuilder>( + getErrorBudget(), getParentForChildren(), isClean()); + errorBudget_ = null; + } + return errorBudgetBuilder_; + } + + 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() { + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + bitField0_ |= 0x00000040; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
+     * Optional. The labels on the resource, which can be used for categorization.
+     * similar to Kubernetes resource labels.
+     * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** + * + * + *
+     * Optional. The labels on the resource, which can be used for categorization.
+     * similar to Kubernetes resource labels.
+     * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
+     * Optional. The labels on the resource, which can be used for categorization.
+     * similar to Kubernetes resource labels.
+     * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+     * Optional. The labels on the resource, which can be used for categorization.
+     * similar to Kubernetes resource labels.
+     * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000040); + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + + /** + * + * + *
+     * Optional. The labels on the resource, which can be used for categorization.
+     * similar to Kubernetes resource labels.
+     * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000040; + return internalGetMutableLabels().getMutableMap(); + } + + /** + * + * + *
+     * Optional. The labels on the resource, which can be used for categorization.
+     * similar to Kubernetes resource labels.
+     * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000040; + return this; + } + + /** + * + * + *
+     * Optional. The labels on the resource, which can be used for categorization.
+     * similar to Kubernetes resource labels.
+     * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000040; + return this; + } + + private com.google.protobuf.MapField annotations_; + + private com.google.protobuf.MapField + internalGetAnnotations() { + if (annotations_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AnnotationsDefaultEntryHolder.defaultEntry); + } + return annotations_; + } + + private com.google.protobuf.MapField + internalGetMutableAnnotations() { + if (annotations_ == null) { + annotations_ = + com.google.protobuf.MapField.newMapField(AnnotationsDefaultEntryHolder.defaultEntry); + } + if (!annotations_.isMutable()) { + annotations_ = annotations_.copy(); + } + bitField0_ |= 0x00000080; + onChanged(); + return annotations_; + } + + public int getAnnotationsCount() { + return internalGetAnnotations().getMap().size(); + } + + /** + * + * + *
+     * Optional. Annotations is an unstructured key-value map stored with a
+     * resource that may be set by external tools to store and retrieve arbitrary
+     * metadata. They are not queryable and should be preserved when modifying
+     * objects.
+     *
+     * More info: https://kubernetes.io/docs/user-guide/annotations
+     * 
+ * + * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetAnnotations().getMap().containsKey(key); + } + + /** Use {@link #getAnnotationsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getAnnotations() { + return getAnnotationsMap(); + } + + /** + * + * + *
+     * Optional. Annotations is an unstructured key-value map stored with a
+     * resource that may be set by external tools to store and retrieve arbitrary
+     * metadata. They are not queryable and should be preserved when modifying
+     * objects.
+     *
+     * More info: https://kubernetes.io/docs/user-guide/annotations
+     * 
+ * + * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getAnnotationsMap() { + return internalGetAnnotations().getMap(); + } + + /** + * + * + *
+     * Optional. Annotations is an unstructured key-value map stored with a
+     * resource that may be set by external tools to store and retrieve arbitrary
+     * metadata. They are not queryable and should be preserved when modifying
+     * objects.
+     *
+     * More info: https://kubernetes.io/docs/user-guide/annotations
+     * 
+ * + * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getAnnotationsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+     * Optional. Annotations is an unstructured key-value map stored with a
+     * resource that may be set by external tools to store and retrieve arbitrary
+     * metadata. They are not queryable and should be preserved when modifying
+     * objects.
+     *
+     * More info: https://kubernetes.io/docs/user-guide/annotations
+     * 
+ * + * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearAnnotations() { + bitField0_ = (bitField0_ & ~0x00000080); + internalGetMutableAnnotations().getMutableMap().clear(); + return this; + } + + /** + * + * + *
+     * Optional. Annotations is an unstructured key-value map stored with a
+     * resource that may be set by external tools to store and retrieve arbitrary
+     * metadata. They are not queryable and should be preserved when modifying
+     * objects.
+     *
+     * More info: https://kubernetes.io/docs/user-guide/annotations
+     * 
+ * + * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableAnnotations().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableAnnotations() { + bitField0_ |= 0x00000080; + return internalGetMutableAnnotations().getMutableMap(); + } + + /** + * + * + *
+     * Optional. Annotations is an unstructured key-value map stored with a
+     * resource that may be set by external tools to store and retrieve arbitrary
+     * metadata. They are not queryable and should be preserved when modifying
+     * objects.
+     *
+     * More info: https://kubernetes.io/docs/user-guide/annotations
+     * 
+ * + * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAnnotations(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableAnnotations().getMutableMap().put(key, value); + bitField0_ |= 0x00000080; + return this; + } + + /** + * + * + *
+     * Optional. Annotations is an unstructured key-value map stored with a
+     * resource that may be set by external tools to store and retrieve arbitrary
+     * metadata. They are not queryable and should be preserved when modifying
+     * objects.
+     *
+     * More info: https://kubernetes.io/docs/user-guide/annotations
+     * 
+ * + * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllAnnotations(java.util.Map values) { + internalGetMutableAnnotations().getMutableMap().putAll(values); + bitField0_ |= 0x00000080; + return this; + } + + private java.lang.Object uid_ = ""; + + /** + * + * + *
+     * Output only. The unique identifier of the resource. UID is unique in the
+     * time and space for this resource within the scope of the service. It is
+     * typically generated by the server on successful creation of a resource
+     * and must not be changed. UID is used to uniquely identify resources
+     * with resource name reuses. This should be a UUID4.
+     * 
+ * + * + * string uid = 10201 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The uid. + */ + public java.lang.String getUid() { + java.lang.Object ref = uid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The unique identifier of the resource. UID is unique in the
+     * time and space for this resource within the scope of the service. It is
+     * typically generated by the server on successful creation of a resource
+     * and must not be changed. UID is used to uniquely identify resources
+     * with resource name reuses. This should be a UUID4.
+     * 
+ * + * + * string uid = 10201 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The bytes for uid. + */ + public com.google.protobuf.ByteString getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The unique identifier of the resource. UID is unique in the
+     * time and space for this resource within the scope of the service. It is
+     * typically generated by the server on successful creation of a resource
+     * and must not be changed. UID is used to uniquely identify resources
+     * with resource name reuses. This should be a UUID4.
+     * 
+ * + * + * string uid = 10201 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @param value The uid to set. + * @return This builder for chaining. + */ + public Builder setUid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uid_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The unique identifier of the resource. UID is unique in the
+     * time and space for this resource within the scope of the service. It is
+     * typically generated by the server on successful creation of a resource
+     * and must not be changed. UID is used to uniquely identify resources
+     * with resource name reuses. This should be a UUID4.
+     * 
+ * + * + * string uid = 10201 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearUid() { + uid_ = getDefaultInstance().getUid(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The unique identifier of the resource. UID is unique in the
+     * time and space for this resource within the scope of the service. It is
+     * typically generated by the server on successful creation of a resource
+     * and must not be changed. UID is used to uniquely identify resources
+     * with resource name reuses. This should be a UUID4.
+     * 
+ * + * + * string uid = 10201 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for uid to set. + * @return This builder for chaining. + */ + public Builder setUidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uid_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + private java.lang.Object etag_ = ""; + + /** + * + * + *
+     * Output only. An opaque value that uniquely identifies a version or
+     * generation of a resource. It can be used to confirm that the client
+     * and server agree on the ordering of a resource being written.
+     * 
+ * + * string etag = 10202 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+     * Output only. An opaque value that uniquely identifies a version or
+     * generation of a resource. It can be used to confirm that the client
+     * and server agree on the ordering of a resource being written.
+     * 
+ * + * string etag = 10202 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+     * Output only. An opaque value that uniquely identifies a version or
+     * generation of a resource. It can be used to confirm that the client
+     * and server agree on the ordering of a resource being written.
+     * 
+ * + * string etag = 10202 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. An opaque value that uniquely identifies a version or
+     * generation of a resource. It can be used to confirm that the client
+     * and server agree on the ordering of a resource being written.
+     * 
+ * + * string etag = 10202 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. An opaque value that uniquely identifies a version or
+     * generation of a resource. It can be used to confirm that the client
+     * and server agree on the ordering of a resource being written.
+     * 
+ * + * string etag = 10202 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + bitField0_ |= 0x00000200; + 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 timestamp when the resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000400) != 0); + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.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 timestamp when the resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.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; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000400; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000400); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000400; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.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 timestamp when the resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.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 timestamp when the resource was last updated. Any
+     * change to the resource made by users must refresh this value.
+     * Changes to a resource made by the service should refresh this value.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000800) != 0); + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was last updated. Any
+     * change to the resource made by users must refresh this value.
+     * Changes to a resource made by the service should refresh this value.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.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 timestamp when the resource was last updated. Any
+     * change to the resource made by users must refresh this value.
+     * Changes to a resource made by the service should refresh this value.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.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; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was last updated. Any
+     * change to the resource made by users must refresh this value.
+     * Changes to a resource made by the service should refresh this value.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was last updated. Any
+     * change to the resource made by users must refresh this value.
+     * Changes to a resource made by the service should refresh this value.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000800) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000800; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was last updated. Any
+     * change to the resource made by users must refresh this value.
+     * Changes to a resource made by the service should refresh this value.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000800); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was last updated. Any
+     * change to the resource made by users must refresh this value.
+     * Changes to a resource made by the service should refresh this value.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000800; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was last updated. Any
+     * change to the resource made by users must refresh this value.
+     * Changes to a resource made by the service should refresh this value.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.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 timestamp when the resource was last updated. Any
+     * change to the resource made by users must refresh this value.
+     * Changes to a resource made by the service should refresh this value.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.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_; + } + + @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.saasplatform.saasservicemgmt.v1beta1.RolloutKind) + } + + // @@protoc_insertion_point(class_scope:google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind) + private static final com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind(); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RolloutKind parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.saasplatform.saasservicemgmt.v1beta1.RolloutKind + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/RolloutKindName.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/RolloutKindName.java new file mode 100644 index 000000000000..467d9059e96b --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/RolloutKindName.java @@ -0,0 +1,227 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1; + +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; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class RolloutKindName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_ROLLOUT_KIND_ID = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/rolloutKinds/{rollout_kind_id}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String rolloutKindId; + + @Deprecated + protected RolloutKindName() { + project = null; + location = null; + rolloutKindId = null; + } + + private RolloutKindName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + rolloutKindId = Preconditions.checkNotNull(builder.getRolloutKindId()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getRolloutKindId() { + return rolloutKindId; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static RolloutKindName of(String project, String location, String rolloutKindId) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setRolloutKindId(rolloutKindId) + .build(); + } + + public static String format(String project, String location, String rolloutKindId) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setRolloutKindId(rolloutKindId) + .build() + .toString(); + } + + public static RolloutKindName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_ROLLOUT_KIND_ID.validatedMatch( + formattedString, "RolloutKindName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("rollout_kind_id")); + } + + 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 (RolloutKindName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_ROLLOUT_KIND_ID.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (rolloutKindId != null) { + fieldMapBuilder.put("rollout_kind_id", rolloutKindId); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_ROLLOUT_KIND_ID.instantiate( + "project", project, "location", location, "rollout_kind_id", rolloutKindId); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + RolloutKindName that = ((RolloutKindName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.rolloutKindId, that.rolloutKindId); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(rolloutKindId); + return h; + } + + /** Builder for projects/{project}/locations/{location}/rolloutKinds/{rollout_kind_id}. */ + public static class Builder { + private String project; + private String location; + private String rolloutKindId; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getRolloutKindId() { + return rolloutKindId; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setRolloutKindId(String rolloutKindId) { + this.rolloutKindId = rolloutKindId; + return this; + } + + private Builder(RolloutKindName rolloutKindName) { + this.project = rolloutKindName.project; + this.location = rolloutKindName.location; + this.rolloutKindId = rolloutKindName.rolloutKindId; + } + + public RolloutKindName build() { + return new RolloutKindName(this); + } + } +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/RolloutKindOrBuilder.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/RolloutKindOrBuilder.java new file mode 100644 index 000000000000..17c5722dfc21 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/RolloutKindOrBuilder.java @@ -0,0 +1,582 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/rollouts_resources.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +public interface RolloutKindOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Identifier. The resource name (full URI of the resource) following the
+   * standard naming scheme:
+   *
+   *   "projects/{project}/locations/{location}/rolloutKinds/{rollout_kind_id}"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Identifier. The resource name (full URI of the resource) following the
+   * standard naming scheme:
+   *
+   *   "projects/{project}/locations/{location}/rolloutKinds/{rollout_kind_id}"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. Immutable. UnitKind that this rollout kind corresponds to.
+   * Rollouts stemming from this rollout kind will target the units of this unit
+   * kind. In other words, this defines the population of target units to be
+   * upgraded by rollouts.
+   * 
+ * + * + * string unit_kind = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The unitKind. + */ + java.lang.String getUnitKind(); + + /** + * + * + *
+   * Required. Immutable. UnitKind that this rollout kind corresponds to.
+   * Rollouts stemming from this rollout kind will target the units of this unit
+   * kind. In other words, this defines the population of target units to be
+   * upgraded by rollouts.
+   * 
+ * + * + * string unit_kind = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for unitKind. + */ + com.google.protobuf.ByteString getUnitKindBytes(); + + /** + * + * + *
+   * Optional. The strategy used for executing a Rollout. This is a required
+   * field.
+   *
+   * There are two supported values strategies which are used to control
+   * - "Google.Cloud.Simple.AllAtOnce"
+   * - "Google.Cloud.Simple.OneLocationAtATime"
+   *
+   * A rollout with one of these simple strategies will rollout across
+   * all locations defined in the associated UnitKind's Saas Locations.
+   * 
+ * + * string rollout_orchestration_strategy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The rolloutOrchestrationStrategy. + */ + java.lang.String getRolloutOrchestrationStrategy(); + + /** + * + * + *
+   * Optional. The strategy used for executing a Rollout. This is a required
+   * field.
+   *
+   * There are two supported values strategies which are used to control
+   * - "Google.Cloud.Simple.AllAtOnce"
+   * - "Google.Cloud.Simple.OneLocationAtATime"
+   *
+   * A rollout with one of these simple strategies will rollout across
+   * all locations defined in the associated UnitKind's Saas Locations.
+   * 
+ * + * string rollout_orchestration_strategy = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for rolloutOrchestrationStrategy. + */ + com.google.protobuf.ByteString getRolloutOrchestrationStrategyBytes(); + + /** + * + * + *
+   * Optional. CEL(https://github.com/google/cel-spec) formatted filter string
+   * against Unit. The filter will be applied to determine the eligible unit
+   * population. This filter can only reduce, but not expand the scope of the
+   * rollout.
+   * 
+ * + * string unit_filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The unitFilter. + */ + java.lang.String getUnitFilter(); + + /** + * + * + *
+   * Optional. CEL(https://github.com/google/cel-spec) formatted filter string
+   * against Unit. The filter will be applied to determine the eligible unit
+   * population. This filter can only reduce, but not expand the scope of the
+   * rollout.
+   * 
+ * + * string unit_filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for unitFilter. + */ + com.google.protobuf.ByteString getUnitFilterBytes(); + + /** + * + * + *
+   * Optional. The config for updating the unit kind. By default, the unit kind
+   * will be updated on the rollout start.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind.UpdateUnitKindStrategy update_unit_kind_strategy = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for updateUnitKindStrategy. + */ + int getUpdateUnitKindStrategyValue(); + + /** + * + * + *
+   * Optional. The config for updating the unit kind. By default, the unit kind
+   * will be updated on the rollout start.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind.UpdateUnitKindStrategy update_unit_kind_strategy = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateUnitKindStrategy. + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind.UpdateUnitKindStrategy + getUpdateUnitKindStrategy(); + + /** + * + * + *
+   * Optional. The configuration for error budget. If the number of failed units
+   * exceeds max(allowed_count, allowed_ratio * total_units), the rollout will
+   * be paused. If not set, all units will be attempted to be updated regardless
+   * of the number of failures encountered.
+   * 
+ * + * + * optional .google.cloud.saasplatform.saasservicemgmt.v1beta1.ErrorBudget error_budget = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the errorBudget field is set. + */ + boolean hasErrorBudget(); + + /** + * + * + *
+   * Optional. The configuration for error budget. If the number of failed units
+   * exceeds max(allowed_count, allowed_ratio * total_units), the rollout will
+   * be paused. If not set, all units will be attempted to be updated regardless
+   * of the number of failures encountered.
+   * 
+ * + * + * optional .google.cloud.saasplatform.saasservicemgmt.v1beta1.ErrorBudget error_budget = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The errorBudget. + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ErrorBudget getErrorBudget(); + + /** + * + * + *
+   * Optional. The configuration for error budget. If the number of failed units
+   * exceeds max(allowed_count, allowed_ratio * total_units), the rollout will
+   * be paused. If not set, all units will be attempted to be updated regardless
+   * of the number of failures encountered.
+   * 
+ * + * + * optional .google.cloud.saasplatform.saasservicemgmt.v1beta1.ErrorBudget error_budget = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ErrorBudgetOrBuilder + getErrorBudgetOrBuilder(); + + /** + * + * + *
+   * Optional. The labels on the resource, which can be used for categorization.
+   * similar to Kubernetes resource labels.
+   * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getLabelsCount(); + + /** + * + * + *
+   * Optional. The labels on the resource, which can be used for categorization.
+   * similar to Kubernetes resource labels.
+   * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsLabels(java.lang.String key); + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + + /** + * + * + *
+   * Optional. The labels on the resource, which can be used for categorization.
+   * similar to Kubernetes resource labels.
+   * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map getLabelsMap(); + + /** + * + * + *
+   * Optional. The labels on the resource, which can be used for categorization.
+   * similar to Kubernetes resource labels.
+   * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
+   * Optional. The labels on the resource, which can be used for categorization.
+   * similar to Kubernetes resource labels.
+   * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
+   * Optional. Annotations is an unstructured key-value map stored with a
+   * resource that may be set by external tools to store and retrieve arbitrary
+   * metadata. They are not queryable and should be preserved when modifying
+   * objects.
+   *
+   * More info: https://kubernetes.io/docs/user-guide/annotations
+   * 
+ * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getAnnotationsCount(); + + /** + * + * + *
+   * Optional. Annotations is an unstructured key-value map stored with a
+   * resource that may be set by external tools to store and retrieve arbitrary
+   * metadata. They are not queryable and should be preserved when modifying
+   * objects.
+   *
+   * More info: https://kubernetes.io/docs/user-guide/annotations
+   * 
+ * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsAnnotations(java.lang.String key); + + /** Use {@link #getAnnotationsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getAnnotations(); + + /** + * + * + *
+   * Optional. Annotations is an unstructured key-value map stored with a
+   * resource that may be set by external tools to store and retrieve arbitrary
+   * metadata. They are not queryable and should be preserved when modifying
+   * objects.
+   *
+   * More info: https://kubernetes.io/docs/user-guide/annotations
+   * 
+ * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map getAnnotationsMap(); + + /** + * + * + *
+   * Optional. Annotations is an unstructured key-value map stored with a
+   * resource that may be set by external tools to store and retrieve arbitrary
+   * metadata. They are not queryable and should be preserved when modifying
+   * objects.
+   *
+   * More info: https://kubernetes.io/docs/user-guide/annotations
+   * 
+ * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + java.lang.String getAnnotationsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
+   * Optional. Annotations is an unstructured key-value map stored with a
+   * resource that may be set by external tools to store and retrieve arbitrary
+   * metadata. They are not queryable and should be preserved when modifying
+   * objects.
+   *
+   * More info: https://kubernetes.io/docs/user-guide/annotations
+   * 
+ * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.lang.String getAnnotationsOrThrow(java.lang.String key); + + /** + * + * + *
+   * Output only. The unique identifier of the resource. UID is unique in the
+   * time and space for this resource within the scope of the service. It is
+   * typically generated by the server on successful creation of a resource
+   * and must not be changed. UID is used to uniquely identify resources
+   * with resource name reuses. This should be a UUID4.
+   * 
+ * + * + * string uid = 10201 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The uid. + */ + java.lang.String getUid(); + + /** + * + * + *
+   * Output only. The unique identifier of the resource. UID is unique in the
+   * time and space for this resource within the scope of the service. It is
+   * typically generated by the server on successful creation of a resource
+   * and must not be changed. UID is used to uniquely identify resources
+   * with resource name reuses. This should be a UUID4.
+   * 
+ * + * + * string uid = 10201 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The bytes for uid. + */ + com.google.protobuf.ByteString getUidBytes(); + + /** + * + * + *
+   * Output only. An opaque value that uniquely identifies a version or
+   * generation of a resource. It can be used to confirm that the client
+   * and server agree on the ordering of a resource being written.
+   * 
+ * + * string etag = 10202 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The etag. + */ + java.lang.String getEtag(); + + /** + * + * + *
+   * Output only. An opaque value that uniquely identifies a version or
+   * generation of a resource. It can be used to confirm that the client
+   * and server agree on the ordering of a resource being written.
+   * 
+ * + * string etag = 10202 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); + + /** + * + * + *
+   * Output only. The timestamp when the resource was created.
+   * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
+   * Output only. The timestamp when the resource was created.
+   * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
+   * Output only. The timestamp when the resource was created.
+   * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. The timestamp when the resource was last updated. Any
+   * change to the resource made by users must refresh this value.
+   * Changes to a resource made by the service should refresh this value.
+   * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
+   * Output only. The timestamp when the resource was last updated. Any
+   * change to the resource made by users must refresh this value.
+   * Changes to a resource made by the service should refresh this value.
+   * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
+   * Output only. The timestamp when the resource was last updated. Any
+   * change to the resource made by users must refresh this value.
+   * Changes to a resource made by the service should refresh this value.
+   * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/RolloutName.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/RolloutName.java new file mode 100644 index 000000000000..b5d4c54abcb0 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/RolloutName.java @@ -0,0 +1,223 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1; + +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; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class RolloutName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_ROLLOUT_ID = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/rollouts/{rollout_id}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String rolloutId; + + @Deprecated + protected RolloutName() { + project = null; + location = null; + rolloutId = null; + } + + private RolloutName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + rolloutId = Preconditions.checkNotNull(builder.getRolloutId()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getRolloutId() { + return rolloutId; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static RolloutName of(String project, String location, String rolloutId) { + return newBuilder().setProject(project).setLocation(location).setRolloutId(rolloutId).build(); + } + + public static String format(String project, String location, String rolloutId) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setRolloutId(rolloutId) + .build() + .toString(); + } + + public static RolloutName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_ROLLOUT_ID.validatedMatch( + formattedString, "RolloutName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("rollout_id")); + } + + 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 (RolloutName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_ROLLOUT_ID.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (rolloutId != null) { + fieldMapBuilder.put("rollout_id", rolloutId); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_ROLLOUT_ID.instantiate( + "project", project, "location", location, "rollout_id", rolloutId); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + RolloutName that = ((RolloutName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.rolloutId, that.rolloutId); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(rolloutId); + return h; + } + + /** Builder for projects/{project}/locations/{location}/rollouts/{rollout_id}. */ + public static class Builder { + private String project; + private String location; + private String rolloutId; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getRolloutId() { + return rolloutId; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setRolloutId(String rolloutId) { + this.rolloutId = rolloutId; + return this; + } + + private Builder(RolloutName rolloutName) { + this.project = rolloutName.project; + this.location = rolloutName.location; + this.rolloutId = rolloutName.rolloutId; + } + + public RolloutName build() { + return new RolloutName(this); + } + } +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/RolloutOrBuilder.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/RolloutOrBuilder.java new file mode 100644 index 000000000000..26d0a399f278 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/RolloutOrBuilder.java @@ -0,0 +1,910 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/rollouts_resources.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +public interface RolloutOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Identifier. The resource name (full URI of the resource) following the
+   * standard naming scheme:
+   *
+   *   "projects/{project}/locations/{location}/rollout/{rollout_id}"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Identifier. The resource name (full URI of the resource) following the
+   * standard naming scheme:
+   *
+   *   "projects/{project}/locations/{location}/rollout/{rollout_id}"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. Immutable. Name of the Release that gets rolled out to target
+   * Units. Required if no other type of release is specified.
+   * 
+ * + * + * string release = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The release. + */ + java.lang.String getRelease(); + + /** + * + * + *
+   * Optional. Immutable. Name of the Release that gets rolled out to target
+   * Units. Required if no other type of release is specified.
+   * 
+ * + * + * string release = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for release. + */ + com.google.protobuf.ByteString getReleaseBytes(); + + /** + * + * + *
+   * Optional. Output only. The time when the rollout started executing. Will be
+   * empty if the rollout hasn't started yet.
+   * 
+ * + * + * .google.protobuf.Timestamp start_time = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the startTime field is set. + */ + boolean hasStartTime(); + + /** + * + * + *
+   * Optional. Output only. The time when the rollout started executing. Will be
+   * empty if the rollout hasn't started yet.
+   * 
+ * + * + * .google.protobuf.Timestamp start_time = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The startTime. + */ + com.google.protobuf.Timestamp getStartTime(); + + /** + * + * + *
+   * Optional. Output only. The time when the rollout started executing. Will be
+   * empty if the rollout hasn't started yet.
+   * 
+ * + * + * .google.protobuf.Timestamp start_time = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); + + /** + * + * + *
+   * Optional. Output only. The time when the rollout finished execution
+   * (regardless of  success, failure, or cancellation). Will be empty if the
+   * rollout hasn't finished yet. Once set, the rollout is in terminal state and
+   * all the results are final.
+   * 
+ * + * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + boolean hasEndTime(); + + /** + * + * + *
+   * Optional. Output only. The time when the rollout finished execution
+   * (regardless of  success, failure, or cancellation). Will be empty if the
+   * rollout hasn't finished yet. Once set, the rollout is in terminal state and
+   * all the results are final.
+   * 
+ * + * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + com.google.protobuf.Timestamp getEndTime(); + + /** + * + * + *
+   * Optional. Output only. The time when the rollout finished execution
+   * (regardless of  success, failure, or cancellation). Will be empty if the
+   * rollout hasn't finished yet. Once set, the rollout is in terminal state and
+   * all the results are final.
+   * 
+ * + * + * .google.protobuf.Timestamp end_time = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Current state of the rollout.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout.RolloutState state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
+   * Output only. Current state of the rollout.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout.RolloutState state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout.RolloutState getState(); + + /** + * + * + *
+   * Output only. Human readable message indicating details about the last state
+   * transition.
+   * 
+ * + * string state_message = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The stateMessage. + */ + java.lang.String getStateMessage(); + + /** + * + * + *
+   * Output only. Human readable message indicating details about the last state
+   * transition.
+   * 
+ * + * string state_message = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for stateMessage. + */ + com.google.protobuf.ByteString getStateMessageBytes(); + + /** + * + * + *
+   * Optional. Output only. The time when the rollout transitioned into its
+   * current state.
+   * 
+ * + * + * .google.protobuf.Timestamp state_transition_time = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the stateTransitionTime field is set. + */ + boolean hasStateTransitionTime(); + + /** + * + * + *
+   * Optional. Output only. The time when the rollout transitioned into its
+   * current state.
+   * 
+ * + * + * .google.protobuf.Timestamp state_transition_time = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The stateTransitionTime. + */ + com.google.protobuf.Timestamp getStateTransitionTime(); + + /** + * + * + *
+   * Optional. Output only. The time when the rollout transitioned into its
+   * current state.
+   * 
+ * + * + * .google.protobuf.Timestamp state_transition_time = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getStateTransitionTimeOrBuilder(); + + /** + * + * + *
+   * Optional. Output only. The root rollout that this rollout is stemming from.
+   * The resource name (full URI of the resource) following the standard naming
+   * scheme:
+   *
+   *   "projects/{project}/locations/{location}/rollouts/{rollout_id}"
+   * 
+ * + * + * string root_rollout = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The rootRollout. + */ + java.lang.String getRootRollout(); + + /** + * + * + *
+   * Optional. Output only. The root rollout that this rollout is stemming from.
+   * The resource name (full URI of the resource) following the standard naming
+   * scheme:
+   *
+   *   "projects/{project}/locations/{location}/rollouts/{rollout_id}"
+   * 
+ * + * + * string root_rollout = 16 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for rootRollout. + */ + com.google.protobuf.ByteString getRootRolloutBytes(); + + /** + * + * + *
+   * Optional. Output only. The direct parent rollout that this rollout is
+   * stemming from. The resource name (full URI of the resource) following the
+   * standard naming scheme:
+   *
+   *   "projects/{project}/locations/{location}/rollouts/{rollout_id}"
+   * 
+ * + * + * string parent_rollout = 17 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The parentRollout. + */ + java.lang.String getParentRollout(); + + /** + * + * + *
+   * Optional. Output only. The direct parent rollout that this rollout is
+   * stemming from. The resource name (full URI of the resource) following the
+   * standard naming scheme:
+   *
+   *   "projects/{project}/locations/{location}/rollouts/{rollout_id}"
+   * 
+ * + * + * string parent_rollout = 17 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parentRollout. + */ + com.google.protobuf.ByteString getParentRolloutBytes(); + + /** + * + * + *
+   * Optional. The strategy used for executing this Rollout.
+   * This strategy will override whatever strategy is specified in the
+   * RolloutType. If not specified on creation, the
+   * strategy from RolloutType will be used.
+   *
+   * There are two supported values strategies which are used to control
+   * - "Google.Cloud.Simple.AllAtOnce"
+   * - "Google.Cloud.Simple.OneLocationAtATime"
+   *
+   * A rollout with one of these simple strategies will rollout across
+   * all locations defined in the targeted UnitKind's Saas Locations.
+   * 
+ * + * string rollout_orchestration_strategy = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The rolloutOrchestrationStrategy. + */ + java.lang.String getRolloutOrchestrationStrategy(); + + /** + * + * + *
+   * Optional. The strategy used for executing this Rollout.
+   * This strategy will override whatever strategy is specified in the
+   * RolloutType. If not specified on creation, the
+   * strategy from RolloutType will be used.
+   *
+   * There are two supported values strategies which are used to control
+   * - "Google.Cloud.Simple.AllAtOnce"
+   * - "Google.Cloud.Simple.OneLocationAtATime"
+   *
+   * A rollout with one of these simple strategies will rollout across
+   * all locations defined in the targeted UnitKind's Saas Locations.
+   * 
+ * + * string rollout_orchestration_strategy = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for rolloutOrchestrationStrategy. + */ + com.google.protobuf.ByteString getRolloutOrchestrationStrategyBytes(); + + /** + * + * + *
+   * Optional. CEL(https://github.com/google/cel-spec) formatted filter string
+   * against Unit. The filter will be applied to determine the eligible unit
+   * population. This filter can only reduce, but not expand the scope of the
+   * rollout. If not provided, the unit_filter from the RolloutType will be
+   * used.
+   * 
+ * + * string unit_filter = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The unitFilter. + */ + java.lang.String getUnitFilter(); + + /** + * + * + *
+   * Optional. CEL(https://github.com/google/cel-spec) formatted filter string
+   * against Unit. The filter will be applied to determine the eligible unit
+   * population. This filter can only reduce, but not expand the scope of the
+   * rollout. If not provided, the unit_filter from the RolloutType will be
+   * used.
+   * 
+ * + * string unit_filter = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for unitFilter. + */ + com.google.protobuf.ByteString getUnitFilterBytes(); + + /** + * + * + *
+   * Optional. Immutable. Name of the RolloutKind this rollout is stemming from
+   * and adhering to.
+   * 
+ * + * + * string rollout_kind = 22 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The rolloutKind. + */ + java.lang.String getRolloutKind(); + + /** + * + * + *
+   * Optional. Immutable. Name of the RolloutKind this rollout is stemming from
+   * and adhering to.
+   * 
+ * + * + * string rollout_kind = 22 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for rolloutKind. + */ + com.google.protobuf.ByteString getRolloutKindBytes(); + + /** + * + * + *
+   * Optional. Output only. Details about the progress of the rollout.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutStats stats = 24 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the stats field is set. + */ + boolean hasStats(); + + /** + * + * + *
+   * Optional. Output only. Details about the progress of the rollout.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutStats stats = 24 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The stats. + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutStats getStats(); + + /** + * + * + *
+   * Optional. Output only. Details about the progress of the rollout.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutStats stats = 24 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutStatsOrBuilder getStatsOrBuilder(); + + /** + * + * + *
+   * Optional. Requested change to the execution of this rollout.
+   * Default RolloutControl.action is ROLLOUT_ACTION_RUN meaning
+   * the rollout will be executed to completion while progressing through
+   * all natural Rollout States (such as RUNNING -> SUCCEEDED or RUNNING ->
+   * FAILED). Requests can only be made when the Rollout is in a non-terminal
+   * state.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl control = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the control field is set. + */ + boolean hasControl(); + + /** + * + * + *
+   * Optional. Requested change to the execution of this rollout.
+   * Default RolloutControl.action is ROLLOUT_ACTION_RUN meaning
+   * the rollout will be executed to completion while progressing through
+   * all natural Rollout States (such as RUNNING -> SUCCEEDED or RUNNING ->
+   * FAILED). Requests can only be made when the Rollout is in a non-terminal
+   * state.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl control = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The control. + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl getControl(); + + /** + * + * + *
+   * Optional. Requested change to the execution of this rollout.
+   * Default RolloutControl.action is ROLLOUT_ACTION_RUN meaning
+   * the rollout will be executed to completion while progressing through
+   * all natural Rollout States (such as RUNNING -> SUCCEEDED or RUNNING ->
+   * FAILED). Requests can only be made when the Rollout is in a non-terminal
+   * state.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControl control = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControlOrBuilder + getControlOrBuilder(); + + /** + * + * + *
+   * Optional. The labels on the resource, which can be used for categorization.
+   * similar to Kubernetes resource labels.
+   * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getLabelsCount(); + + /** + * + * + *
+   * Optional. The labels on the resource, which can be used for categorization.
+   * similar to Kubernetes resource labels.
+   * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsLabels(java.lang.String key); + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + + /** + * + * + *
+   * Optional. The labels on the resource, which can be used for categorization.
+   * similar to Kubernetes resource labels.
+   * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map getLabelsMap(); + + /** + * + * + *
+   * Optional. The labels on the resource, which can be used for categorization.
+   * similar to Kubernetes resource labels.
+   * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
+   * Optional. The labels on the resource, which can be used for categorization.
+   * similar to Kubernetes resource labels.
+   * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
+   * Optional. Annotations is an unstructured key-value map stored with a
+   * resource that may be set by external tools to store and retrieve arbitrary
+   * metadata. They are not queryable and should be preserved when modifying
+   * objects.
+   *
+   * More info: https://kubernetes.io/docs/user-guide/annotations
+   * 
+ * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getAnnotationsCount(); + + /** + * + * + *
+   * Optional. Annotations is an unstructured key-value map stored with a
+   * resource that may be set by external tools to store and retrieve arbitrary
+   * metadata. They are not queryable and should be preserved when modifying
+   * objects.
+   *
+   * More info: https://kubernetes.io/docs/user-guide/annotations
+   * 
+ * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsAnnotations(java.lang.String key); + + /** Use {@link #getAnnotationsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getAnnotations(); + + /** + * + * + *
+   * Optional. Annotations is an unstructured key-value map stored with a
+   * resource that may be set by external tools to store and retrieve arbitrary
+   * metadata. They are not queryable and should be preserved when modifying
+   * objects.
+   *
+   * More info: https://kubernetes.io/docs/user-guide/annotations
+   * 
+ * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map getAnnotationsMap(); + + /** + * + * + *
+   * Optional. Annotations is an unstructured key-value map stored with a
+   * resource that may be set by external tools to store and retrieve arbitrary
+   * metadata. They are not queryable and should be preserved when modifying
+   * objects.
+   *
+   * More info: https://kubernetes.io/docs/user-guide/annotations
+   * 
+ * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + java.lang.String getAnnotationsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
+   * Optional. Annotations is an unstructured key-value map stored with a
+   * resource that may be set by external tools to store and retrieve arbitrary
+   * metadata. They are not queryable and should be preserved when modifying
+   * objects.
+   *
+   * More info: https://kubernetes.io/docs/user-guide/annotations
+   * 
+ * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.lang.String getAnnotationsOrThrow(java.lang.String key); + + /** + * + * + *
+   * Output only. The unique identifier of the resource. UID is unique in the
+   * time and space for this resource within the scope of the service. It is
+   * typically generated by the server on successful creation of a resource
+   * and must not be changed. UID is used to uniquely identify resources
+   * with resource name reuses. This should be a UUID4.
+   * 
+ * + * + * string uid = 10201 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The uid. + */ + java.lang.String getUid(); + + /** + * + * + *
+   * Output only. The unique identifier of the resource. UID is unique in the
+   * time and space for this resource within the scope of the service. It is
+   * typically generated by the server on successful creation of a resource
+   * and must not be changed. UID is used to uniquely identify resources
+   * with resource name reuses. This should be a UUID4.
+   * 
+ * + * + * string uid = 10201 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The bytes for uid. + */ + com.google.protobuf.ByteString getUidBytes(); + + /** + * + * + *
+   * Output only. An opaque value that uniquely identifies a version or
+   * generation of a resource. It can be used to confirm that the client
+   * and server agree on the ordering of a resource being written.
+   * 
+ * + * string etag = 10202 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The etag. + */ + java.lang.String getEtag(); + + /** + * + * + *
+   * Output only. An opaque value that uniquely identifies a version or
+   * generation of a resource. It can be used to confirm that the client
+   * and server agree on the ordering of a resource being written.
+   * 
+ * + * string etag = 10202 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); + + /** + * + * + *
+   * Output only. The timestamp when the resource was created.
+   * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
+   * Output only. The timestamp when the resource was created.
+   * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
+   * Output only. The timestamp when the resource was created.
+   * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. The timestamp when the resource was last updated. Any
+   * change to the resource made by users must refresh this value.
+   * Changes to a resource made by the service should refresh this value.
+   * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
+   * Output only. The timestamp when the resource was last updated. Any
+   * change to the resource made by users must refresh this value.
+   * Changes to a resource made by the service should refresh this value.
+   * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
+   * Output only. The timestamp when the resource was last updated. Any
+   * change to the resource made by users must refresh this value.
+   * Changes to a resource made by the service should refresh this value.
+   * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/RolloutStats.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/RolloutStats.java new file mode 100644 index 000000000000..4a8b3421b567 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/RolloutStats.java @@ -0,0 +1,1325 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/rollouts_resources.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +/** + * + * + *
+ * RolloutStats contains information about the progress of a rollout.
+ * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutStats} + */ +public final class RolloutStats extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutStats) + RolloutStatsOrBuilder { + private static final long serialVersionUID = 0L; + + // Use RolloutStats.newBuilder() to construct. + private RolloutStats(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RolloutStats() { + operationsByState_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RolloutStats(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_RolloutStats_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_RolloutStats_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutStats.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutStats.Builder.class); + } + + public static final int OPERATIONS_BY_STATE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List + operationsByState_; + + /** + * + * + *
+   * Output only. A breakdown of the progress of operations triggered by the
+   * rollout. Provides a count of Operations by their state. This can be used to
+   * determine the number of units which have been updated, or are scheduled to
+   * be updated.
+   *
+   * There will be at most one entry per group.
+   * Possible values for operation groups are:
+   * - "SCHEDULED"
+   * - "PENDING"
+   * - "RUNNING"
+   * - "SUCCEEDED"
+   * - "FAILED"
+   * - "CANCELLED"
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Aggregate operations_by_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getOperationsByStateList() { + return operationsByState_; + } + + /** + * + * + *
+   * Output only. A breakdown of the progress of operations triggered by the
+   * rollout. Provides a count of Operations by their state. This can be used to
+   * determine the number of units which have been updated, or are scheduled to
+   * be updated.
+   *
+   * There will be at most one entry per group.
+   * Possible values for operation groups are:
+   * - "SCHEDULED"
+   * - "PENDING"
+   * - "RUNNING"
+   * - "SUCCEEDED"
+   * - "FAILED"
+   * - "CANCELLED"
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Aggregate operations_by_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.saasplatform.saasservicemgmt.v1beta1.AggregateOrBuilder> + getOperationsByStateOrBuilderList() { + return operationsByState_; + } + + /** + * + * + *
+   * Output only. A breakdown of the progress of operations triggered by the
+   * rollout. Provides a count of Operations by their state. This can be used to
+   * determine the number of units which have been updated, or are scheduled to
+   * be updated.
+   *
+   * There will be at most one entry per group.
+   * Possible values for operation groups are:
+   * - "SCHEDULED"
+   * - "PENDING"
+   * - "RUNNING"
+   * - "SUCCEEDED"
+   * - "FAILED"
+   * - "CANCELLED"
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Aggregate operations_by_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getOperationsByStateCount() { + return operationsByState_.size(); + } + + /** + * + * + *
+   * Output only. A breakdown of the progress of operations triggered by the
+   * rollout. Provides a count of Operations by their state. This can be used to
+   * determine the number of units which have been updated, or are scheduled to
+   * be updated.
+   *
+   * There will be at most one entry per group.
+   * Possible values for operation groups are:
+   * - "SCHEDULED"
+   * - "PENDING"
+   * - "RUNNING"
+   * - "SUCCEEDED"
+   * - "FAILED"
+   * - "CANCELLED"
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Aggregate operations_by_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Aggregate getOperationsByState( + int index) { + return operationsByState_.get(index); + } + + /** + * + * + *
+   * Output only. A breakdown of the progress of operations triggered by the
+   * rollout. Provides a count of Operations by their state. This can be used to
+   * determine the number of units which have been updated, or are scheduled to
+   * be updated.
+   *
+   * There will be at most one entry per group.
+   * Possible values for operation groups are:
+   * - "SCHEDULED"
+   * - "PENDING"
+   * - "RUNNING"
+   * - "SUCCEEDED"
+   * - "FAILED"
+   * - "CANCELLED"
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Aggregate operations_by_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.AggregateOrBuilder + getOperationsByStateOrBuilder(int index) { + return operationsByState_.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 < operationsByState_.size(); i++) { + output.writeMessage(2, operationsByState_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < operationsByState_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, operationsByState_.get(i)); + } + size += getUnknownFields().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.saasplatform.saasservicemgmt.v1beta1.RolloutStats)) { + return super.equals(obj); + } + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutStats other = + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutStats) obj; + + if (!getOperationsByStateList().equals(other.getOperationsByStateList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getOperationsByStateCount() > 0) { + hash = (37 * hash) + OPERATIONS_BY_STATE_FIELD_NUMBER; + hash = (53 * hash) + getOperationsByStateList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutStats parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutStats 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.saasplatform.saasservicemgmt.v1beta1.RolloutStats parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutStats 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.saasplatform.saasservicemgmt.v1beta1.RolloutStats parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutStats parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutStats parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutStats 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.saasplatform.saasservicemgmt.v1beta1.RolloutStats + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutStats + 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.saasplatform.saasservicemgmt.v1beta1.RolloutStats parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutStats 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.saasplatform.saasservicemgmt.v1beta1.RolloutStats 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; + } + + /** + * + * + *
+   * RolloutStats contains information about the progress of a rollout.
+   * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutStats} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutStats) + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutStatsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_RolloutStats_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_RolloutStats_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutStats.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutStats.Builder.class); + } + + // Construct using + // com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutStats.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (operationsByStateBuilder_ == null) { + operationsByState_ = java.util.Collections.emptyList(); + } else { + operationsByState_ = null; + operationsByStateBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_RolloutStats_descriptor; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutStats + getDefaultInstanceForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutStats + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutStats build() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutStats result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutStats buildPartial() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutStats result = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutStats(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutStats result) { + if (operationsByStateBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + operationsByState_ = java.util.Collections.unmodifiableList(operationsByState_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.operationsByState_ = operationsByState_; + } else { + result.operationsByState_ = operationsByStateBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutStats result) { + int from_bitField0_ = bitField0_; + } + + @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.saasplatform.saasservicemgmt.v1beta1.RolloutStats) { + return mergeFrom( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutStats) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutStats other) { + if (other + == com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutStats + .getDefaultInstance()) return this; + if (operationsByStateBuilder_ == null) { + if (!other.operationsByState_.isEmpty()) { + if (operationsByState_.isEmpty()) { + operationsByState_ = other.operationsByState_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureOperationsByStateIsMutable(); + operationsByState_.addAll(other.operationsByState_); + } + onChanged(); + } + } else { + if (!other.operationsByState_.isEmpty()) { + if (operationsByStateBuilder_.isEmpty()) { + operationsByStateBuilder_.dispose(); + operationsByStateBuilder_ = null; + operationsByState_ = other.operationsByState_; + bitField0_ = (bitField0_ & ~0x00000001); + operationsByStateBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getOperationsByStateFieldBuilder() + : null; + } else { + operationsByStateBuilder_.addAllMessages(other.operationsByState_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 18: + { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Aggregate m = + input.readMessage( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Aggregate.parser(), + extensionRegistry); + if (operationsByStateBuilder_ == null) { + ensureOperationsByStateIsMutable(); + operationsByState_.add(m); + } else { + operationsByStateBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List + operationsByState_ = java.util.Collections.emptyList(); + + private void ensureOperationsByStateIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + operationsByState_ = + new java.util.ArrayList< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Aggregate>( + operationsByState_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Aggregate, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Aggregate.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.AggregateOrBuilder> + operationsByStateBuilder_; + + /** + * + * + *
+     * Output only. A breakdown of the progress of operations triggered by the
+     * rollout. Provides a count of Operations by their state. This can be used to
+     * determine the number of units which have been updated, or are scheduled to
+     * be updated.
+     *
+     * There will be at most one entry per group.
+     * Possible values for operation groups are:
+     * - "SCHEDULED"
+     * - "PENDING"
+     * - "RUNNING"
+     * - "SUCCEEDED"
+     * - "FAILED"
+     * - "CANCELLED"
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Aggregate operations_by_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getOperationsByStateList() { + if (operationsByStateBuilder_ == null) { + return java.util.Collections.unmodifiableList(operationsByState_); + } else { + return operationsByStateBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Output only. A breakdown of the progress of operations triggered by the
+     * rollout. Provides a count of Operations by their state. This can be used to
+     * determine the number of units which have been updated, or are scheduled to
+     * be updated.
+     *
+     * There will be at most one entry per group.
+     * Possible values for operation groups are:
+     * - "SCHEDULED"
+     * - "PENDING"
+     * - "RUNNING"
+     * - "SUCCEEDED"
+     * - "FAILED"
+     * - "CANCELLED"
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Aggregate operations_by_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getOperationsByStateCount() { + if (operationsByStateBuilder_ == null) { + return operationsByState_.size(); + } else { + return operationsByStateBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Output only. A breakdown of the progress of operations triggered by the
+     * rollout. Provides a count of Operations by their state. This can be used to
+     * determine the number of units which have been updated, or are scheduled to
+     * be updated.
+     *
+     * There will be at most one entry per group.
+     * Possible values for operation groups are:
+     * - "SCHEDULED"
+     * - "PENDING"
+     * - "RUNNING"
+     * - "SUCCEEDED"
+     * - "FAILED"
+     * - "CANCELLED"
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Aggregate operations_by_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Aggregate getOperationsByState( + int index) { + if (operationsByStateBuilder_ == null) { + return operationsByState_.get(index); + } else { + return operationsByStateBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Output only. A breakdown of the progress of operations triggered by the
+     * rollout. Provides a count of Operations by their state. This can be used to
+     * determine the number of units which have been updated, or are scheduled to
+     * be updated.
+     *
+     * There will be at most one entry per group.
+     * Possible values for operation groups are:
+     * - "SCHEDULED"
+     * - "PENDING"
+     * - "RUNNING"
+     * - "SUCCEEDED"
+     * - "FAILED"
+     * - "CANCELLED"
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Aggregate operations_by_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setOperationsByState( + int index, com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Aggregate value) { + if (operationsByStateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOperationsByStateIsMutable(); + operationsByState_.set(index, value); + onChanged(); + } else { + operationsByStateBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. A breakdown of the progress of operations triggered by the
+     * rollout. Provides a count of Operations by their state. This can be used to
+     * determine the number of units which have been updated, or are scheduled to
+     * be updated.
+     *
+     * There will be at most one entry per group.
+     * Possible values for operation groups are:
+     * - "SCHEDULED"
+     * - "PENDING"
+     * - "RUNNING"
+     * - "SUCCEEDED"
+     * - "FAILED"
+     * - "CANCELLED"
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Aggregate operations_by_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setOperationsByState( + int index, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Aggregate.Builder builderForValue) { + if (operationsByStateBuilder_ == null) { + ensureOperationsByStateIsMutable(); + operationsByState_.set(index, builderForValue.build()); + onChanged(); + } else { + operationsByStateBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. A breakdown of the progress of operations triggered by the
+     * rollout. Provides a count of Operations by their state. This can be used to
+     * determine the number of units which have been updated, or are scheduled to
+     * be updated.
+     *
+     * There will be at most one entry per group.
+     * Possible values for operation groups are:
+     * - "SCHEDULED"
+     * - "PENDING"
+     * - "RUNNING"
+     * - "SUCCEEDED"
+     * - "FAILED"
+     * - "CANCELLED"
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Aggregate operations_by_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addOperationsByState( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Aggregate value) { + if (operationsByStateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOperationsByStateIsMutable(); + operationsByState_.add(value); + onChanged(); + } else { + operationsByStateBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Output only. A breakdown of the progress of operations triggered by the
+     * rollout. Provides a count of Operations by their state. This can be used to
+     * determine the number of units which have been updated, or are scheduled to
+     * be updated.
+     *
+     * There will be at most one entry per group.
+     * Possible values for operation groups are:
+     * - "SCHEDULED"
+     * - "PENDING"
+     * - "RUNNING"
+     * - "SUCCEEDED"
+     * - "FAILED"
+     * - "CANCELLED"
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Aggregate operations_by_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addOperationsByState( + int index, com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Aggregate value) { + if (operationsByStateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOperationsByStateIsMutable(); + operationsByState_.add(index, value); + onChanged(); + } else { + operationsByStateBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. A breakdown of the progress of operations triggered by the
+     * rollout. Provides a count of Operations by their state. This can be used to
+     * determine the number of units which have been updated, or are scheduled to
+     * be updated.
+     *
+     * There will be at most one entry per group.
+     * Possible values for operation groups are:
+     * - "SCHEDULED"
+     * - "PENDING"
+     * - "RUNNING"
+     * - "SUCCEEDED"
+     * - "FAILED"
+     * - "CANCELLED"
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Aggregate operations_by_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addOperationsByState( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Aggregate.Builder builderForValue) { + if (operationsByStateBuilder_ == null) { + ensureOperationsByStateIsMutable(); + operationsByState_.add(builderForValue.build()); + onChanged(); + } else { + operationsByStateBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. A breakdown of the progress of operations triggered by the
+     * rollout. Provides a count of Operations by their state. This can be used to
+     * determine the number of units which have been updated, or are scheduled to
+     * be updated.
+     *
+     * There will be at most one entry per group.
+     * Possible values for operation groups are:
+     * - "SCHEDULED"
+     * - "PENDING"
+     * - "RUNNING"
+     * - "SUCCEEDED"
+     * - "FAILED"
+     * - "CANCELLED"
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Aggregate operations_by_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addOperationsByState( + int index, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Aggregate.Builder builderForValue) { + if (operationsByStateBuilder_ == null) { + ensureOperationsByStateIsMutable(); + operationsByState_.add(index, builderForValue.build()); + onChanged(); + } else { + operationsByStateBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. A breakdown of the progress of operations triggered by the
+     * rollout. Provides a count of Operations by their state. This can be used to
+     * determine the number of units which have been updated, or are scheduled to
+     * be updated.
+     *
+     * There will be at most one entry per group.
+     * Possible values for operation groups are:
+     * - "SCHEDULED"
+     * - "PENDING"
+     * - "RUNNING"
+     * - "SUCCEEDED"
+     * - "FAILED"
+     * - "CANCELLED"
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Aggregate operations_by_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllOperationsByState( + java.lang.Iterable< + ? extends com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Aggregate> + values) { + if (operationsByStateBuilder_ == null) { + ensureOperationsByStateIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, operationsByState_); + onChanged(); + } else { + operationsByStateBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Output only. A breakdown of the progress of operations triggered by the
+     * rollout. Provides a count of Operations by their state. This can be used to
+     * determine the number of units which have been updated, or are scheduled to
+     * be updated.
+     *
+     * There will be at most one entry per group.
+     * Possible values for operation groups are:
+     * - "SCHEDULED"
+     * - "PENDING"
+     * - "RUNNING"
+     * - "SUCCEEDED"
+     * - "FAILED"
+     * - "CANCELLED"
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Aggregate operations_by_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearOperationsByState() { + if (operationsByStateBuilder_ == null) { + operationsByState_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + operationsByStateBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Output only. A breakdown of the progress of operations triggered by the
+     * rollout. Provides a count of Operations by their state. This can be used to
+     * determine the number of units which have been updated, or are scheduled to
+     * be updated.
+     *
+     * There will be at most one entry per group.
+     * Possible values for operation groups are:
+     * - "SCHEDULED"
+     * - "PENDING"
+     * - "RUNNING"
+     * - "SUCCEEDED"
+     * - "FAILED"
+     * - "CANCELLED"
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Aggregate operations_by_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeOperationsByState(int index) { + if (operationsByStateBuilder_ == null) { + ensureOperationsByStateIsMutable(); + operationsByState_.remove(index); + onChanged(); + } else { + operationsByStateBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Output only. A breakdown of the progress of operations triggered by the
+     * rollout. Provides a count of Operations by their state. This can be used to
+     * determine the number of units which have been updated, or are scheduled to
+     * be updated.
+     *
+     * There will be at most one entry per group.
+     * Possible values for operation groups are:
+     * - "SCHEDULED"
+     * - "PENDING"
+     * - "RUNNING"
+     * - "SUCCEEDED"
+     * - "FAILED"
+     * - "CANCELLED"
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Aggregate operations_by_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Aggregate.Builder + getOperationsByStateBuilder(int index) { + return getOperationsByStateFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Output only. A breakdown of the progress of operations triggered by the
+     * rollout. Provides a count of Operations by their state. This can be used to
+     * determine the number of units which have been updated, or are scheduled to
+     * be updated.
+     *
+     * There will be at most one entry per group.
+     * Possible values for operation groups are:
+     * - "SCHEDULED"
+     * - "PENDING"
+     * - "RUNNING"
+     * - "SUCCEEDED"
+     * - "FAILED"
+     * - "CANCELLED"
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Aggregate operations_by_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.AggregateOrBuilder + getOperationsByStateOrBuilder(int index) { + if (operationsByStateBuilder_ == null) { + return operationsByState_.get(index); + } else { + return operationsByStateBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Output only. A breakdown of the progress of operations triggered by the
+     * rollout. Provides a count of Operations by their state. This can be used to
+     * determine the number of units which have been updated, or are scheduled to
+     * be updated.
+     *
+     * There will be at most one entry per group.
+     * Possible values for operation groups are:
+     * - "SCHEDULED"
+     * - "PENDING"
+     * - "RUNNING"
+     * - "SUCCEEDED"
+     * - "FAILED"
+     * - "CANCELLED"
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Aggregate operations_by_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends com.google.cloud.saasplatform.saasservicemgmt.v1beta1.AggregateOrBuilder> + getOperationsByStateOrBuilderList() { + if (operationsByStateBuilder_ != null) { + return operationsByStateBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(operationsByState_); + } + } + + /** + * + * + *
+     * Output only. A breakdown of the progress of operations triggered by the
+     * rollout. Provides a count of Operations by their state. This can be used to
+     * determine the number of units which have been updated, or are scheduled to
+     * be updated.
+     *
+     * There will be at most one entry per group.
+     * Possible values for operation groups are:
+     * - "SCHEDULED"
+     * - "PENDING"
+     * - "RUNNING"
+     * - "SUCCEEDED"
+     * - "FAILED"
+     * - "CANCELLED"
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Aggregate operations_by_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Aggregate.Builder + addOperationsByStateBuilder() { + return getOperationsByStateFieldBuilder() + .addBuilder( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Aggregate.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. A breakdown of the progress of operations triggered by the
+     * rollout. Provides a count of Operations by their state. This can be used to
+     * determine the number of units which have been updated, or are scheduled to
+     * be updated.
+     *
+     * There will be at most one entry per group.
+     * Possible values for operation groups are:
+     * - "SCHEDULED"
+     * - "PENDING"
+     * - "RUNNING"
+     * - "SUCCEEDED"
+     * - "FAILED"
+     * - "CANCELLED"
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Aggregate operations_by_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Aggregate.Builder + addOperationsByStateBuilder(int index) { + return getOperationsByStateFieldBuilder() + .addBuilder( + index, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Aggregate.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. A breakdown of the progress of operations triggered by the
+     * rollout. Provides a count of Operations by their state. This can be used to
+     * determine the number of units which have been updated, or are scheduled to
+     * be updated.
+     *
+     * There will be at most one entry per group.
+     * Possible values for operation groups are:
+     * - "SCHEDULED"
+     * - "PENDING"
+     * - "RUNNING"
+     * - "SUCCEEDED"
+     * - "FAILED"
+     * - "CANCELLED"
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Aggregate operations_by_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getOperationsByStateBuilderList() { + return getOperationsByStateFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Aggregate, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Aggregate.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.AggregateOrBuilder> + getOperationsByStateFieldBuilder() { + if (operationsByStateBuilder_ == null) { + operationsByStateBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Aggregate, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Aggregate.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.AggregateOrBuilder>( + operationsByState_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + operationsByState_ = null; + } + return operationsByStateBuilder_; + } + + @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.saasplatform.saasservicemgmt.v1beta1.RolloutStats) + } + + // @@protoc_insertion_point(class_scope:google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutStats) + private static final com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutStats + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutStats(); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutStats + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RolloutStats parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.saasplatform.saasservicemgmt.v1beta1.RolloutStats + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/RolloutStatsOrBuilder.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/RolloutStatsOrBuilder.java new file mode 100644 index 000000000000..b444cf50628c --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/RolloutStatsOrBuilder.java @@ -0,0 +1,154 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/rollouts_resources.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +public interface RolloutStatsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutStats) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. A breakdown of the progress of operations triggered by the
+   * rollout. Provides a count of Operations by their state. This can be used to
+   * determine the number of units which have been updated, or are scheduled to
+   * be updated.
+   *
+   * There will be at most one entry per group.
+   * Possible values for operation groups are:
+   * - "SCHEDULED"
+   * - "PENDING"
+   * - "RUNNING"
+   * - "SUCCEEDED"
+   * - "FAILED"
+   * - "CANCELLED"
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Aggregate operations_by_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getOperationsByStateList(); + + /** + * + * + *
+   * Output only. A breakdown of the progress of operations triggered by the
+   * rollout. Provides a count of Operations by their state. This can be used to
+   * determine the number of units which have been updated, or are scheduled to
+   * be updated.
+   *
+   * There will be at most one entry per group.
+   * Possible values for operation groups are:
+   * - "SCHEDULED"
+   * - "PENDING"
+   * - "RUNNING"
+   * - "SUCCEEDED"
+   * - "FAILED"
+   * - "CANCELLED"
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Aggregate operations_by_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Aggregate getOperationsByState(int index); + + /** + * + * + *
+   * Output only. A breakdown of the progress of operations triggered by the
+   * rollout. Provides a count of Operations by their state. This can be used to
+   * determine the number of units which have been updated, or are scheduled to
+   * be updated.
+   *
+   * There will be at most one entry per group.
+   * Possible values for operation groups are:
+   * - "SCHEDULED"
+   * - "PENDING"
+   * - "RUNNING"
+   * - "SUCCEEDED"
+   * - "FAILED"
+   * - "CANCELLED"
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Aggregate operations_by_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getOperationsByStateCount(); + + /** + * + * + *
+   * Output only. A breakdown of the progress of operations triggered by the
+   * rollout. Provides a count of Operations by their state. This can be used to
+   * determine the number of units which have been updated, or are scheduled to
+   * be updated.
+   *
+   * There will be at most one entry per group.
+   * Possible values for operation groups are:
+   * - "SCHEDULED"
+   * - "PENDING"
+   * - "RUNNING"
+   * - "SUCCEEDED"
+   * - "FAILED"
+   * - "CANCELLED"
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Aggregate operations_by_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getOperationsByStateOrBuilderList(); + + /** + * + * + *
+   * Output only. A breakdown of the progress of operations triggered by the
+   * rollout. Provides a count of Operations by their state. This can be used to
+   * determine the number of units which have been updated, or are scheduled to
+   * be updated.
+   *
+   * There will be at most one entry per group.
+   * Possible values for operation groups are:
+   * - "SCHEDULED"
+   * - "PENDING"
+   * - "RUNNING"
+   * - "SUCCEEDED"
+   * - "FAILED"
+   * - "CANCELLED"
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Aggregate operations_by_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.AggregateOrBuilder + getOperationsByStateOrBuilder(int index); +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/Saas.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/Saas.java new file mode 100644 index 000000000000..6485a5f1f01f --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/Saas.java @@ -0,0 +1,3101 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_resources.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +/** + * + * + *
+ * Saas is a representation of a SaaS service managed by the Producer.
+ * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas} + */ +public final class Saas extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas) + SaasOrBuilder { + private static final long serialVersionUID = 0L; + + // Use Saas.newBuilder() to construct. + private Saas(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Saas() { + name_ = ""; + locations_ = java.util.Collections.emptyList(); + uid_ = ""; + etag_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Saas(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Saas_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 10401: + return internalGetLabels(); + case 10402: + return internalGetAnnotations(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Saas_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Identifier. The resource name (full URI of the resource) following the
+   * standard naming scheme:
+   *
+   *   "projects/{project}/locations/{location}/saas/{saas}"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + @java.lang.Override + 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; + } + } + + /** + * + * + *
+   * Identifier. The resource name (full URI of the resource) following the
+   * standard naming scheme:
+   *
+   *   "projects/{project}/locations/{location}/saas/{saas}"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + @java.lang.Override + 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 LOCATIONS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private java.util.List locations_; + + /** + * + * + *
+   * Optional. List of locations that the service is available in. Rollout
+   * refers to the list to generate a rollout plan.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Location locations = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getLocationsList() { + return locations_; + } + + /** + * + * + *
+   * Optional. List of locations that the service is available in. Rollout
+   * refers to the list to generate a rollout plan.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Location locations = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.saasplatform.saasservicemgmt.v1beta1.LocationOrBuilder> + getLocationsOrBuilderList() { + return locations_; + } + + /** + * + * + *
+   * Optional. List of locations that the service is available in. Rollout
+   * refers to the list to generate a rollout plan.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Location locations = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getLocationsCount() { + return locations_.size(); + } + + /** + * + * + *
+   * Optional. List of locations that the service is available in. Rollout
+   * refers to the list to generate a rollout plan.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Location locations = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Location getLocations(int index) { + return locations_.get(index); + } + + /** + * + * + *
+   * Optional. List of locations that the service is available in. Rollout
+   * refers to the list to generate a rollout plan.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Location locations = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.LocationOrBuilder + getLocationsOrBuilder(int index) { + return locations_.get(index); + } + + public static final int LABELS_FIELD_NUMBER = 10401; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Saas_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + 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(); + } + + /** + * + * + *
+   * Optional. The labels on the resource, which can be used for categorization.
+   * similar to Kubernetes resource labels.
+   * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** + * + * + *
+   * Optional. The labels on the resource, which can be used for categorization.
+   * similar to Kubernetes resource labels.
+   * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
+   * Optional. The labels on the resource, which can be used for categorization.
+   * similar to Kubernetes resource labels.
+   * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+   * Optional. The labels on the resource, which can be used for categorization.
+   * similar to Kubernetes resource labels.
+   * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int ANNOTATIONS_FIELD_NUMBER = 10402; + + private static final class AnnotationsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Saas_AnnotationsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField annotations_; + + private com.google.protobuf.MapField + internalGetAnnotations() { + if (annotations_ == null) { + return com.google.protobuf.MapField.emptyMapField(AnnotationsDefaultEntryHolder.defaultEntry); + } + return annotations_; + } + + public int getAnnotationsCount() { + return internalGetAnnotations().getMap().size(); + } + + /** + * + * + *
+   * Optional. Annotations is an unstructured key-value map stored with a
+   * resource that may be set by external tools to store and retrieve arbitrary
+   * metadata. They are not queryable and should be preserved when modifying
+   * objects.
+   *
+   * More info: https://kubernetes.io/docs/user-guide/annotations
+   * 
+ * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetAnnotations().getMap().containsKey(key); + } + + /** Use {@link #getAnnotationsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getAnnotations() { + return getAnnotationsMap(); + } + + /** + * + * + *
+   * Optional. Annotations is an unstructured key-value map stored with a
+   * resource that may be set by external tools to store and retrieve arbitrary
+   * metadata. They are not queryable and should be preserved when modifying
+   * objects.
+   *
+   * More info: https://kubernetes.io/docs/user-guide/annotations
+   * 
+ * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getAnnotationsMap() { + return internalGetAnnotations().getMap(); + } + + /** + * + * + *
+   * Optional. Annotations is an unstructured key-value map stored with a
+   * resource that may be set by external tools to store and retrieve arbitrary
+   * metadata. They are not queryable and should be preserved when modifying
+   * objects.
+   *
+   * More info: https://kubernetes.io/docs/user-guide/annotations
+   * 
+ * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getAnnotationsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+   * Optional. Annotations is an unstructured key-value map stored with a
+   * resource that may be set by external tools to store and retrieve arbitrary
+   * metadata. They are not queryable and should be preserved when modifying
+   * objects.
+   *
+   * More info: https://kubernetes.io/docs/user-guide/annotations
+   * 
+ * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int UID_FIELD_NUMBER = 10201; + + @SuppressWarnings("serial") + private volatile java.lang.Object uid_ = ""; + + /** + * + * + *
+   * Output only. The unique identifier of the resource. UID is unique in the
+   * time and space for this resource within the scope of the service. It is
+   * typically generated by the server on successful creation of a resource
+   * and must not be changed. UID is used to uniquely identify resources
+   * with resource name reuses. This should be a UUID4.
+   * 
+ * + * + * string uid = 10201 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The uid. + */ + @java.lang.Override + public java.lang.String getUid() { + java.lang.Object ref = uid_; + 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(); + uid_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The unique identifier of the resource. UID is unique in the
+   * time and space for this resource within the scope of the service. It is
+   * typically generated by the server on successful creation of a resource
+   * and must not be changed. UID is used to uniquely identify resources
+   * with resource name reuses. This should be a UUID4.
+   * 
+ * + * + * string uid = 10201 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The bytes for uid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ETAG_FIELD_NUMBER = 10202; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + + /** + * + * + *
+   * Output only. An opaque value that uniquely identifies a version or
+   * generation of a resource. It can be used to confirm that the client
+   * and server agree on the ordering of a resource being written.
+   * 
+ * + * string etag = 10202 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The etag. + */ + @java.lang.Override + 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. An opaque value that uniquely identifies a version or
+   * generation of a resource. It can be used to confirm that the client
+   * and server agree on the ordering of a resource being written.
+   * 
+ * + * string etag = 10202 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for etag. + */ + @java.lang.Override + 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 CREATE_TIME_FIELD_NUMBER = 10303; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
+   * Output only. The timestamp when the resource was created.
+   * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. The timestamp when the resource was created.
+   * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
+   * Output only. The timestamp when the resource was created.
+   * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 10304; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
+   * Output only. The timestamp when the resource was last updated. Any
+   * change to the resource made by users must refresh this value.
+   * Changes to a resource made by the service should refresh this value.
+   * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Output only. The timestamp when the resource was last updated. Any
+   * change to the resource made by users must refresh this value.
+   * Changes to a resource made by the service should refresh this value.
+   * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
+   * Output only. The timestamp when the resource was last updated. Any
+   * change to the resource made by users must refresh this value.
+   * Changes to a resource made by the service should refresh this value.
+   * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + for (int i = 0; i < locations_.size(); i++) { + output.writeMessage(4, locations_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10201, uid_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10202, etag_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(10303, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(10304, getUpdateTime()); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 10401); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetAnnotations(), AnnotationsDefaultEntryHolder.defaultEntry, 10402); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + for (int i = 0; i < locations_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, locations_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10201, uid_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10202, etag_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10303, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10304, 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(10401, labels__); + } + for (java.util.Map.Entry entry : + internalGetAnnotations().getMap().entrySet()) { + com.google.protobuf.MapEntry annotations__ = + AnnotationsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10402, annotations__); + } + size += getUnknownFields().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.saasplatform.saasservicemgmt.v1beta1.Saas)) { + return super.equals(obj); + } + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas other = + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas) obj; + + if (!getName().equals(other.getName())) return false; + if (!getLocationsList().equals(other.getLocationsList())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!internalGetAnnotations().equals(other.internalGetAnnotations())) return false; + if (!getUid().equals(other.getUid())) return false; + if (!getEtag().equals(other.getEtag())) 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 (!getUnknownFields().equals(other.getUnknownFields())) 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 (getLocationsCount() > 0) { + hash = (37 * hash) + LOCATIONS_FIELD_NUMBER; + hash = (53 * hash) + getLocationsList().hashCode(); + } + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + if (!internalGetAnnotations().getMap().isEmpty()) { + hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; + hash = (53 * hash) + internalGetAnnotations().hashCode(); + } + hash = (37 * hash) + UID_FIELD_NUMBER; + hash = (53 * hash) + getUid().hashCode(); + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas 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.saasplatform.saasservicemgmt.v1beta1.Saas parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas 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.saasplatform.saasservicemgmt.v1beta1.Saas parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas 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.saasplatform.saasservicemgmt.v1beta1.Saas parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas 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.saasplatform.saasservicemgmt.v1beta1.Saas parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas 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.saasplatform.saasservicemgmt.v1beta1.Saas 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; + } + + /** + * + * + *
+   * Saas is a representation of a SaaS service managed by the Producer.
+   * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas) + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Saas_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 10401: + return internalGetLabels(); + case 10402: + return internalGetAnnotations(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 10401: + return internalGetMutableLabels(); + case 10402: + return internalGetMutableAnnotations(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Saas_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas.Builder.class); + } + + // Construct using com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getLocationsFieldBuilder(); + getCreateTimeFieldBuilder(); + getUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + if (locationsBuilder_ == null) { + locations_ = java.util.Collections.emptyList(); + } else { + locations_ = null; + locationsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + internalGetMutableLabels().clear(); + internalGetMutableAnnotations().clear(); + uid_ = ""; + etag_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Saas_descriptor; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas getDefaultInstanceForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas build() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas buildPartial() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas result = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas result) { + if (locationsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + locations_ = java.util.Collections.unmodifiableList(locations_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.locations_ = locations_; + } else { + result.locations_ = locationsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.annotations_ = internalGetAnnotations(); + result.annotations_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.uid_ = uid_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.etag_ = etag_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000040) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @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.saasplatform.saasservicemgmt.v1beta1.Saas) { + return mergeFrom((com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas other) { + if (other == com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (locationsBuilder_ == null) { + if (!other.locations_.isEmpty()) { + if (locations_.isEmpty()) { + locations_ = other.locations_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureLocationsIsMutable(); + locations_.addAll(other.locations_); + } + onChanged(); + } + } else { + if (!other.locations_.isEmpty()) { + if (locationsBuilder_.isEmpty()) { + locationsBuilder_.dispose(); + locationsBuilder_ = null; + locations_ = other.locations_; + bitField0_ = (bitField0_ & ~0x00000002); + locationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getLocationsFieldBuilder() + : null; + } else { + locationsBuilder_.addAllMessages(other.locations_); + } + } + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000004; + internalGetMutableAnnotations().mergeFrom(other.internalGetAnnotations()); + bitField0_ |= 0x00000008; + if (!other.getUid().isEmpty()) { + uid_ = other.uid_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 34: + { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Location m = + input.readMessage( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Location.parser(), + extensionRegistry); + if (locationsBuilder_ == null) { + ensureLocationsIsMutable(); + locations_.add(m); + } else { + locationsBuilder_.addMessage(m); + } + break; + } // case 34 + case 81610: + { + uid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 81610 + case 81618: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 81618 + case 82426: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 82426 + case 82434: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 82434 + case 83210: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000004; + break; + } // case 83210 + case 83218: + { + com.google.protobuf.MapEntry annotations__ = + input.readMessage( + AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableAnnotations() + .getMutableMap() + .put(annotations__.getKey(), annotations__.getValue()); + bitField0_ |= 0x00000008; + break; + } // case 83218 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Identifier. The resource name (full URI of the resource) following the
+     * standard naming scheme:
+     *
+     *   "projects/{project}/locations/{location}/saas/{saas}"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + } + } + + /** + * + * + *
+     * Identifier. The resource name (full URI of the resource) following the
+     * standard naming scheme:
+     *
+     *   "projects/{project}/locations/{location}/saas/{saas}"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + } + } + + /** + * + * + *
+     * Identifier. The resource name (full URI of the resource) following the
+     * standard naming scheme:
+     *
+     *   "projects/{project}/locations/{location}/saas/{saas}"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Identifier. The resource name (full URI of the resource) following the
+     * standard naming scheme:
+     *
+     *   "projects/{project}/locations/{location}/saas/{saas}"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Identifier. The resource name (full URI of the resource) following the
+     * standard naming scheme:
+     *
+     *   "projects/{project}/locations/{location}/saas/{saas}"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.util.List + locations_ = java.util.Collections.emptyList(); + + private void ensureLocationsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + locations_ = + new java.util.ArrayList( + locations_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Location, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Location.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.LocationOrBuilder> + locationsBuilder_; + + /** + * + * + *
+     * Optional. List of locations that the service is available in. Rollout
+     * refers to the list to generate a rollout plan.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Location locations = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getLocationsList() { + if (locationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(locations_); + } else { + return locationsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. List of locations that the service is available in. Rollout
+     * refers to the list to generate a rollout plan.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Location locations = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getLocationsCount() { + if (locationsBuilder_ == null) { + return locations_.size(); + } else { + return locationsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. List of locations that the service is available in. Rollout
+     * refers to the list to generate a rollout plan.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Location locations = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Location getLocations(int index) { + if (locationsBuilder_ == null) { + return locations_.get(index); + } else { + return locationsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. List of locations that the service is available in. Rollout
+     * refers to the list to generate a rollout plan.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Location locations = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setLocations( + int index, com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Location value) { + if (locationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationsIsMutable(); + locations_.set(index, value); + onChanged(); + } else { + locationsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. List of locations that the service is available in. Rollout
+     * refers to the list to generate a rollout plan.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Location locations = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setLocations( + int index, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Location.Builder builderForValue) { + if (locationsBuilder_ == null) { + ensureLocationsIsMutable(); + locations_.set(index, builderForValue.build()); + onChanged(); + } else { + locationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. List of locations that the service is available in. Rollout
+     * refers to the list to generate a rollout plan.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Location locations = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addLocations( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Location value) { + if (locationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationsIsMutable(); + locations_.add(value); + onChanged(); + } else { + locationsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. List of locations that the service is available in. Rollout
+     * refers to the list to generate a rollout plan.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Location locations = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addLocations( + int index, com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Location value) { + if (locationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLocationsIsMutable(); + locations_.add(index, value); + onChanged(); + } else { + locationsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. List of locations that the service is available in. Rollout
+     * refers to the list to generate a rollout plan.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Location locations = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addLocations( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Location.Builder builderForValue) { + if (locationsBuilder_ == null) { + ensureLocationsIsMutable(); + locations_.add(builderForValue.build()); + onChanged(); + } else { + locationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. List of locations that the service is available in. Rollout
+     * refers to the list to generate a rollout plan.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Location locations = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addLocations( + int index, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Location.Builder builderForValue) { + if (locationsBuilder_ == null) { + ensureLocationsIsMutable(); + locations_.add(index, builderForValue.build()); + onChanged(); + } else { + locationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. List of locations that the service is available in. Rollout
+     * refers to the list to generate a rollout plan.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Location locations = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllLocations( + java.lang.Iterable + values) { + if (locationsBuilder_ == null) { + ensureLocationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, locations_); + onChanged(); + } else { + locationsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. List of locations that the service is available in. Rollout
+     * refers to the list to generate a rollout plan.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Location locations = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearLocations() { + if (locationsBuilder_ == null) { + locations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + locationsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. List of locations that the service is available in. Rollout
+     * refers to the list to generate a rollout plan.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Location locations = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeLocations(int index) { + if (locationsBuilder_ == null) { + ensureLocationsIsMutable(); + locations_.remove(index); + onChanged(); + } else { + locationsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. List of locations that the service is available in. Rollout
+     * refers to the list to generate a rollout plan.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Location locations = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Location.Builder + getLocationsBuilder(int index) { + return getLocationsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. List of locations that the service is available in. Rollout
+     * refers to the list to generate a rollout plan.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Location locations = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.LocationOrBuilder + getLocationsOrBuilder(int index) { + if (locationsBuilder_ == null) { + return locations_.get(index); + } else { + return locationsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. List of locations that the service is available in. Rollout
+     * refers to the list to generate a rollout plan.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Location locations = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + ? extends com.google.cloud.saasplatform.saasservicemgmt.v1beta1.LocationOrBuilder> + getLocationsOrBuilderList() { + if (locationsBuilder_ != null) { + return locationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(locations_); + } + } + + /** + * + * + *
+     * Optional. List of locations that the service is available in. Rollout
+     * refers to the list to generate a rollout plan.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Location locations = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Location.Builder + addLocationsBuilder() { + return getLocationsFieldBuilder() + .addBuilder( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Location.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. List of locations that the service is available in. Rollout
+     * refers to the list to generate a rollout plan.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Location locations = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Location.Builder + addLocationsBuilder(int index) { + return getLocationsFieldBuilder() + .addBuilder( + index, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Location.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. List of locations that the service is available in. Rollout
+     * refers to the list to generate a rollout plan.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Location locations = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getLocationsBuilderList() { + return getLocationsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Location, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Location.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.LocationOrBuilder> + getLocationsFieldBuilder() { + if (locationsBuilder_ == null) { + locationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Location, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Location.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.LocationOrBuilder>( + locations_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + locations_ = null; + } + return locationsBuilder_; + } + + 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() { + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + bitField0_ |= 0x00000004; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
+     * Optional. The labels on the resource, which can be used for categorization.
+     * similar to Kubernetes resource labels.
+     * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** + * + * + *
+     * Optional. The labels on the resource, which can be used for categorization.
+     * similar to Kubernetes resource labels.
+     * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
+     * Optional. The labels on the resource, which can be used for categorization.
+     * similar to Kubernetes resource labels.
+     * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+     * Optional. The labels on the resource, which can be used for categorization.
+     * similar to Kubernetes resource labels.
+     * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000004); + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + + /** + * + * + *
+     * Optional. The labels on the resource, which can be used for categorization.
+     * similar to Kubernetes resource labels.
+     * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000004; + return internalGetMutableLabels().getMutableMap(); + } + + /** + * + * + *
+     * Optional. The labels on the resource, which can be used for categorization.
+     * similar to Kubernetes resource labels.
+     * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000004; + return this; + } + + /** + * + * + *
+     * Optional. The labels on the resource, which can be used for categorization.
+     * similar to Kubernetes resource labels.
+     * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000004; + return this; + } + + private com.google.protobuf.MapField annotations_; + + private com.google.protobuf.MapField + internalGetAnnotations() { + if (annotations_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AnnotationsDefaultEntryHolder.defaultEntry); + } + return annotations_; + } + + private com.google.protobuf.MapField + internalGetMutableAnnotations() { + if (annotations_ == null) { + annotations_ = + com.google.protobuf.MapField.newMapField(AnnotationsDefaultEntryHolder.defaultEntry); + } + if (!annotations_.isMutable()) { + annotations_ = annotations_.copy(); + } + bitField0_ |= 0x00000008; + onChanged(); + return annotations_; + } + + public int getAnnotationsCount() { + return internalGetAnnotations().getMap().size(); + } + + /** + * + * + *
+     * Optional. Annotations is an unstructured key-value map stored with a
+     * resource that may be set by external tools to store and retrieve arbitrary
+     * metadata. They are not queryable and should be preserved when modifying
+     * objects.
+     *
+     * More info: https://kubernetes.io/docs/user-guide/annotations
+     * 
+ * + * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetAnnotations().getMap().containsKey(key); + } + + /** Use {@link #getAnnotationsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getAnnotations() { + return getAnnotationsMap(); + } + + /** + * + * + *
+     * Optional. Annotations is an unstructured key-value map stored with a
+     * resource that may be set by external tools to store and retrieve arbitrary
+     * metadata. They are not queryable and should be preserved when modifying
+     * objects.
+     *
+     * More info: https://kubernetes.io/docs/user-guide/annotations
+     * 
+ * + * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getAnnotationsMap() { + return internalGetAnnotations().getMap(); + } + + /** + * + * + *
+     * Optional. Annotations is an unstructured key-value map stored with a
+     * resource that may be set by external tools to store and retrieve arbitrary
+     * metadata. They are not queryable and should be preserved when modifying
+     * objects.
+     *
+     * More info: https://kubernetes.io/docs/user-guide/annotations
+     * 
+ * + * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getAnnotationsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+     * Optional. Annotations is an unstructured key-value map stored with a
+     * resource that may be set by external tools to store and retrieve arbitrary
+     * metadata. They are not queryable and should be preserved when modifying
+     * objects.
+     *
+     * More info: https://kubernetes.io/docs/user-guide/annotations
+     * 
+ * + * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearAnnotations() { + bitField0_ = (bitField0_ & ~0x00000008); + internalGetMutableAnnotations().getMutableMap().clear(); + return this; + } + + /** + * + * + *
+     * Optional. Annotations is an unstructured key-value map stored with a
+     * resource that may be set by external tools to store and retrieve arbitrary
+     * metadata. They are not queryable and should be preserved when modifying
+     * objects.
+     *
+     * More info: https://kubernetes.io/docs/user-guide/annotations
+     * 
+ * + * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableAnnotations().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableAnnotations() { + bitField0_ |= 0x00000008; + return internalGetMutableAnnotations().getMutableMap(); + } + + /** + * + * + *
+     * Optional. Annotations is an unstructured key-value map stored with a
+     * resource that may be set by external tools to store and retrieve arbitrary
+     * metadata. They are not queryable and should be preserved when modifying
+     * objects.
+     *
+     * More info: https://kubernetes.io/docs/user-guide/annotations
+     * 
+ * + * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAnnotations(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableAnnotations().getMutableMap().put(key, value); + bitField0_ |= 0x00000008; + return this; + } + + /** + * + * + *
+     * Optional. Annotations is an unstructured key-value map stored with a
+     * resource that may be set by external tools to store and retrieve arbitrary
+     * metadata. They are not queryable and should be preserved when modifying
+     * objects.
+     *
+     * More info: https://kubernetes.io/docs/user-guide/annotations
+     * 
+ * + * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllAnnotations(java.util.Map values) { + internalGetMutableAnnotations().getMutableMap().putAll(values); + bitField0_ |= 0x00000008; + return this; + } + + private java.lang.Object uid_ = ""; + + /** + * + * + *
+     * Output only. The unique identifier of the resource. UID is unique in the
+     * time and space for this resource within the scope of the service. It is
+     * typically generated by the server on successful creation of a resource
+     * and must not be changed. UID is used to uniquely identify resources
+     * with resource name reuses. This should be a UUID4.
+     * 
+ * + * + * string uid = 10201 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The uid. + */ + public java.lang.String getUid() { + java.lang.Object ref = uid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The unique identifier of the resource. UID is unique in the
+     * time and space for this resource within the scope of the service. It is
+     * typically generated by the server on successful creation of a resource
+     * and must not be changed. UID is used to uniquely identify resources
+     * with resource name reuses. This should be a UUID4.
+     * 
+ * + * + * string uid = 10201 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The bytes for uid. + */ + public com.google.protobuf.ByteString getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The unique identifier of the resource. UID is unique in the
+     * time and space for this resource within the scope of the service. It is
+     * typically generated by the server on successful creation of a resource
+     * and must not be changed. UID is used to uniquely identify resources
+     * with resource name reuses. This should be a UUID4.
+     * 
+ * + * + * string uid = 10201 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @param value The uid to set. + * @return This builder for chaining. + */ + public Builder setUid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uid_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The unique identifier of the resource. UID is unique in the
+     * time and space for this resource within the scope of the service. It is
+     * typically generated by the server on successful creation of a resource
+     * and must not be changed. UID is used to uniquely identify resources
+     * with resource name reuses. This should be a UUID4.
+     * 
+ * + * + * string uid = 10201 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearUid() { + uid_ = getDefaultInstance().getUid(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The unique identifier of the resource. UID is unique in the
+     * time and space for this resource within the scope of the service. It is
+     * typically generated by the server on successful creation of a resource
+     * and must not be changed. UID is used to uniquely identify resources
+     * with resource name reuses. This should be a UUID4.
+     * 
+ * + * + * string uid = 10201 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for uid to set. + * @return This builder for chaining. + */ + public Builder setUidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uid_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object etag_ = ""; + + /** + * + * + *
+     * Output only. An opaque value that uniquely identifies a version or
+     * generation of a resource. It can be used to confirm that the client
+     * and server agree on the ordering of a resource being written.
+     * 
+ * + * string etag = 10202 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+     * Output only. An opaque value that uniquely identifies a version or
+     * generation of a resource. It can be used to confirm that the client
+     * and server agree on the ordering of a resource being written.
+     * 
+ * + * string etag = 10202 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+     * Output only. An opaque value that uniquely identifies a version or
+     * generation of a resource. It can be used to confirm that the client
+     * and server agree on the ordering of a resource being written.
+     * 
+ * + * string etag = 10202 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. An opaque value that uniquely identifies a version or
+     * generation of a resource. It can be used to confirm that the client
+     * and server agree on the ordering of a resource being written.
+     * 
+ * + * string etag = 10202 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. An opaque value that uniquely identifies a version or
+     * generation of a resource. It can be used to confirm that the client
+     * and server agree on the ordering of a resource being written.
+     * 
+ * + * string etag = 10202 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + bitField0_ |= 0x00000020; + 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 timestamp when the resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.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 timestamp when the resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.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; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000040); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.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 timestamp when the resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.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 timestamp when the resource was last updated. Any
+     * change to the resource made by users must refresh this value.
+     * Changes to a resource made by the service should refresh this value.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was last updated. Any
+     * change to the resource made by users must refresh this value.
+     * Changes to a resource made by the service should refresh this value.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.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 timestamp when the resource was last updated. Any
+     * change to the resource made by users must refresh this value.
+     * Changes to a resource made by the service should refresh this value.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.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; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was last updated. Any
+     * change to the resource made by users must refresh this value.
+     * Changes to a resource made by the service should refresh this value.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was last updated. Any
+     * change to the resource made by users must refresh this value.
+     * Changes to a resource made by the service should refresh this value.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was last updated. Any
+     * change to the resource made by users must refresh this value.
+     * Changes to a resource made by the service should refresh this value.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000080); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was last updated. Any
+     * change to the resource made by users must refresh this value.
+     * Changes to a resource made by the service should refresh this value.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was last updated. Any
+     * change to the resource made by users must refresh this value.
+     * Changes to a resource made by the service should refresh this value.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.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 timestamp when the resource was last updated. Any
+     * change to the resource made by users must refresh this value.
+     * Changes to a resource made by the service should refresh this value.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.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_; + } + + @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.saasplatform.saasservicemgmt.v1beta1.Saas) + } + + // @@protoc_insertion_point(class_scope:google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas) + private static final com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas(); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Saas parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.saasplatform.saasservicemgmt.v1beta1.Saas getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/SaasDeploymentsResourcesProto.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/SaasDeploymentsResourcesProto.java new file mode 100644 index 000000000000..4098da5f4b86 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/SaasDeploymentsResourcesProto.java @@ -0,0 +1,809 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_resources.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +public final class SaasDeploymentsResourcesProto { + private SaasDeploymentsResourcesProto() {} + + 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_saasplatform_saasservicemgmt_v1beta1_Location_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Location_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Saas_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Saas_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Saas_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Saas_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Saas_AnnotationsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Saas_AnnotationsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Tenant_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Tenant_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Tenant_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Tenant_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Tenant_AnnotationsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Tenant_AnnotationsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UnitKind_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UnitKind_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UnitKind_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UnitKind_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UnitKind_AnnotationsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UnitKind_AnnotationsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Unit_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Unit_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Unit_MaintenanceSettings_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Unit_MaintenanceSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Unit_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Unit_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Unit_AnnotationsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Unit_AnnotationsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UnitDependency_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UnitDependency_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UnitOperation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UnitOperation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UnitOperation_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UnitOperation_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UnitOperation_AnnotationsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UnitOperation_AnnotationsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Provision_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Provision_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Deprovision_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Deprovision_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Upgrade_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Upgrade_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Schedule_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Schedule_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Release_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Release_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Release_ReleaseRequirements_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Release_ReleaseRequirements_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Release_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Release_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Release_AnnotationsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Release_AnnotationsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_VariableMapping_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_VariableMapping_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_FromMapping_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_FromMapping_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ToMapping_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ToMapping_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Dependency_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Dependency_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n" + + "Mgoogle/cloud/saasplatform/saasservicemgmt/v1beta1/deployments_resources.proto\022" + + "1google.cloud.saasplatform.saasservicemgmt.v1beta1\032\037google/api/field_behavior.pr" + + "oto\032\033google/api/field_info.proto\032\031google" + + "/api/resource.proto\032>google/cloud/saaspl" + + "atform/saasservicemgmt/v1beta1/common.proto\032\037google/protobuf/timestamp.proto\"\035\n" + + "\010Location\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\001\"\231\005\n" + + "\004Saas\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\022S\n" + + "\tlocations\030\004 \003(\0132;.goo" + + "gle.cloud.saasplatform.saasservicemgmt.v1beta1.LocationB\003\340A\001\022Y\n" + + "\006labels\030\241Q \003(\0132C." + + "google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas.LabelsEntryB\003\340A\001\022c\n" + + "\013annotations\030\242Q \003(\0132H.google.cloud.saasplatfor" + + "m.saasservicemgmt.v1beta1.Saas.AnnotationsEntryB\003\340A\001\022\031\n" + + "\003uid\030\331O \001(\tB\013\340A\003\342\214\317\327\010\002\010\001\022\022\n" + + "\004etag\030\332O \001(\tB\003\340A\003\0225\n" + + "\013create_time\030\277P \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0225\n" + + "\013update_time\030\300P \001(\0132\032.google.protobuf.TimestampB\003\340A\003\032-\n" + + "\013LabelsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\0322\n" + + "\020AnnotationsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001:i\352Af\n" + + "#saasservicemgmt.googleapis.com/Saas\0223projects" + + "/{project}/locations/{location}/saas/{saas}*\004saas2\004saas\"\267\005\n" + + "\006Tenant\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\022!\n" + + "\021consumer_resource\030\002 \001(\tB\006\340A\001\340A\005\022<\n" + + "\004saas\030\003 \001(\tB.\340A\002\340A\005\372A%\n" + + "#saasservicemgmt.googleapis.com/Saas\022[\n" + + "\006labels\030\241Q \003(\0132" + + "E.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant.LabelsEntryB\003\340A\001\022e\n" + + "\013annotations\030\242Q \003(\0132J.google.cloud.saaspla" + + "tform.saasservicemgmt.v1beta1.Tenant.AnnotationsEntryB\003\340A\001\022\031\n" + + "\003uid\030\331O \001(\tB\013\340A\003\342\214\317\327\010\002\010\001\022\022\n" + + "\004etag\030\332O \001(\tB\003\340A\003\0225\n" + + "\013create_time\030\277P \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0225\n" + + "\013update_time\030\300P \001(\0132\032.google.protobuf.TimestampB\003\340A\003\032-\n" + + "\013LabelsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\0322\n" + + "\020AnnotationsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001:u\352Ar\n" + + "%saasservicemgmt.googleapis.com/Tenant\0228" + + "projects/{project}/locations/{location}/tenants/{tenant}*\007tenants2\006tenant\"\237\010\n" + + "\010UnitKind\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\022G\n" + + "\017default_release\030\002 \001(\tB.\340A\001\372A(\n" + + "&saasservicemgmt.googleapis.com/Release\022[\n" + + "\014dependencies\030\004 \003(\013" + + "2=.google.cloud.saasplatform.saasservicemgmt.v1beta1.DependencyB\006\340A\001\340A\005\022h\n" + + "\027input_variable_mappings\030\005 \003(\0132B.google.cloud." + + "saasplatform.saasservicemgmt.v1beta1.VariableMappingB\003\340A\001\022i\n" + + "\030output_variable_mappings\030\006 \003(\0132B.google.cloud.saasplatform." + + "saasservicemgmt.v1beta1.VariableMappingB\003\340A\001\022<\n" + + "\004saas\030\010 \001(\tB.\340A\002\340A\005\372A%\n" + + "#saasservicemgmt.googleapis.com/Saas\022]\n" + + "\006labels\030\241Q \003(\0132G.google.cloud.saasplatform.saasserv" + + "icemgmt.v1beta1.UnitKind.LabelsEntryB\003\340A\001\022g\n" + + "\013annotations\030\242Q \003(\0132L.google.cloud.s" + + "aasplatform.saasservicemgmt.v1beta1.UnitKind.AnnotationsEntryB\003\340A\001\022\031\n" + + "\003uid\030\331O \001(\tB\013\340A\003\342\214\317\327\010\002\010\001\022\022\n" + + "\004etag\030\332O \001(\tB\003\340A\003\0225\n" + + "\013create_time\030\277P \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0225\n" + + "\013update_time\030\300P \001(\0132\032.google.protobuf.TimestampB\003\340A\003\032-\n" + + "\013LabelsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\0322\n" + + "\020AnnotationsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001:\177\352A|\n" + + "\'saasservicemgmt.googleapis.com/" + + "UnitKind\022.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeprovisionB\003\340A\001H\000\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\022<\n" + + "\004unit\030\002 \001(\tB.\340A\002\340A\005\372A%\n" + + "#saasservicemgmt.googleapis.com/Unit\022S\n" + + "\025parent_unit_operation\030\003 \001(\tB4\340A\001\372A.\n" + + ",saasservicemgmt.googleapis.com/UnitOperation\022?\n" + + "\007rollout\030\004 \001(\tB.\340A\001\372A(\n" + + "&saasservicemgmt.googleapis.com/Rollout\022\023\n" + + "\006cancel\030\005 \001(\010B\003\340A\001\022j\n" + + "\005state\030\006 \001(\0162S.google.cloud.saaspla" + + "tform.saasservicemgmt.v1beta1.UnitOperation.UnitOperationStateB\006\340A\001\340A\003\022e\n\n" + + "conditions\030\007 \003(\0132I.google.cloud.saasplatform.s" + + "aasservicemgmt.v1beta1.UnitOperationConditionB\006\340A\001\340A\003\022R\n" + + "\010schedule\030\014 \001(\0132;.google" + + ".cloud.saasplatform.saasservicemgmt.v1beta1.ScheduleB\003\340A\001\022\034\n" + + "\014engine_state\030\016 \001(\tB\006\340A\001\340A\003\022m\n" + + "\016error_category\030\017 \001(\0162M.google.cloud.saasplatform.saasservicemgmt.v1be" + + "ta1.UnitOperationErrorCategoryB\006\340A\001\340A\003\022b\n" + + "\006labels\030\241Q \003(\0132L.google.cloud.saasplatf" + + "orm.saasservicemgmt.v1beta1.UnitOperation.LabelsEntryB\003\340A\001\022l\n" + + "\013annotations\030\242Q \003(\0132Q.google.cloud.saasplatform.saasservice" + + "mgmt.v1beta1.UnitOperation.AnnotationsEntryB\003\340A\001\022\031\n" + + "\003uid\030\331O \001(\tB\013\340A\003\342\214\317\327\010\002\010\001\022\022\n" + + "\004etag\030\332O \001(\tB\003\340A\003\0225\n" + + "\013create_time\030\277P \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0225\n" + + "\013update_time\030\300P \001(\0132\032.google.protobuf.TimestampB\003\340A\003\032-\n" + + "\013LabelsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\0322\n" + + "\020AnnotationsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\"\207\002\n" + + "\022UnitOperationState\022 \n" + + "\034UNIT_OPERATION_STATE_UNKNOWN\020\000\022 \n" + + "\034UNIT_OPERATION_STATE_PENDING\020\001\022\"\n" + + "\036UNIT_OPERATION_STATE_SCHEDULED\020\002\022 \n" + + "\034UNIT_OPERATION_STATE_RUNNING\020\004\022\"\n" + + "\036UNIT_OPERATION_STATE_SUCCEEDED\020\005\022\037\n" + + "\033UNIT_OPERATION_STATE_FAILED\020\006\022\"\n" + + "\036UNIT_OPERATION_STATE_CANCELLED\020\007:\231\001\352A\225\001\n" + + ",saasservicemgmt.googleapis.com/UnitOperation\022Fprojects/{proje" + + "ct}/locations/{location}/unitOperations/{unitOperation}*\016unitOperations2\r" + + "unitOperationB\025\n" + + "\023unit_operation_type\"\253\001\n" + + "\tProvision\022?\n" + + "\007release\030\001 \001(\tB.\340A\001\372A(\n" + + "&saasservicemgmt.googleapis.com/Release\022]\n" + + "\017input_variables\030\003 \003(\0132?.google.cloud.saasplatfor" + + "m.saasservicemgmt.v1beta1.UnitVariableB\003\340A\001\"\r\n" + + "\013Deprovision\"\251\001\n" + + "\007Upgrade\022?\n" + + "\007release\030\001 \001(\tB.\340A\001\372A(\n" + + "&saasservicemgmt.googleapis.com/Release\022]\n" + + "\017input_variables\030\002 \003(\013" + + "2?.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariableB\003\340A\001\"?\n" + + "\010Schedule\0223\n\n" + + "start_time\030\001 \001(\0132\032.google.protobuf.TimestampB\003\340A\001\"\204\n\n" + + "\007Release\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\022E\n" + + "\tunit_kind\030\002 \001(\tB2\340A\002\340A\005\372A)\n" + + "\'saasservicemgmt.googleapis.com/UnitKind\022T\n" + + "\tblueprint\030\003 \001(\0132<.google.cloud.saasplat" + + "form.saasservicemgmt.v1beta1.BlueprintB\003\340A\001\022q\n" + + "\024release_requirements\030\004 \001(\0132N.goog" + + "le.cloud.saasplatform.saasservicemgmt.v1" + + "beta1.Release.ReleaseRequirementsB\003\340A\001\022`\n" + + "\017input_variables\030\005 \003(\0132?.google.cloud.s" + + "aasplatform.saasservicemgmt.v1beta1.UnitVariableB\006\340A\001\340A\003\022a\n" + + "\020output_variables\030\006 \003" + + "(\0132?.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariableB\006\340A\001\340A\003\022e\n" + + "\027input_variable_defaults\030\007 \003(\0132?.google.cl" + + "oud.saasplatform.saasservicemgmt.v1beta1.UnitVariableB\003\340A\001\022\\\n" + + "\006labels\030\241Q \003(\0132F.go" + + "ogle.cloud.saasplatform.saasservicemgmt.v1beta1.Release.LabelsEntryB\003\340A\001\022f\n" + + "\013annotations\030\242Q \003(\0132K.google.cloud.saasplatfo" + + "rm.saasservicemgmt.v1beta1.Release.AnnotationsEntryB\003\340A\001\022\031\n" + + "\003uid\030\331O \001(\tB\013\340A\003\342\214\317\327\010\002\010\001\022\022\n" + + "\004etag\030\332O \001(\tB\003\340A\003\0225\n" + + "\013create_time\030\277P \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0225\n" + + "\013update_time\030\300P \001(\0132\032.google.protobuf.TimestampB\003\340A\003\032h\n" + + "\023ReleaseRequirements\022Q\n" + + "\031upgradeable_from_releases\030\001 \003(\tB.\340A\001\372A(\n" + + "&saasservicemgmt.googleapis.com/Release\032-\n" + + "\013LabelsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\0322\n" + + "\020AnnotationsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001:z\352Aw\n" + + "&saasservicemgmt.googleapis.com/Release\022:projects/{proje" + + "ct}/locations/{location}/releases/{release}*\010releases2\007release\"\336\001\n" + + "\017VariableMapping\022S\n" + + "\004from\030\002 \001(\0132>.google.cloud.saasplat" + + "form.saasservicemgmt.v1beta1.FromMappingB\003\340A\001H\000\022O\n" + + "\002to\030\003 \001(\0132<.google.cloud.saasp" + + "latform.saasservicemgmt.v1beta1.ToMappingB\003\340A\001H\000\022\025\n" + + "\010variable\030\001 \001(\tB\003\340A\002B\016\n" + + "\014mapping_type\"D\n" + + "\013FromMapping\022\027\n\n" + + "dependency\030\001 \001(\tB\003\340A\002\022\034\n" + + "\017output_variable\030\002 \001(\tB\003\340A\002\"a\n" + + "\tToMapping\022\027\n\n" + + "dependency\030\001 \001(\tB\003\340A\002\022\033\n" + + "\016input_variable\030\002 \001(\tB\003\340A\002\022\036\n" + + "\021ignore_for_lookup\030\003 \001(\010B\003\340A\001\"g\n\n" + + "Dependency\022E\n" + + "\tunit_kind\030\001 \001(\tB2\340A\002\340A\005\372A)\n" + + "\'saasservicemgmt.googleapis.com/UnitKind\022\022\n" + + "\005alias\030\002 \001(\tB\003\340A\002B\331\002\n" + + "5com.google.cloud.saasplatform.saasservicemgmt.v1beta1B\035SaasDeploymentsReso" + + "urcesProtoP\001Z_cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasse" + + "rvicemgmtpb;saasservicemgmtpb\252\0021Google.Cloud.SaasPlatform.SaasServiceMgmt.V1Beta" + + "1\312\0021Google\\Cloud\\SaasPlatform\\SaasServic" + + "eMgmt\\V1beta1\352\0025Google::Cloud::SaasPlatf" + + "orm::SaasServiceMgmt::V1beta1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.FieldInfoProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CommonProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Location_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Location_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Location_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Saas_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Saas_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Saas_descriptor, + new java.lang.String[] { + "Name", + "Locations", + "Labels", + "Annotations", + "Uid", + "Etag", + "CreateTime", + "UpdateTime", + }); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Saas_LabelsEntry_descriptor = + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Saas_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Saas_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Saas_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Saas_AnnotationsEntry_descriptor = + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Saas_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Saas_AnnotationsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Saas_AnnotationsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Tenant_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Tenant_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Tenant_descriptor, + new java.lang.String[] { + "Name", + "ConsumerResource", + "Saas", + "Labels", + "Annotations", + "Uid", + "Etag", + "CreateTime", + "UpdateTime", + }); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Tenant_LabelsEntry_descriptor = + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Tenant_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Tenant_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Tenant_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Tenant_AnnotationsEntry_descriptor = + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Tenant_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Tenant_AnnotationsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Tenant_AnnotationsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UnitKind_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UnitKind_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UnitKind_descriptor, + new java.lang.String[] { + "Name", + "DefaultRelease", + "Dependencies", + "InputVariableMappings", + "OutputVariableMappings", + "Saas", + "Labels", + "Annotations", + "Uid", + "Etag", + "CreateTime", + "UpdateTime", + }); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UnitKind_LabelsEntry_descriptor = + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UnitKind_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UnitKind_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UnitKind_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UnitKind_AnnotationsEntry_descriptor = + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UnitKind_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UnitKind_AnnotationsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UnitKind_AnnotationsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Unit_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Unit_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Unit_descriptor, + new java.lang.String[] { + "Name", + "UnitKind", + "Release", + "Tenant", + "OngoingOperations", + "PendingOperations", + "ScheduledOperations", + "Dependents", + "Dependencies", + "InputVariables", + "OutputVariables", + "Maintenance", + "State", + "Conditions", + "ManagementMode", + "SystemManagedState", + "SystemCleanupAt", + "Labels", + "Annotations", + "Uid", + "Etag", + "CreateTime", + "UpdateTime", + }); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Unit_MaintenanceSettings_descriptor = + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Unit_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Unit_MaintenanceSettings_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Unit_MaintenanceSettings_descriptor, + new java.lang.String[] { + "PinnedUntilTime", + }); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Unit_LabelsEntry_descriptor = + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Unit_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Unit_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Unit_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Unit_AnnotationsEntry_descriptor = + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Unit_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Unit_AnnotationsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Unit_AnnotationsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UnitDependency_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UnitDependency_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UnitDependency_descriptor, + new java.lang.String[] { + "Alias", "Unit", + }); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UnitOperation_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UnitOperation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UnitOperation_descriptor, + new java.lang.String[] { + "Provision", + "Upgrade", + "Deprovision", + "Name", + "Unit", + "ParentUnitOperation", + "Rollout", + "Cancel", + "State", + "Conditions", + "Schedule", + "EngineState", + "ErrorCategory", + "Labels", + "Annotations", + "Uid", + "Etag", + "CreateTime", + "UpdateTime", + "UnitOperationType", + }); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UnitOperation_LabelsEntry_descriptor = + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UnitOperation_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UnitOperation_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UnitOperation_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UnitOperation_AnnotationsEntry_descriptor = + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UnitOperation_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UnitOperation_AnnotationsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UnitOperation_AnnotationsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Provision_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Provision_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Provision_descriptor, + new java.lang.String[] { + "Release", "InputVariables", + }); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Deprovision_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Deprovision_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Deprovision_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Upgrade_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Upgrade_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Upgrade_descriptor, + new java.lang.String[] { + "Release", "InputVariables", + }); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Schedule_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Schedule_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Schedule_descriptor, + new java.lang.String[] { + "StartTime", + }); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Release_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Release_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Release_descriptor, + new java.lang.String[] { + "Name", + "UnitKind", + "Blueprint", + "ReleaseRequirements", + "InputVariables", + "OutputVariables", + "InputVariableDefaults", + "Labels", + "Annotations", + "Uid", + "Etag", + "CreateTime", + "UpdateTime", + }); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Release_ReleaseRequirements_descriptor = + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Release_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Release_ReleaseRequirements_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Release_ReleaseRequirements_descriptor, + new java.lang.String[] { + "UpgradeableFromReleases", + }); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Release_LabelsEntry_descriptor = + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Release_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Release_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Release_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Release_AnnotationsEntry_descriptor = + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Release_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Release_AnnotationsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Release_AnnotationsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_VariableMapping_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_VariableMapping_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_VariableMapping_descriptor, + new java.lang.String[] { + "From", "To", "Variable", "MappingType", + }); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_FromMapping_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_FromMapping_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_FromMapping_descriptor, + new java.lang.String[] { + "Dependency", "OutputVariable", + }); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ToMapping_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ToMapping_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ToMapping_descriptor, + new java.lang.String[] { + "Dependency", "InputVariable", "IgnoreForLookup", + }); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Dependency_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Dependency_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Dependency_descriptor, + new java.lang.String[] { + "UnitKind", "Alias", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.FieldInfoProto.fieldInfo); + 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.FieldInfoProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CommonProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/SaasDeploymentsServiceProto.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/SaasDeploymentsServiceProto.java new file mode 100644 index 000000000000..32df12a75584 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/SaasDeploymentsServiceProto.java @@ -0,0 +1,856 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +public final class SaasDeploymentsServiceProto { + private SaasDeploymentsServiceProto() {} + + 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_saasplatform_saasservicemgmt_v1beta1_ListSaasRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListSaasRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListSaasResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListSaasResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_GetSaasRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_GetSaasRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_CreateSaasRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_CreateSaasRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UpdateSaasRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UpdateSaasRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_DeleteSaasRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_DeleteSaasRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListTenantsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListTenantsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListTenantsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListTenantsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_GetTenantRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_GetTenantRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_CreateTenantRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_CreateTenantRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UpdateTenantRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UpdateTenantRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_DeleteTenantRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_DeleteTenantRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListUnitKindsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListUnitKindsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListUnitKindsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListUnitKindsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_GetUnitKindRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_GetUnitKindRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_CreateUnitKindRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_CreateUnitKindRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UpdateUnitKindRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UpdateUnitKindRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_DeleteUnitKindRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_DeleteUnitKindRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListUnitsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListUnitsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListUnitsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListUnitsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_GetUnitRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_GetUnitRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_CreateUnitRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_CreateUnitRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UpdateUnitRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UpdateUnitRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_DeleteUnitRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_DeleteUnitRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListUnitOperationsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListUnitOperationsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListUnitOperationsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListUnitOperationsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_GetUnitOperationRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_GetUnitOperationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_CreateUnitOperationRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_CreateUnitOperationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UpdateUnitOperationRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UpdateUnitOperationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_DeleteUnitOperationRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_DeleteUnitOperationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListReleasesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListReleasesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListReleasesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListReleasesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_GetReleaseRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_GetReleaseRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_CreateReleaseRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_CreateReleaseRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UpdateReleaseRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UpdateReleaseRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_DeleteReleaseRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_DeleteReleaseRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n" + + "Kgoogle/cloud/saasplatform/saasservicemgmt/v1beta1/deployments_service.proto\0221g" + + "oogle.cloud.saasplatform.saasservicemgmt" + + ".v1beta1\032\034google/api/annotations.proto\032\027" + + "google/api/client.proto\032\037google/api/fiel" + + "d_behavior.proto\032\031google/api/resource.pr" + + "oto\032Mgoogle/cloud/saasplatform/saasservi" + + "cemgmt/v1beta1/deployments_resources.proto\032\033google/protobuf/empty.proto\032" + + " google/protobuf/field_mask.proto\"\234\001\n" + + "\017ListSaasRequest\022<\n" + + "\006parent\030\226N \001(" + + "\tB+\340A\002\372A%\022#saasservicemgmt.googleapis.com/Saas\022\022\n" + + "\tpage_size\030\211R \001(\005\022\023\n\n" + + "page_token\030\212R \001(\t\022\017\n" + + "\006filter\030\213R \001(\t\022\021\n" + + "\010order_by\030\214R \001(\t\"\212\001\n" + + "\020ListSaasResponse\022F\n" + + "\004saas\030\215R" + + " \003(\01327.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas\022\030\n" + + "\017next_page_token\030\216R \001(\t\022\024\n" + + "\013unreachable\030\217R \003(\t\"L\n" + + "\016GetSaasRequest\022:\n" + + "\004name\030\221N \001(\tB+\340A\002\372A%\n" + + "#saasservicemgmt.googleapis.com/Saas\"\342\001\n" + + "\021CreateSaasRequest\022<\n" + + "\006parent\030\226N \001(" + + "\tB+\340A\002\372A%\022#saasservicemgmt.googleapis.com/Saas\022\025\n" + + "\007saas_id\030\207R \001(\tB\003\340A\002\022K\n" + + "\004saas\030\210R" + + " \001(\01327.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasB\003\340A\002\022\026\n\r" + + "validate_only\030\205R \001(\010\022\023\n\n" + + "request_id\030\206R \001(\t\"\277\001\n" + + "\021UpdateSaasRequest\022K\n" + + "\004saas\030\210R \001(\01327.google.c" + + "loud.saasplatform.saasservicemgmt.v1beta1.SaasB\003\340A\002\022\026\n\r" + + "validate_only\030\205R \001(\010\022\023\n\n" + + "request_id\030\206R \001(\t\0220\n" + + "\013update_mask\030\220R \001(\0132\032.google.protobuf.FieldMask\"\213\001\n" + + "\021DeleteSaasRequest\022:\n" + + "\004name\030\221N \001(\tB+\340A\002\372A%\n" + + "#saasservicemgmt.googleapis.com/Saas\022\r\n" + + "\004etag\030\332O \001(\t\022\026\n\r" + + "validate_only\030\205R \001(\010\022\023\n\n" + + "request_id\030\206R \001(\t\"\241\001\n" + + "\022ListTenantsRequest\022>\n" + + "\006parent\030\226N \001(" + + "\tB-\340A\002\372A\'\022%saasservicemgmt.googleapis.com/Tenant\022\022\n" + + "\tpage_size\030\211R \001(\005\022\023\n\n" + + "page_token\030\212R \001(\t\022\017\n" + + "\006filter\030\213R \001(\t\022\021\n" + + "\010order_by\030\214R \001(\t\"\222\001\n" + + "\023ListTenantsResponse\022K\n" + + "\007tenants\030\215R" + + " \003(\01329.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant\022\030\n" + + "\017next_page_token\030\216R \001(\t\022\024\n" + + "\013unreachable\030\217R \003(\t\"P\n" + + "\020GetTenantRequest\022<\n" + + "\004name\030\221N \001(\tB-\340A\002\372A\'\n" + + "%saasservicemgmt.googleapis.com/Tenant\"\354\001\n" + + "\023CreateTenantRequest\022>\n" + + "\006parent\030\226N \001(" + + "\tB-\340A\002\372A\'\022%saasservicemgmt.googleapis.com/Tenant\022\027\n" + + "\ttenant_id\030\207R \001(\tB\003\340A\002\022O\n" + + "\006tenant\030\210R" + + " \001(\01329.google.cloud.saasplatform.saasservicemgmt.v1beta1.TenantB\003\340A\002\022\026\n" + + "\r" + + "validate_only\030\205R \001(\010\022\023\n\n" + + "request_id\030\206R \001(\t\"\305\001\n" + + "\023UpdateTenantRequest\022O\n" + + "\006tenant\030\210R " + + "\001(\01329.google.cloud.saasplatform.saasservicemgmt.v1beta1.TenantB\003\340A\002\022\026\n\r" + + "validate_only\030\205R \001(\010\022\023\n\n" + + "request_id\030\206R \001(\t\0220\n" + + "\013update_mask\030\220R \001(\0132\032.google.protobuf.FieldMask\"\217\001\n" + + "\023DeleteTenantRequest\022<\n" + + "\004name\030\221N \001(\tB-\340A\002\372A\'\n" + + "%saasservicemgmt.googleapis.com/Tenant\022\r\n" + + "\004etag\030\332O \001(\t\022\026\n\r" + + "validate_only\030\205R \001(\010\022\023\n\n" + + "request_id\030\206R \001(\t\"\245\001\n" + + "\024ListUnitKindsRequest\022@\n" + + "\006parent\030\226N \001(\tB/\340A\002\372A)\022\'" + + "saasservicemgmt.googleapis.com/UnitKind\022\022\n" + + "\tpage_size\030\211R \001(\005\022\023\n\n" + + "page_token\030\212R \001(\t\022\017\n" + + "\006filter\030\213R \001(\t\022\021\n" + + "\010order_by\030\214R \001(\t\"\231\001\n" + + "\025ListUnitKindsResponse\022P\n\n" + + "unit_kinds\030\215R " + + "\003(\0132;.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind\022\030\n" + + "\017next_page_token\030\216R \001(\t\022\024\n" + + "\013unreachable\030\217R \003(\t\"T\n" + + "\022GetUnitKindRequest\022>\n" + + "\004name\030\221N \001(\tB/\340A\002\372A)\n" + + "\'saasservicemgmt.googleapis.com/UnitKind\"\370\001\n" + + "\025CreateUnitKindRequest\022@\n" + + "\006parent\030\226N \001(" + + "\tB/\340A\002\372A)\022\'saasservicemgmt.googleapis.com/UnitKind\022\032\n" + + "\014unit_kind_id\030\207R \001(\tB\003\340A\002\022T\n" + + "\tunit_kind\030\210R \001(\0132;.google.cloud.saaspl" + + "atform.saasservicemgmt.v1beta1.UnitKindB\003\340A\002\022\026\n\r" + + "validate_only\030\205R \001(\010\022\023\n\n" + + "request_id\030\206R \001(\t\"\314\001\n" + + "\025UpdateUnitKindRequest\022T\n" + + "\tunit_kind\030\210R \001(\0132;.google.cloud.saasplatf" + + "orm.saasservicemgmt.v1beta1.UnitKindB\003\340A\002\022\026\n\r" + + "validate_only\030\205R \001(\010\022\023\n\n" + + "request_id\030\206R \001(\t\0220\n" + + "\013update_mask\030\220R \001(\0132\032.google.protobuf.FieldMask\"\223\001\n" + + "\025DeleteUnitKindRequest\022>\n" + + "\004name\030\221N \001(\tB/\340A\002\372A)\n" + + "\'saasservicemgmt.googleapis.com/UnitKind\022\r\n" + + "\004etag\030\332O \001(\t\022\026\n\r" + + "validate_only\030\205R \001(\010\022\023\n\n" + + "request_id\030\206R \001(\t\"\235\001\n" + + "\020ListUnitsRequest\022<\n" + + "\006parent\030\226N \001(" + + "\tB+\340A\002\372A%\022#saasservicemgmt.googleapis.com/Unit\022\022\n" + + "\tpage_size\030\211R \001(\005\022\023\n\n" + + "page_token\030\212R \001(\t\022\017\n" + + "\006filter\030\213R \001(\t\022\021\n" + + "\010order_by\030\214R \001(\t\"\214\001\n" + + "\021ListUnitsResponse\022G\n" + + "\005units\030\215R" + + " \003(\01327.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit\022\030\n" + + "\017next_page_token\030\216R \001(\t\022\024\n" + + "\013unreachable\030\217R \003(\t\"L\n" + + "\016GetUnitRequest\022:\n" + + "\004name\030\221N \001(\tB+\340A\002\372A%\n" + + "#saasservicemgmt.googleapis.com/Unit\"\342\001\n" + + "\021CreateUnitRequest\022<\n" + + "\006parent\030\226N \001(" + + "\tB+\340A\002\372A%\022#saasservicemgmt.googleapis.com/Unit\022\025\n" + + "\007unit_id\030\207R \001(\tB\003\340A\002\022K\n" + + "\004unit\030\210R \001(\01327.google.c" + + "loud.saasplatform.saasservicemgmt.v1beta1.UnitB\003\340A\002\022\026\n\r" + + "validate_only\030\205R \001(\010\022\023\n\n" + + "request_id\030\206R \001(\t\"\277\001\n" + + "\021UpdateUnitRequest\022K\n" + + "\004unit\030\210R" + + " \001(\01327.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitB\003\340A\002\022\026\n\r" + + "validate_only\030\205R \001(\010\022\023\n\n" + + "request_id\030\206R \001(\t\0220\n" + + "\013update_mask\030\220R \001(\0132\032.google.protobuf.FieldMask\"\213\001\n" + + "\021DeleteUnitRequest\022:\n" + + "\004name\030\221N \001(\tB+\340A\002\372A%\n" + + "#saasservicemgmt.googleapis.com/Unit\022\r\n" + + "\004etag\030\332O \001(\t\022\026\n\r" + + "validate_only\030\205R \001(\010\022\023\n\n" + + "request_id\030\206R \001(\t\"\257\001\n" + + "\031ListUnitOperationsRequest\022E\n" + + "\006parent\030\226N \001(\tB" + + "4\340A\002\372A.\022,saasservicemgmt.googleapis.com/UnitOperation\022\022\n" + + "\tpage_size\030\211R \001(\005\022\023\n\n" + + "page_token\030\212R \001(\t\022\017\n" + + "\006filter\030\213R \001(\t\022\021\n" + + "\010order_by\030\214R \001(\t\"\250\001\n" + + "\032ListUnitOperationsResponse\022Z\n" + + "\017unit_operations\030\215R \003(\0132@.google.clo" + + "ud.saasplatform.saasservicemgmt.v1beta1.UnitOperation\022\030\n" + + "\017next_page_token\030\216R \001(\t\022\024\n" + + "\013unreachable\030\217R \003(\t\"^\n" + + "\027GetUnitOperationRequest\022C\n" + + "\004name\030\221N \001(\tB4\340A\002\372A.\n" + + ",saasservicemgmt.googleapis.com/UnitOperation\"\221\002\n" + + "\032CreateUnitOperationRequest\022E\n" + + "\006parent\030\226N \001(" + + "\tB4\340A\002\372A.\022,saasservicemgmt.googleapis.com/UnitOperation\022\037\n" + + "\021unit_operation_id\030\207R \001(\tB\003\340A\002\022^\n" + + "\016unit_operation\030\210R \001(\0132@." + + "google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationB\003\340A\002\022\026\n\r" + + "validate_only\030\205R \001(\010\022\023\n\n" + + "request_id\030\206R \001(\t\"\333\001\n" + + "\032UpdateUnitOperationRequest\022^\n" + + "\016unit_operation\030\210R \001(\0132@.google.cloud.saasplatform.sa" + + "asservicemgmt.v1beta1.UnitOperationB\003\340A\002\022\026\n\r" + + "validate_only\030\205R \001(\010\022\023\n\n" + + "request_id\030\206R \001(\t\0220\n" + + "\013update_mask\030\220R \001(\0132\032.google.protobuf.FieldMask\"\235\001\n" + + "\032DeleteUnitOperationRequest\022C\n" + + "\004name\030\221N \001(\tB4\340A\002\372A.\n" + + ",saasservicemgmt.googleapis.com/UnitOperation\022\r\n" + + "\004etag\030\332O \001(\t\022\026\n\r" + + "validate_only\030\205R \001(\010\022\023\n\n" + + "request_id\030\206R \001(\t\"\243\001\n" + + "\023ListReleasesRequest\022?\n" + + "\006parent\030\226N \001(" + + "\tB.\340A\002\372A(\022&saasservicemgmt.googleapis.com/Release\022\022\n" + + "\tpage_size\030\211R \001(\005\022\023\n\n" + + "page_token\030\212R \001(\t\022\017\n" + + "\006filter\030\213R \001(\t\022\021\n" + + "\010order_by\030\214R \001(\t\"\225\001\n" + + "\024ListReleasesResponse\022M\n" + + "\010releases\030\215R \003(\0132:.google.cloud" + + ".saasplatform.saasservicemgmt.v1beta1.Release\022\030\n" + + "\017next_page_token\030\216R \001(\t\022\024\n" + + "\013unreachable\030\217R \003(\t\"R\n" + + "\021GetReleaseRequest\022=\n" + + "\004name\030\221N \001(\tB.\340A\002\372A(\n" + + "&saasservicemgmt.googleapis.com/Release\"\361\001\n" + + "\024CreateReleaseRequest\022?\n" + + "\006parent\030\226N \001(" + + "\tB.\340A\002\372A(\022&saasservicemgmt.googleapis.com/Release\022\030\n\n" + + "release_id\030\207R \001(\tB\003\340A\002\022Q\n" + + "\007release\030\210R \001(\0132:.google" + + ".cloud.saasplatform.saasservicemgmt.v1beta1.ReleaseB\003\340A\002\022\026\n\r" + + "validate_only\030\205R \001(\010\022\023\n\n" + + "request_id\030\206R \001(\t\"\310\001\n" + + "\024UpdateReleaseRequest\022Q\n" + + "\007release\030\210R \001(\0132:.google.cloud." + + "saasplatform.saasservicemgmt.v1beta1.ReleaseB\003\340A\002\022\026\n\r" + + "validate_only\030\205R \001(\010\022\023\n\n" + + "request_id\030\206R \001(\t\0220\n" + + "\013update_mask\030\220R \001(\0132\032.google.protobuf.FieldMask\"\221\001\n" + + "\024DeleteReleaseRequest\022=\n" + + "\004name\030\221N \001(\tB.\340A\002\372A(\n" + + "&saasservicemgmt.googleapis.com/Release\022\r\n" + + "\004etag\030\332O \001(\t\022\026\n\r" + + "validate_only\030\205R \001(\010\022\023\n\n" + + "request_id\030\206R \001(\t2\2355\n" + + "\017SaasDeployments\022\323\001\n" + + "\010ListSaas\022B.google.cloud.saasplatform.saasse" + + "rvicemgmt.v1beta1.ListSaasRequest\032C.google.cloud.saasplatform.saasservicemgmt.v1" + + "beta1.ListSaasResponse\">\332A\006parent\202\323\344\223\002/\022" + + "-/v1beta1/{parent=projects/*/locations/*}/saas\022\303\001\n" + + "\007GetSaas\022A.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetSaasRe" + + "quest\0327.google.cloud.saasplatform.saasse" + + "rvicemgmt.v1beta1.Saas\"<\332A\004name\202\323\344\223\002/\022-/" + + "v1beta1/{name=projects/*/locations/*/saas/*}\022\336\001\n\n" + + "CreateSaas\022D.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateSa" + + "asRequest\0327.google.cloud.saasplatform.sa" + + "asservicemgmt.v1beta1.Saas\"Q\332A\023parent,sa" + + "as,saas_id\202\323\344\223\0025\"-/v1beta1/{parent=projects/*/locations/*}/saas:\004saas\022\340\001\n\n" + + "UpdateSaas\022D.google.cloud.saasplatform.saasser" + + "vicemgmt.v1beta1.UpdateSaasRequest\0327.google.cloud.saasplatform.saasservicemgmt.v" + + "1beta1.Saas\"S\332A\020saas,update_mask\202\323\344\223\002:22" + + "/v1beta1/{saas.name=projects/*/locations/*/saas/*}:\004saas\022\250\001\n\n" + + "DeleteSaas\022D.google.cloud.saasplatform.saasservicemgmt.v1be" + + "ta1.DeleteSaasRequest\032\026.google.protobuf." + + "Empty\"<\332A\004name\202\323\344\223\002/*-/v1beta1/{name=projects/*/locations/*/saas/*}\022\337\001\n" + + "\013ListTenants\022E.google.cloud.saasplatform.saasserv" + + "icemgmt.v1beta1.ListTenantsRequest\032F.google.cloud.saasplatform.saasservicemgmt.v" + + "1beta1.ListTenantsResponse\"A\332A\006parent\202\323\344" + + "\223\0022\0220/v1beta1/{parent=projects/*/locations/*}/tenants\022\314\001\n" + + "\tGetTenant\022C.google.cloud.saasplatform.saasservicemgmt.v1beta1." + + "GetTenantRequest\0329.google.cloud.saasplat" + + "form.saasservicemgmt.v1beta1.Tenant\"?\332A\004" + + "name\202\323\344\223\0022\0220/v1beta1/{name=projects/*/locations/*/tenants/*}\022\355\001\n" + + "\014CreateTenant\022F.google.cloud.saasplatform.saasservicemgm" + + "t.v1beta1.CreateTenantRequest\0329.google.cloud.saasplatform.saasservicemgmt.v1beta" + + "1.Tenant\"Z\332A\027parent,tenant,tenant_id\202\323\344\223" + + "\002:\"0/v1beta1/{parent=projects/*/locations/*}/tenants:\006tenant\022\357\001\n" + + "\014UpdateTenant\022F.google.cloud.saasplatform.saasservicemgm" + + "t.v1beta1.UpdateTenantRequest\0329.google.cloud.saasplatform.saasservicemgmt.v1beta" + + "1.Tenant\"\\\332A\022tenant,update_mask\202\323\344\223\002A27/" + + "v1beta1/{tenant.name=projects/*/locations/*/tenants/*}:\006tenant\022\257\001\n" + + "\014DeleteTenant\022F.google.cloud.saasplatform.saasservicem" + + "gmt.v1beta1.DeleteTenantRequest\032\026.google" + + ".protobuf.Empty\"?\332A\004name\202\323\344\223\0022*0/v1beta1" + + "/{name=projects/*/locations/*/tenants/*}\022\347\001\n\r" + + "ListUnitKinds\022G.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitK" + + "indsRequest\032H.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsRes" + + "ponse\"C\332A\006parent\202\323\344\223\0024\0222/v1beta1/{parent=projects/*/locations/*}/unitKinds\022\324\001\n" + + "\013GetUnitKind\022E.google.cloud.saasplatform.s" + + "aasservicemgmt.v1beta1.GetUnitKindRequest\032;.google.cloud.saasplatform.saasservic" + + "emgmt.v1beta1.UnitKind\"A\332A\004name\202\323\344\223\0024\0222/" + + "v1beta1/{name=projects/*/locations/*/unitKinds/*}\022\376\001\n" + + "\016CreateUnitKind\022H.google.cloud.saasplatform.saasservicemgmt.v1beta1" + + ".CreateUnitKindRequest\032;.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitK" + + "ind\"e\332A\035parent,unit_kind,unit_kind_id\202\323\344" + + "\223\002?\"2/v1beta1/{parent=projects/*/locations/*}/unitKinds:" + + "\tunit_kind\022\200\002\n" + + "\016UpdateUnitKind\022H.google.cloud.saasplatform.saasse" + + "rvicemgmt.v1beta1.UpdateUnitKindRequest\032;.google.cloud.saasplatform.saasservicem" + + "gmt.v1beta1.UnitKind\"g\332A\025unit_kind,updat" + + "e_mask\202\323\344\223\002I2 fieldValuesMap; + private final String project; + private final String location; + private final String saas; + + @Deprecated + protected SaasName() { + project = null; + location = null; + saas = null; + } + + private SaasName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + saas = Preconditions.checkNotNull(builder.getSaas()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getSaas() { + return saas; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static SaasName of(String project, String location, String saas) { + return newBuilder().setProject(project).setLocation(location).setSaas(saas).build(); + } + + public static String format(String project, String location, String saas) { + return newBuilder().setProject(project).setLocation(location).setSaas(saas).build().toString(); + } + + public static SaasName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_SAAS.validatedMatch( + formattedString, "SaasName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("saas")); + } + + 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 (SaasName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_SAAS.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (saas != null) { + fieldMapBuilder.put("saas", saas); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_SAAS.instantiate( + "project", project, "location", location, "saas", saas); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + SaasName that = ((SaasName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.saas, that.saas); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(saas); + return h; + } + + /** Builder for projects/{project}/locations/{location}/saas/{saas}. */ + public static class Builder { + private String project; + private String location; + private String saas; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getSaas() { + return saas; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setSaas(String saas) { + this.saas = saas; + return this; + } + + private Builder(SaasName saasName) { + this.project = saasName.project; + this.location = saasName.location; + this.saas = saasName.saas; + } + + public SaasName build() { + return new SaasName(this); + } + } +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/SaasOrBuilder.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/SaasOrBuilder.java new file mode 100644 index 000000000000..c266f08faf90 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/SaasOrBuilder.java @@ -0,0 +1,456 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_resources.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +public interface SaasOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Identifier. The resource name (full URI of the resource) following the
+   * standard naming scheme:
+   *
+   *   "projects/{project}/locations/{location}/saas/{saas}"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Identifier. The resource name (full URI of the resource) following the
+   * standard naming scheme:
+   *
+   *   "projects/{project}/locations/{location}/saas/{saas}"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. List of locations that the service is available in. Rollout
+   * refers to the list to generate a rollout plan.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Location locations = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getLocationsList(); + + /** + * + * + *
+   * Optional. List of locations that the service is available in. Rollout
+   * refers to the list to generate a rollout plan.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Location locations = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Location getLocations(int index); + + /** + * + * + *
+   * Optional. List of locations that the service is available in. Rollout
+   * refers to the list to generate a rollout plan.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Location locations = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getLocationsCount(); + + /** + * + * + *
+   * Optional. List of locations that the service is available in. Rollout
+   * refers to the list to generate a rollout plan.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Location locations = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getLocationsOrBuilderList(); + + /** + * + * + *
+   * Optional. List of locations that the service is available in. Rollout
+   * refers to the list to generate a rollout plan.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Location locations = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.LocationOrBuilder getLocationsOrBuilder( + int index); + + /** + * + * + *
+   * Optional. The labels on the resource, which can be used for categorization.
+   * similar to Kubernetes resource labels.
+   * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getLabelsCount(); + + /** + * + * + *
+   * Optional. The labels on the resource, which can be used for categorization.
+   * similar to Kubernetes resource labels.
+   * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsLabels(java.lang.String key); + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + + /** + * + * + *
+   * Optional. The labels on the resource, which can be used for categorization.
+   * similar to Kubernetes resource labels.
+   * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map getLabelsMap(); + + /** + * + * + *
+   * Optional. The labels on the resource, which can be used for categorization.
+   * similar to Kubernetes resource labels.
+   * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
+   * Optional. The labels on the resource, which can be used for categorization.
+   * similar to Kubernetes resource labels.
+   * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
+   * Optional. Annotations is an unstructured key-value map stored with a
+   * resource that may be set by external tools to store and retrieve arbitrary
+   * metadata. They are not queryable and should be preserved when modifying
+   * objects.
+   *
+   * More info: https://kubernetes.io/docs/user-guide/annotations
+   * 
+ * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getAnnotationsCount(); + + /** + * + * + *
+   * Optional. Annotations is an unstructured key-value map stored with a
+   * resource that may be set by external tools to store and retrieve arbitrary
+   * metadata. They are not queryable and should be preserved when modifying
+   * objects.
+   *
+   * More info: https://kubernetes.io/docs/user-guide/annotations
+   * 
+ * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsAnnotations(java.lang.String key); + + /** Use {@link #getAnnotationsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getAnnotations(); + + /** + * + * + *
+   * Optional. Annotations is an unstructured key-value map stored with a
+   * resource that may be set by external tools to store and retrieve arbitrary
+   * metadata. They are not queryable and should be preserved when modifying
+   * objects.
+   *
+   * More info: https://kubernetes.io/docs/user-guide/annotations
+   * 
+ * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map getAnnotationsMap(); + + /** + * + * + *
+   * Optional. Annotations is an unstructured key-value map stored with a
+   * resource that may be set by external tools to store and retrieve arbitrary
+   * metadata. They are not queryable and should be preserved when modifying
+   * objects.
+   *
+   * More info: https://kubernetes.io/docs/user-guide/annotations
+   * 
+ * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + java.lang.String getAnnotationsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
+   * Optional. Annotations is an unstructured key-value map stored with a
+   * resource that may be set by external tools to store and retrieve arbitrary
+   * metadata. They are not queryable and should be preserved when modifying
+   * objects.
+   *
+   * More info: https://kubernetes.io/docs/user-guide/annotations
+   * 
+ * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.lang.String getAnnotationsOrThrow(java.lang.String key); + + /** + * + * + *
+   * Output only. The unique identifier of the resource. UID is unique in the
+   * time and space for this resource within the scope of the service. It is
+   * typically generated by the server on successful creation of a resource
+   * and must not be changed. UID is used to uniquely identify resources
+   * with resource name reuses. This should be a UUID4.
+   * 
+ * + * + * string uid = 10201 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The uid. + */ + java.lang.String getUid(); + + /** + * + * + *
+   * Output only. The unique identifier of the resource. UID is unique in the
+   * time and space for this resource within the scope of the service. It is
+   * typically generated by the server on successful creation of a resource
+   * and must not be changed. UID is used to uniquely identify resources
+   * with resource name reuses. This should be a UUID4.
+   * 
+ * + * + * string uid = 10201 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The bytes for uid. + */ + com.google.protobuf.ByteString getUidBytes(); + + /** + * + * + *
+   * Output only. An opaque value that uniquely identifies a version or
+   * generation of a resource. It can be used to confirm that the client
+   * and server agree on the ordering of a resource being written.
+   * 
+ * + * string etag = 10202 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The etag. + */ + java.lang.String getEtag(); + + /** + * + * + *
+   * Output only. An opaque value that uniquely identifies a version or
+   * generation of a resource. It can be used to confirm that the client
+   * and server agree on the ordering of a resource being written.
+   * 
+ * + * string etag = 10202 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); + + /** + * + * + *
+   * Output only. The timestamp when the resource was created.
+   * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
+   * Output only. The timestamp when the resource was created.
+   * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
+   * Output only. The timestamp when the resource was created.
+   * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. The timestamp when the resource was last updated. Any
+   * change to the resource made by users must refresh this value.
+   * Changes to a resource made by the service should refresh this value.
+   * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
+   * Output only. The timestamp when the resource was last updated. Any
+   * change to the resource made by users must refresh this value.
+   * Changes to a resource made by the service should refresh this value.
+   * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
+   * Output only. The timestamp when the resource was last updated. Any
+   * change to the resource made by users must refresh this value.
+   * Changes to a resource made by the service should refresh this value.
+   * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/SaasRolloutsResourcesProto.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/SaasRolloutsResourcesProto.java new file mode 100644 index 000000000000..8a77fd2f4d5b --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/SaasRolloutsResourcesProto.java @@ -0,0 +1,343 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/rollouts_resources.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +public final class SaasRolloutsResourcesProto { + private SaasRolloutsResourcesProto() {} + + 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_saasplatform_saasservicemgmt_v1beta1_Rollout_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Rollout_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Rollout_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Rollout_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Rollout_AnnotationsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Rollout_AnnotationsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_RolloutKind_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_RolloutKind_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_RolloutKind_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_RolloutKind_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_RolloutKind_AnnotationsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_RolloutKind_AnnotationsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ErrorBudget_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ErrorBudget_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_RolloutStats_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_RolloutStats_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_RolloutControl_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_RolloutControl_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_RolloutControl_RunRolloutActionParams_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_RolloutControl_RunRolloutActionParams_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n" + + "Jgoogle/cloud/saasplatform/saasservicemgmt/v1beta1/rollouts_resources.proto\0221go" + + "ogle.cloud.saasplatform.saasservicemgmt.v1beta1\032\037google/api/field_behavior.proto" + + "\032\033google/api/field_info.proto\032\031google/ap" + + "i/resource.proto\032>google/cloud/saasplatf" + + "orm/saasservicemgmt/v1beta1/common.proto\032\037google/protobuf/timestamp.proto\"\321\r\n" + + "\007Rollout\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\022B\n" + + "\007release\030\003 \001(\tB1\340A\001\340A\005\372A(\n" + + "&saasservicemgmt.googleapis.com/Release\0226\n\n" + + "start_time\030\007" + + " \001(\0132\032.google.protobuf.TimestampB\006\340A\001\340A\003\0224\n" + + "\010end_time\030\010" + + " \001(\0132\032.google.protobuf.TimestampB\006\340A\001\340A\003\022[\n" + + "\005state\030\n" + + " \001(\0162G.google.cloud.saaspla" + + "tform.saasservicemgmt.v1beta1.Rollout.RolloutStateB\003\340A\003\022\032\n\r" + + "state_message\030\013 \001(\tB\003\340A\003\022A\n" + + "\025state_transition_time\030\014" + + " \001(\0132\032.google.protobuf.TimestampB\006\340A\001\340A\003\022G\n" + + "\014root_rollout\030\020 \001(\tB1\340A\003\340A\001\372A(\n" + + "&saasservicemgmt.googleapis.com/Rollout\022I\n" + + "\016parent_rollout\030\021 \001(\tB1\340A\003\340A\001\372A(\n" + + "&saasservicemgmt.googleapis.com/Rollout\022+\n" + + "\036rollout_orchestration_strategy\030\023 \001(\tB\003\340A\001\022\030\n" + + "\013unit_filter\030\025 \001(\tB\003\340A\001\022K\n" + + "\014rollout_kind\030\026 \001(\tB5\340A\001\340A\005\372A,\n" + + "*saasservicemgmt.googleapis.com/RolloutKind\022V\n" + + "\005stats\030\030 \001(\0132?.google.cloud.saa" + + "splatform.saasservicemgmt.v1beta1.RolloutStatsB\006\340A\003\340A\001\022W\n" + + "\007control\030\031 \001(\0132A.google" + + ".cloud.saasplatform.saasservicemgmt.v1beta1.RolloutControlB\003\340A\001\022\\\n" + + "\006labels\030\241Q \003(\013" + + "2F.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout.LabelsEntryB\003\340A\001\022f\n" + + "\013annotations\030\242Q \003(\0132K.google.cloud.saasp" + + "latform.saasservicemgmt.v1beta1.Rollout.AnnotationsEntryB\003\340A\001\022\031\n" + + "\003uid\030\331O \001(\tB\013\340A\003\342\214\317\327\010\002\010\001\022\022\n" + + "\004etag\030\332O \001(\tB\003\340A\003\0225\n" + + "\013create_time\030\277P \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0225\n" + + "\013update_time\030\300P \001(\0132\032.google.protobuf.TimestampB\003\340A\003\032-\n" + + "\013LabelsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\0322\n" + + "\020AnnotationsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\"\246\002\n" + + "\014RolloutState\022\035\n" + + "\031ROLLOUT_STATE_UNSPECIFIED\020\000\022\031\n" + + "\025ROLLOUT_STATE_RUNNING\020\001\022\030\n" + + "\024ROLLOUT_STATE_PAUSED\020\002\022\033\n" + + "\027ROLLOUT_STATE_SUCCEEDED\020\003\022\030\n" + + "\024ROLLOUT_STATE_FAILED\020\004\022\033\n" + + "\027ROLLOUT_STATE_CANCELLED\020\005\022\031\n" + + "\025ROLLOUT_STATE_WAITING\020\006\022\034\n" + + "\030ROLLOUT_STATE_CANCELLING\020\007\022\032\n" + + "\026ROLLOUT_STATE_RESUMING\020\010\022\031\n" + + "\025ROLLOUT_STATE_PAUSING\020\t:}\352Az\n" + + "&saasservicemgmt.googleapis.com/Rollout\022=projects/{project}/" + + "locations/{location}/rollouts/{rollout_id}*\010rollouts2\007rollout\"\225\t\n" + + "\013RolloutKind\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\022E\n" + + "\tunit_kind\030\002 \001(\tB2\340A\002\340A\005\372A)\n" + + "\'saasservicemgmt.googleapis.com/UnitKind\022+\n" + + "\036rollout_orchestration_strategy\030\003 \001(\tB\003\340A\001\022\030\n" + + "\013unit_filter\030\005 \001(\tB\003\340A\001\022}\n" + + "\031update_unit_kind_strategy\030\006 \001(\0162U.goog" + + "le.cloud.saasplatform.saasservicemgmt.v1" + + "beta1.RolloutKind.UpdateUnitKindStrategyB\003\340A\001\022^\n" + + "\014error_budget\030\007 \001(\0132>.google.clo" + + "ud.saasplatform.saasservicemgmt.v1beta1.ErrorBudgetB\003\340A\001H\000\210\001\001\022`\n" + + "\006labels\030\241Q \003(\0132J.google.cloud.saasplatform.saasservicemg" + + "mt.v1beta1.RolloutKind.LabelsEntryB\003\340A\001\022j\n" + + "\013annotations\030\242Q \003(\0132O.google.cloud.saa" + + "splatform.saasservicemgmt.v1beta1.RolloutKind.AnnotationsEntryB\003\340A\001\022\031\n" + + "\003uid\030\331O \001(\tB\013\340A\003\342\214\317\327\010\002\010\001\022\022\n" + + "\004etag\030\332O \001(\tB\003\340A\003\0225\n" + + "\013create_time\030\277P \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0225\n" + + "\013update_time\030\300P \001(\0132\032.google.protobuf.TimestampB\003\340A\003\032-\n" + + "\013LabelsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\0322\n" + + "\020AnnotationsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\"\220\001\n" + + "\026UpdateUnitKindStrategy\022)\n" + + "%UPDATE_UNIT_KIND_STRATEGY_UNSPECIFIED\020\000\022&\n" + + "\"UPDATE_UNIT_KIND_STRATEGY_ON_START\020\001\022#\n" + + "\037UPDATE_UNIT_KIND_STRATEGY_NEVER\020\002:\223\001\352A\217\001\n" + + "*saasservicemgmt.googleapis.com/RolloutKind\022Fprojects/{project}/locations/{locatio" + + "n}/rolloutKinds/{rollout_kind_id}*\014rolloutKinds2\013rolloutKindB\017\n\r" + + "_error_budget\"J\n" + + "\013ErrorBudget\022\032\n\r" + + "allowed_count\030\001 \001(\005B\003\340A\001\022\037\n" + + "\022allowed_percentage\030\002 \001(\005B\003\340A\001\"n\n" + + "\014RolloutStats\022^\n" + + "\023operations_by_state\030\002 \003(\0132<" + + ".google.cloud.saasplatform.saasservicemgmt.v1beta1.AggregateB\003\340A\003\"\255\002\n" + + "\016RolloutControl\022s\n\n" + + "run_params\030\002 \001(\0132X.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rol" + + "loutControl.RunRolloutActionParamsB\003\340A\001H\000\022U\n" + + "\006action\030\001 \001(\0162@.google.cloud.saaspla" + + "tform.saasservicemgmt.v1beta1.RolloutActionB\003\340A\002\032>\n" + + "\026RunRolloutActionParams\022$\n" + + "\027retry_failed_operations\030\001 \001(\010B\003\340A\002B\017\n\r" + + "action_params*|\n\r" + + "RolloutAction\022\036\n" + + "\032ROLLOUT_ACTION_UNSPECIFIED\020\000\022\026\n" + + "\022ROLLOUT_ACTION_RUN\020\001\022\030\n" + + "\024ROLLOUT_ACTION_PAUSE\020\002\022\031\n" + + "\025ROLLOUT_ACTION_CANCEL\020\003B\326\002\n" + + "5com.google.cloud.saasplatform.saasservicemgmt.v1beta1B\032SaasR" + + "olloutsResourcesProtoP\001Z_cloud.google.com/go/saasplatform/saasservicemgmt/apiv1b" + + "eta1/saasservicemgmtpb;saasservicemgmtpb\252\0021Google.Cloud.SaasPlatform.SaasService" + + "Mgmt.V1Beta1\312\0021Google\\Cloud\\SaasPlatform" + + "\\SaasServiceMgmt\\V1beta1\352\0025Google::Cloud" + + "::SaasPlatform::SaasServiceMgmt::V1beta1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.FieldInfoProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CommonProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Rollout_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Rollout_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Rollout_descriptor, + new java.lang.String[] { + "Name", + "Release", + "StartTime", + "EndTime", + "State", + "StateMessage", + "StateTransitionTime", + "RootRollout", + "ParentRollout", + "RolloutOrchestrationStrategy", + "UnitFilter", + "RolloutKind", + "Stats", + "Control", + "Labels", + "Annotations", + "Uid", + "Etag", + "CreateTime", + "UpdateTime", + }); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Rollout_LabelsEntry_descriptor = + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Rollout_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Rollout_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Rollout_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Rollout_AnnotationsEntry_descriptor = + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Rollout_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Rollout_AnnotationsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Rollout_AnnotationsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_RolloutKind_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_RolloutKind_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_RolloutKind_descriptor, + new java.lang.String[] { + "Name", + "UnitKind", + "RolloutOrchestrationStrategy", + "UnitFilter", + "UpdateUnitKindStrategy", + "ErrorBudget", + "Labels", + "Annotations", + "Uid", + "Etag", + "CreateTime", + "UpdateTime", + }); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_RolloutKind_LabelsEntry_descriptor = + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_RolloutKind_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_RolloutKind_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_RolloutKind_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_RolloutKind_AnnotationsEntry_descriptor = + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_RolloutKind_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_RolloutKind_AnnotationsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_RolloutKind_AnnotationsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ErrorBudget_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ErrorBudget_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ErrorBudget_descriptor, + new java.lang.String[] { + "AllowedCount", "AllowedPercentage", + }); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_RolloutStats_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_RolloutStats_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_RolloutStats_descriptor, + new java.lang.String[] { + "OperationsByState", + }); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_RolloutControl_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_RolloutControl_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_RolloutControl_descriptor, + new java.lang.String[] { + "RunParams", "Action", "ActionParams", + }); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_RolloutControl_RunRolloutActionParams_descriptor = + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_RolloutControl_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_RolloutControl_RunRolloutActionParams_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_RolloutControl_RunRolloutActionParams_descriptor, + new java.lang.String[] { + "RetryFailedOperations", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.FieldInfoProto.fieldInfo); + 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.FieldInfoProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CommonProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/SaasRolloutsServiceProto.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/SaasRolloutsServiceProto.java new file mode 100644 index 000000000000..ca61ab70dfb6 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/SaasRolloutsServiceProto.java @@ -0,0 +1,350 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/rollouts_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +public final class SaasRolloutsServiceProto { + private SaasRolloutsServiceProto() {} + + 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_saasplatform_saasservicemgmt_v1beta1_ListRolloutsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListRolloutsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListRolloutsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListRolloutsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_GetRolloutRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_GetRolloutRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_CreateRolloutRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_CreateRolloutRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UpdateRolloutRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UpdateRolloutRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_DeleteRolloutRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_DeleteRolloutRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListRolloutKindsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListRolloutKindsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListRolloutKindsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListRolloutKindsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_GetRolloutKindRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_GetRolloutKindRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_CreateRolloutKindRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_CreateRolloutKindRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UpdateRolloutKindRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UpdateRolloutKindRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_DeleteRolloutKindRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_DeleteRolloutKindRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\nHgoogle/cloud/saasplatform/saasservicem" + + "gmt/v1beta1/rollouts_service.proto\0221goog" + + "le.cloud.saasplatform.saasservicemgmt.v1" + + "beta1\032\034google/api/annotations.proto\032\027goo" + + "gle/api/client.proto\032\037google/api/field_b" + + "ehavior.proto\032\031google/api/resource.proto" + + "\032Jgoogle/cloud/saasplatform/saasservicem" + + "gmt/v1beta1/rollouts_resources.proto\032\033go" + + "ogle/protobuf/empty.proto\032 google/protob" + + "uf/field_mask.proto\"\243\001\n\023ListRolloutsRequ" + + "est\022?\n\006parent\030\226N \001(\tB.\340A\002\372A(\022&saasservic" + + "emgmt.googleapis.com/Rollout\022\022\n\tpage_siz" + + "e\030\211R \001(\005\022\023\n\npage_token\030\212R \001(\t\022\017\n\006filter\030" + + "\213R \001(\t\022\021\n\010order_by\030\214R \001(\t\"\225\001\n\024ListRollou" + + "tsResponse\022M\n\010rollouts\030\215R \003(\0132:.google.c" + + "loud.saasplatform.saasservicemgmt.v1beta" + + "1.Rollout\022\030\n\017next_page_token\030\216R \001(\t\022\024\n\013u" + + "nreachable\030\217R \003(\t\"R\n\021GetRolloutRequest\022=" + + "\n\004name\030\221N \001(\tB.\340A\002\372A(\n&saasservicemgmt.g" + + "oogleapis.com/Rollout\"\361\001\n\024CreateRolloutR" + + "equest\022?\n\006parent\030\226N \001(\tB.\340A\002\372A(\022&saasser" + + "vicemgmt.googleapis.com/Rollout\022\030\n\nrollo" + + "ut_id\030\207R \001(\tB\003\340A\002\022Q\n\007rollout\030\210R \001(\0132:.go" + + "ogle.cloud.saasplatform.saasservicemgmt." + + "v1beta1.RolloutB\003\340A\002\022\026\n\rvalidate_only\030\205R" + + " \001(\010\022\023\n\nrequest_id\030\206R \001(\t\"\310\001\n\024UpdateRoll" + + "outRequest\022Q\n\007rollout\030\210R \001(\0132:.google.cl" + + "oud.saasplatform.saasservicemgmt.v1beta1" + + ".RolloutB\003\340A\002\022\026\n\rvalidate_only\030\205R \001(\010\022\023\n" + + "\nrequest_id\030\206R \001(\t\0220\n\013update_mask\030\220R \001(\013" + + "2\032.google.protobuf.FieldMask\"\221\001\n\024DeleteR" + + "olloutRequest\022=\n\004name\030\221N \001(\tB.\340A\002\372A(\n&sa" + + "asservicemgmt.googleapis.com/Rollout\022\r\n\004" + + "etag\030\332O \001(\t\022\026\n\rvalidate_only\030\205R \001(\010\022\023\n\nr" + + "equest_id\030\206R \001(\t\"\253\001\n\027ListRolloutKindsReq" + + "uest\022C\n\006parent\030\226N \001(\tB2\340A\002\372A,\022*saasservi" + + "cemgmt.googleapis.com/RolloutKind\022\022\n\tpag" + + "e_size\030\211R \001(\005\022\023\n\npage_token\030\212R \001(\t\022\017\n\006fi" + + "lter\030\213R \001(\t\022\021\n\010order_by\030\214R \001(\t\"\242\001\n\030ListR" + + "olloutKindsResponse\022V\n\rrollout_kinds\030\215R " + + "\003(\0132>.google.cloud.saasplatform.saasserv" + + "icemgmt.v1beta1.RolloutKind\022\030\n\017next_page" + + "_token\030\216R \001(\t\022\024\n\013unreachable\030\217R \003(\t\"Z\n\025G" + + "etRolloutKindRequest\022A\n\004name\030\221N \001(\tB2\340A\002" + + "\372A,\n*saasservicemgmt.googleapis.com/Roll" + + "outKind\"\207\002\n\030CreateRolloutKindRequest\022C\n\006" + + "parent\030\226N \001(\tB2\340A\002\372A,\022*saasservicemgmt.g" + + "oogleapis.com/RolloutKind\022\035\n\017rollout_kin" + + "d_id\030\207R \001(\tB\003\340A\002\022Z\n\014rollout_kind\030\210R \001(\0132" + + ">.google.cloud.saasplatform.saasservicem" + + "gmt.v1beta1.RolloutKindB\003\340A\002\022\026\n\rvalidate" + + "_only\030\205R \001(\010\022\023\n\nrequest_id\030\206R \001(\t\"\325\001\n\030Up" + + "dateRolloutKindRequest\022Z\n\014rollout_kind\030\210" + + "R \001(\0132>.google.cloud.saasplatform.saasse" + + "rvicemgmt.v1beta1.RolloutKindB\003\340A\002\022\026\n\rva" + + "lidate_only\030\205R \001(\010\022\023\n\nrequest_id\030\206R \001(\t\022" + + "0\n\013update_mask\030\220R \001(\0132\032.google.protobuf." + + "FieldMask\"\231\001\n\030DeleteRolloutKindRequest\022A" + + "\n\004name\030\221N \001(\tB2\340A\002\372A,\n*saasservicemgmt.g" + + "oogleapis.com/RolloutKind\022\r\n\004etag\030\332O \001(\t" + + "\022\026\n\rvalidate_only\030\205R \001(\010\022\023\n\nrequest_id\030\206" + + "R \001(\t2\210\023\n\014SaasRollouts\022\343\001\n\014ListRollouts\022" + + "F.google.cloud.saasplatform.saasservicem" + + "gmt.v1beta1.ListRolloutsRequest\032G.google" + + ".cloud.saasplatform.saasservicemgmt.v1be" + + "ta1.ListRolloutsResponse\"B\332A\006parent\202\323\344\223\002" + + "3\0221/v1beta1/{parent=projects/*/locations" + + "/*}/rollouts\022\320\001\n\nGetRollout\022D.google.clo" + + "ud.saasplatform.saasservicemgmt.v1beta1." + + "GetRolloutRequest\032:.google.cloud.saaspla" + + "tform.saasservicemgmt.v1beta1.Rollout\"@\332" + + "A\004name\202\323\344\223\0023\0221/v1beta1/{name=projects/*/" + + "locations/*/rollouts/*}\022\364\001\n\rCreateRollou" + + "t\022G.google.cloud.saasplatform.saasservic" + + "emgmt.v1beta1.CreateRolloutRequest\032:.goo" + + "gle.cloud.saasplatform.saasservicemgmt.v" + + "1beta1.Rollout\"^\332A\031parent,rollout,rollou" + + "t_id\202\323\344\223\002<\"1/v1beta1/{parent=projects/*/" + + "locations/*}/rollouts:\007rollout\022\366\001\n\rUpdat" + + "eRollout\022G.google.cloud.saasplatform.saa" + + "sservicemgmt.v1beta1.UpdateRolloutReques" + + "t\032:.google.cloud.saasplatform.saasservic" + + "emgmt.v1beta1.Rollout\"`\332A\023rollout,update" + + "_mask\202\323\344\223\002D29/v1beta1/{rollout.name=proj" + + "ects/*/locations/*/rollouts/*}:\007rollout\022" + + "\262\001\n\rDeleteRollout\022G.google.cloud.saaspla" + + "tform.saasservicemgmt.v1beta1.DeleteRoll" + + "outRequest\032\026.google.protobuf.Empty\"@\332A\004n" + + "ame\202\323\344\223\0023*1/v1beta1/{name=projects/*/loc" + + "ations/*/rollouts/*}\022\363\001\n\020ListRolloutKind" + + "s\022J.google.cloud.saasplatform.saasservic" + + "emgmt.v1beta1.ListRolloutKindsRequest\032K." + + "google.cloud.saasplatform.saasservicemgm" + + "t.v1beta1.ListRolloutKindsResponse\"F\332A\006p" + + "arent\202\323\344\223\0027\0225/v1beta1/{parent=projects/*" + + "/locations/*}/rolloutKinds\022\340\001\n\016GetRollou" + + "tKind\022H.google.cloud.saasplatform.saasse" + + "rvicemgmt.v1beta1.GetRolloutKindRequest\032" + + ">.google.cloud.saasplatform.saasservicem" + + "gmt.v1beta1.RolloutKind\"D\332A\004name\202\323\344\223\0027\0225" + + "/v1beta1/{name=projects/*/locations/*/ro" + + "lloutKinds/*}\022\223\002\n\021CreateRolloutKind\022K.go" + + "ogle.cloud.saasplatform.saasservicemgmt." + + "v1beta1.CreateRolloutKindRequest\032>.googl" + + "e.cloud.saasplatform.saasservicemgmt.v1b" + + "eta1.RolloutKind\"q\332A#parent,rollout_kind" + + ",rollout_kind_id\202\323\344\223\002E\"5/v1beta1/{parent" + + "=projects/*/locations/*}/rolloutKinds:\014r" + + "ollout_kind\022\225\002\n\021UpdateRolloutKind\022K.goog" + + "le.cloud.saasplatform.saasservicemgmt.v1" + + "beta1.UpdateRolloutKindRequest\032>.google." + + "cloud.saasplatform.saasservicemgmt.v1bet" + + "a1.RolloutKind\"s\332A\030rollout_kind,update_m" + + "ask\202\323\344\223\002R2B/v1beta1/{rollout_kind.name=p" + + "rojects/*/locations/*/rolloutKinds/*}:\014r" + + "ollout_kind\022\276\001\n\021DeleteRolloutKind\022K.goog" + + "le.cloud.saasplatform.saasservicemgmt.v1" + + "beta1.DeleteRolloutKindRequest\032\026.google." + + "protobuf.Empty\"D\332A\004name\202\323\344\223\0027*5/v1beta1/" + + "{name=projects/*/locations/*/rolloutKind" + + "s/*}\032R\312A\036saasservicemgmt.googleapis.com\322" + + "A.https://www.googleapis.com/auth/cloud-" + + "platformB\324\002\n5com.google.cloud.saasplatfo" + + "rm.saasservicemgmt.v1beta1B\030SaasRollouts" + + "ServiceProtoP\001Z_cloud.google.com/go/saas" + + "platform/saasservicemgmt/apiv1beta1/saas" + + "servicemgmtpb;saasservicemgmtpb\252\0021Google" + + ".Cloud.SaasPlatform.SaasServiceMgmt.V1Be" + + "ta1\312\0021Google\\Cloud\\SaasPlatform\\SaasServ" + + "iceMgmt\\V1beta1\352\0025Google::Cloud::SaasPla" + + "tform::SaasServiceMgmt::V1beta1b\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.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsResourcesProto + .getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListRolloutsRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListRolloutsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListRolloutsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListRolloutsResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListRolloutsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListRolloutsResponse_descriptor, + new java.lang.String[] { + "Rollouts", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_GetRolloutRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_GetRolloutRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_GetRolloutRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_CreateRolloutRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_CreateRolloutRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_CreateRolloutRequest_descriptor, + new java.lang.String[] { + "Parent", "RolloutId", "Rollout", "ValidateOnly", "RequestId", + }); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UpdateRolloutRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UpdateRolloutRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UpdateRolloutRequest_descriptor, + new java.lang.String[] { + "Rollout", "ValidateOnly", "RequestId", "UpdateMask", + }); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_DeleteRolloutRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_DeleteRolloutRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_DeleteRolloutRequest_descriptor, + new java.lang.String[] { + "Name", "Etag", "ValidateOnly", "RequestId", + }); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListRolloutKindsRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListRolloutKindsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListRolloutKindsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListRolloutKindsResponse_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListRolloutKindsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ListRolloutKindsResponse_descriptor, + new java.lang.String[] { + "RolloutKinds", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_GetRolloutKindRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_GetRolloutKindRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_GetRolloutKindRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_CreateRolloutKindRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_CreateRolloutKindRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_CreateRolloutKindRequest_descriptor, + new java.lang.String[] { + "Parent", "RolloutKindId", "RolloutKind", "ValidateOnly", "RequestId", + }); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UpdateRolloutKindRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UpdateRolloutKindRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UpdateRolloutKindRequest_descriptor, + new java.lang.String[] { + "RolloutKind", "ValidateOnly", "RequestId", "UpdateMask", + }); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_DeleteRolloutKindRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_DeleteRolloutKindRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_DeleteRolloutKindRequest_descriptor, + new java.lang.String[] { + "Name", "Etag", "ValidateOnly", "RequestId", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + 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.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsResourcesProto + .getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/Schedule.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/Schedule.java new file mode 100644 index 000000000000..fd11c9240f21 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/Schedule.java @@ -0,0 +1,758 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_resources.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +/** + * + * + *
+ * A time specification to schedule the maintenance.
+ * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.Schedule} + */ +public final class Schedule extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.Schedule) + ScheduleOrBuilder { + private static final long serialVersionUID = 0L; + + // Use Schedule.newBuilder() to construct. + private Schedule(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Schedule() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Schedule(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Schedule_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Schedule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Schedule.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Schedule.Builder.class); + } + + private int bitField0_; + public static final int START_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp startTime_; + + /** + * + * + *
+   * Optional. Start of operation. If not set, will be set to the start of the
+   * next window. (optional)
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the startTime field is set. + */ + @java.lang.Override + public boolean hasStartTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. Start of operation. If not set, will be set to the start of the
+   * next window. (optional)
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The startTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getStartTime() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + + /** + * + * + *
+   * Optional. Start of operation. If not set, will be set to the start of the
+   * next window. (optional)
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getStartTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartTime()); + } + size += getUnknownFields().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.saasplatform.saasservicemgmt.v1beta1.Schedule)) { + return super.equals(obj); + } + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Schedule other = + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Schedule) obj; + + if (hasStartTime() != other.hasStartTime()) return false; + if (hasStartTime()) { + if (!getStartTime().equals(other.getStartTime())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasStartTime()) { + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Schedule parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Schedule 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.saasplatform.saasservicemgmt.v1beta1.Schedule parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Schedule 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.saasplatform.saasservicemgmt.v1beta1.Schedule parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Schedule parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Schedule parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Schedule 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.saasplatform.saasservicemgmt.v1beta1.Schedule parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Schedule 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.saasplatform.saasservicemgmt.v1beta1.Schedule parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Schedule 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.saasplatform.saasservicemgmt.v1beta1.Schedule 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 time specification to schedule the maintenance.
+   * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.Schedule} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.Schedule) + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ScheduleOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Schedule_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Schedule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Schedule.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Schedule.Builder.class); + } + + // Construct using com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Schedule.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getStartTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Schedule_descriptor; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Schedule + getDefaultInstanceForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Schedule.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Schedule build() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Schedule result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Schedule buildPartial() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Schedule result = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Schedule(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Schedule result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @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.saasplatform.saasservicemgmt.v1beta1.Schedule) { + return mergeFrom((com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Schedule) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Schedule other) { + if (other + == com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Schedule.getDefaultInstance()) + return this; + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.Timestamp startTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; + + /** + * + * + *
+     * Optional. Start of operation. If not set, will be set to the start of the
+     * next window. (optional)
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the startTime field is set. + */ + public boolean hasStartTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Optional. Start of operation. If not set, will be set to the start of the
+     * next window. (optional)
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The startTime. + */ + public com.google.protobuf.Timestamp getStartTime() { + if (startTimeBuilder_ == null) { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } else { + return startTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Start of operation. If not set, will be set to the start of the
+     * next window. (optional)
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + } else { + startTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Start of operation. If not set, will be set to the start of the
+     * next window. (optional)
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (startTimeBuilder_ == null) { + startTime_ = builderForValue.build(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Start of operation. If not set, will be set to the start of the
+     * next window. (optional)
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); + } else { + startTime_ = value; + } + } else { + startTimeBuilder_.mergeFrom(value); + } + if (startTime_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Start of operation. If not set, will be set to the start of the
+     * next window. (optional)
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearStartTime() { + bitField0_ = (bitField0_ & ~0x00000001); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Start of operation. If not set, will be set to the start of the
+     * next window. (optional)
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getStartTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Start of operation. If not set, will be set to the start of the
+     * next window. (optional)
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + if (startTimeBuilder_ != null) { + return startTimeBuilder_.getMessageOrBuilder(); + } else { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + } + + /** + * + * + *
+     * Optional. Start of operation. If not set, will be set to the start of the
+     * next window. (optional)
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getStartTimeFieldBuilder() { + if (startTimeBuilder_ == null) { + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); + startTime_ = null; + } + return startTimeBuilder_; + } + + @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.saasplatform.saasservicemgmt.v1beta1.Schedule) + } + + // @@protoc_insertion_point(class_scope:google.cloud.saasplatform.saasservicemgmt.v1beta1.Schedule) + private static final com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Schedule + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Schedule(); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Schedule + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Schedule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.saasplatform.saasservicemgmt.v1beta1.Schedule + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ScheduleOrBuilder.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ScheduleOrBuilder.java new file mode 100644 index 000000000000..ba7a96ff7369 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ScheduleOrBuilder.java @@ -0,0 +1,69 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_resources.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +public interface ScheduleOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.saasplatform.saasservicemgmt.v1beta1.Schedule) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Start of operation. If not set, will be set to the start of the
+   * next window. (optional)
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the startTime field is set. + */ + boolean hasStartTime(); + + /** + * + * + *
+   * Optional. Start of operation. If not set, will be set to the start of the
+   * next window. (optional)
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The startTime. + */ + com.google.protobuf.Timestamp getStartTime(); + + /** + * + * + *
+   * Optional. Start of operation. If not set, will be set to the start of the
+   * next window. (optional)
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/Tenant.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/Tenant.java new file mode 100644 index 000000000000..a8c1f0214084 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/Tenant.java @@ -0,0 +1,2971 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_resources.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +/** + * + * + *
+ * Tenant represents the service producer side of an instance of the
+ * service created based on a request from a consumer. In a typical scenario a
+ * Tenant has a one-to-one mapping with a resource given out to a service
+ * consumer.
+ *
+ * Example:
+ *
+ *    tenant:
+ *      name: "projects/svc1/locations/loc/tenants/inst-068afff8"
+ *      consumer_resource: "projects/gshoe/locations/loc/shoes/black-shoe"
+ * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant} + */ +public final class Tenant extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant) + TenantOrBuilder { + private static final long serialVersionUID = 0L; + + // Use Tenant.newBuilder() to construct. + private Tenant(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Tenant() { + name_ = ""; + consumerResource_ = ""; + saas_ = ""; + uid_ = ""; + etag_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Tenant(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Tenant_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 10401: + return internalGetLabels(); + case 10402: + return internalGetAnnotations(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Tenant_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Identifier. The resource name (full URI of the resource) following the
+   * standard naming scheme:
+   *
+   *   "projects/{project}/locations/{location}/tenants/{tenant}"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + @java.lang.Override + 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; + } + } + + /** + * + * + *
+   * Identifier. The resource name (full URI of the resource) following the
+   * standard naming scheme:
+   *
+   *   "projects/{project}/locations/{location}/tenants/{tenant}"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + @java.lang.Override + 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 CONSUMER_RESOURCE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object consumerResource_ = ""; + + /** + * + * + *
+   * Optional. Immutable. A reference to the consumer resource this SaaS Tenant
+   * is representing.
+   *
+   * The relationship with a consumer resource can be used by SaaS Runtime for
+   * retrieving consumer-defined settings and policies such as maintenance
+   * policies (using Unified Maintenance Policy API).
+   * 
+ * + * + * string consumer_resource = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The consumerResource. + */ + @java.lang.Override + public java.lang.String getConsumerResource() { + java.lang.Object ref = consumerResource_; + 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(); + consumerResource_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Immutable. A reference to the consumer resource this SaaS Tenant
+   * is representing.
+   *
+   * The relationship with a consumer resource can be used by SaaS Runtime for
+   * retrieving consumer-defined settings and policies such as maintenance
+   * policies (using Unified Maintenance Policy API).
+   * 
+ * + * + * string consumer_resource = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for consumerResource. + */ + @java.lang.Override + public com.google.protobuf.ByteString getConsumerResourceBytes() { + java.lang.Object ref = consumerResource_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + consumerResource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SAAS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object saas_ = ""; + + /** + * + * + *
+   * Required. Immutable. A reference to the Saas that defines the product
+   * (managed service) that the producer wants to manage with SaaS Runtime. Part
+   * of the SaaS Runtime common data model.
+   * 
+ * + * + * string saas = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The saas. + */ + @java.lang.Override + public java.lang.String getSaas() { + java.lang.Object ref = saas_; + 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(); + saas_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. Immutable. A reference to the Saas that defines the product
+   * (managed service) that the producer wants to manage with SaaS Runtime. Part
+   * of the SaaS Runtime common data model.
+   * 
+ * + * + * string saas = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for saas. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSaasBytes() { + java.lang.Object ref = saas_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + saas_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LABELS_FIELD_NUMBER = 10401; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Tenant_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + 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(); + } + + /** + * + * + *
+   * Optional. The labels on the resource, which can be used for categorization.
+   * similar to Kubernetes resource labels.
+   * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** + * + * + *
+   * Optional. The labels on the resource, which can be used for categorization.
+   * similar to Kubernetes resource labels.
+   * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
+   * Optional. The labels on the resource, which can be used for categorization.
+   * similar to Kubernetes resource labels.
+   * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+   * Optional. The labels on the resource, which can be used for categorization.
+   * similar to Kubernetes resource labels.
+   * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int ANNOTATIONS_FIELD_NUMBER = 10402; + + private static final class AnnotationsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Tenant_AnnotationsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField annotations_; + + private com.google.protobuf.MapField + internalGetAnnotations() { + if (annotations_ == null) { + return com.google.protobuf.MapField.emptyMapField(AnnotationsDefaultEntryHolder.defaultEntry); + } + return annotations_; + } + + public int getAnnotationsCount() { + return internalGetAnnotations().getMap().size(); + } + + /** + * + * + *
+   * Optional. Annotations is an unstructured key-value map stored with a
+   * resource that may be set by external tools to store and retrieve arbitrary
+   * metadata. They are not queryable and should be preserved when modifying
+   * objects.
+   *
+   * More info: https://kubernetes.io/docs/user-guide/annotations
+   * 
+ * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetAnnotations().getMap().containsKey(key); + } + + /** Use {@link #getAnnotationsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getAnnotations() { + return getAnnotationsMap(); + } + + /** + * + * + *
+   * Optional. Annotations is an unstructured key-value map stored with a
+   * resource that may be set by external tools to store and retrieve arbitrary
+   * metadata. They are not queryable and should be preserved when modifying
+   * objects.
+   *
+   * More info: https://kubernetes.io/docs/user-guide/annotations
+   * 
+ * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getAnnotationsMap() { + return internalGetAnnotations().getMap(); + } + + /** + * + * + *
+   * Optional. Annotations is an unstructured key-value map stored with a
+   * resource that may be set by external tools to store and retrieve arbitrary
+   * metadata. They are not queryable and should be preserved when modifying
+   * objects.
+   *
+   * More info: https://kubernetes.io/docs/user-guide/annotations
+   * 
+ * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getAnnotationsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+   * Optional. Annotations is an unstructured key-value map stored with a
+   * resource that may be set by external tools to store and retrieve arbitrary
+   * metadata. They are not queryable and should be preserved when modifying
+   * objects.
+   *
+   * More info: https://kubernetes.io/docs/user-guide/annotations
+   * 
+ * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int UID_FIELD_NUMBER = 10201; + + @SuppressWarnings("serial") + private volatile java.lang.Object uid_ = ""; + + /** + * + * + *
+   * Output only. The unique identifier of the resource. UID is unique in the
+   * time and space for this resource within the scope of the service. It is
+   * typically generated by the server on successful creation of a resource
+   * and must not be changed. UID is used to uniquely identify resources
+   * with resource name reuses. This should be a UUID4.
+   * 
+ * + * + * string uid = 10201 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The uid. + */ + @java.lang.Override + public java.lang.String getUid() { + java.lang.Object ref = uid_; + 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(); + uid_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The unique identifier of the resource. UID is unique in the
+   * time and space for this resource within the scope of the service. It is
+   * typically generated by the server on successful creation of a resource
+   * and must not be changed. UID is used to uniquely identify resources
+   * with resource name reuses. This should be a UUID4.
+   * 
+ * + * + * string uid = 10201 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The bytes for uid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ETAG_FIELD_NUMBER = 10202; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + + /** + * + * + *
+   * Output only. An opaque value that uniquely identifies a version or
+   * generation of a resource. It can be used to confirm that the client
+   * and server agree on the ordering of a resource being written.
+   * 
+ * + * string etag = 10202 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The etag. + */ + @java.lang.Override + 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. An opaque value that uniquely identifies a version or
+   * generation of a resource. It can be used to confirm that the client
+   * and server agree on the ordering of a resource being written.
+   * 
+ * + * string etag = 10202 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for etag. + */ + @java.lang.Override + 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 CREATE_TIME_FIELD_NUMBER = 10303; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
+   * Output only. The timestamp when the resource was created.
+   * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. The timestamp when the resource was created.
+   * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
+   * Output only. The timestamp when the resource was created.
+   * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 10304; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
+   * Output only. The timestamp when the resource was last updated. Any
+   * change to the resource made by users must refresh this value.
+   * Changes to a resource made by the service should refresh this value.
+   * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Output only. The timestamp when the resource was last updated. Any
+   * change to the resource made by users must refresh this value.
+   * Changes to a resource made by the service should refresh this value.
+   * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
+   * Output only. The timestamp when the resource was last updated. Any
+   * change to the resource made by users must refresh this value.
+   * Changes to a resource made by the service should refresh this value.
+   * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(consumerResource_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, consumerResource_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(saas_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, saas_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10201, uid_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10202, etag_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(10303, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(10304, getUpdateTime()); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 10401); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetAnnotations(), AnnotationsDefaultEntryHolder.defaultEntry, 10402); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(consumerResource_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, consumerResource_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(saas_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, saas_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10201, uid_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10202, etag_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10303, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10304, 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(10401, labels__); + } + for (java.util.Map.Entry entry : + internalGetAnnotations().getMap().entrySet()) { + com.google.protobuf.MapEntry annotations__ = + AnnotationsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10402, annotations__); + } + size += getUnknownFields().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.saasplatform.saasservicemgmt.v1beta1.Tenant)) { + return super.equals(obj); + } + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant other = + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant) obj; + + if (!getName().equals(other.getName())) return false; + if (!getConsumerResource().equals(other.getConsumerResource())) return false; + if (!getSaas().equals(other.getSaas())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!internalGetAnnotations().equals(other.internalGetAnnotations())) return false; + if (!getUid().equals(other.getUid())) return false; + if (!getEtag().equals(other.getEtag())) 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + CONSUMER_RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getConsumerResource().hashCode(); + hash = (37 * hash) + SAAS_FIELD_NUMBER; + hash = (53 * hash) + getSaas().hashCode(); + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + if (!internalGetAnnotations().getMap().isEmpty()) { + hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; + hash = (53 * hash) + internalGetAnnotations().hashCode(); + } + hash = (37 * hash) + UID_FIELD_NUMBER; + hash = (53 * hash) + getUid().hashCode(); + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant 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.saasplatform.saasservicemgmt.v1beta1.Tenant parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant 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.saasplatform.saasservicemgmt.v1beta1.Tenant parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant 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.saasplatform.saasservicemgmt.v1beta1.Tenant parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant 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.saasplatform.saasservicemgmt.v1beta1.Tenant parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant 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.saasplatform.saasservicemgmt.v1beta1.Tenant 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; + } + + /** + * + * + *
+   * Tenant represents the service producer side of an instance of the
+   * service created based on a request from a consumer. In a typical scenario a
+   * Tenant has a one-to-one mapping with a resource given out to a service
+   * consumer.
+   *
+   * Example:
+   *
+   *    tenant:
+   *      name: "projects/svc1/locations/loc/tenants/inst-068afff8"
+   *      consumer_resource: "projects/gshoe/locations/loc/shoes/black-shoe"
+   * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant) + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.TenantOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Tenant_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 10401: + return internalGetLabels(); + case 10402: + return internalGetAnnotations(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 10401: + return internalGetMutableLabels(); + case 10402: + return internalGetMutableAnnotations(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Tenant_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant.Builder.class); + } + + // Construct using com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCreateTimeFieldBuilder(); + getUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + consumerResource_ = ""; + saas_ = ""; + internalGetMutableLabels().clear(); + internalGetMutableAnnotations().clear(); + uid_ = ""; + etag_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Tenant_descriptor; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant + getDefaultInstanceForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant build() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant buildPartial() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant result = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.consumerResource_ = consumerResource_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.saas_ = saas_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.annotations_ = internalGetAnnotations(); + result.annotations_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.uid_ = uid_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.etag_ = etag_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000080) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @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.saasplatform.saasservicemgmt.v1beta1.Tenant) { + return mergeFrom((com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant other) { + if (other + == com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getConsumerResource().isEmpty()) { + consumerResource_ = other.consumerResource_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getSaas().isEmpty()) { + saas_ = other.saas_; + bitField0_ |= 0x00000004; + onChanged(); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000008; + internalGetMutableAnnotations().mergeFrom(other.internalGetAnnotations()); + bitField0_ |= 0x00000010; + if (!other.getUid().isEmpty()) { + uid_ = other.uid_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + consumerResource_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + saas_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 81610: + { + uid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 81610 + case 81618: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 81618 + case 82426: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 82426 + case 82434: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 82434 + case 83210: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000008; + break; + } // case 83210 + case 83218: + { + com.google.protobuf.MapEntry annotations__ = + input.readMessage( + AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableAnnotations() + .getMutableMap() + .put(annotations__.getKey(), annotations__.getValue()); + bitField0_ |= 0x00000010; + break; + } // case 83218 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Identifier. The resource name (full URI of the resource) following the
+     * standard naming scheme:
+     *
+     *   "projects/{project}/locations/{location}/tenants/{tenant}"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + } + } + + /** + * + * + *
+     * Identifier. The resource name (full URI of the resource) following the
+     * standard naming scheme:
+     *
+     *   "projects/{project}/locations/{location}/tenants/{tenant}"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + } + } + + /** + * + * + *
+     * Identifier. The resource name (full URI of the resource) following the
+     * standard naming scheme:
+     *
+     *   "projects/{project}/locations/{location}/tenants/{tenant}"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Identifier. The resource name (full URI of the resource) following the
+     * standard naming scheme:
+     *
+     *   "projects/{project}/locations/{location}/tenants/{tenant}"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Identifier. The resource name (full URI of the resource) following the
+     * standard naming scheme:
+     *
+     *   "projects/{project}/locations/{location}/tenants/{tenant}"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object consumerResource_ = ""; + + /** + * + * + *
+     * Optional. Immutable. A reference to the consumer resource this SaaS Tenant
+     * is representing.
+     *
+     * The relationship with a consumer resource can be used by SaaS Runtime for
+     * retrieving consumer-defined settings and policies such as maintenance
+     * policies (using Unified Maintenance Policy API).
+     * 
+ * + * + * string consumer_resource = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The consumerResource. + */ + public java.lang.String getConsumerResource() { + java.lang.Object ref = consumerResource_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + consumerResource_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Immutable. A reference to the consumer resource this SaaS Tenant
+     * is representing.
+     *
+     * The relationship with a consumer resource can be used by SaaS Runtime for
+     * retrieving consumer-defined settings and policies such as maintenance
+     * policies (using Unified Maintenance Policy API).
+     * 
+ * + * + * string consumer_resource = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for consumerResource. + */ + public com.google.protobuf.ByteString getConsumerResourceBytes() { + java.lang.Object ref = consumerResource_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + consumerResource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Immutable. A reference to the consumer resource this SaaS Tenant
+     * is representing.
+     *
+     * The relationship with a consumer resource can be used by SaaS Runtime for
+     * retrieving consumer-defined settings and policies such as maintenance
+     * policies (using Unified Maintenance Policy API).
+     * 
+ * + * + * string consumer_resource = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The consumerResource to set. + * @return This builder for chaining. + */ + public Builder setConsumerResource(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + consumerResource_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Immutable. A reference to the consumer resource this SaaS Tenant
+     * is representing.
+     *
+     * The relationship with a consumer resource can be used by SaaS Runtime for
+     * retrieving consumer-defined settings and policies such as maintenance
+     * policies (using Unified Maintenance Policy API).
+     * 
+ * + * + * string consumer_resource = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearConsumerResource() { + consumerResource_ = getDefaultInstance().getConsumerResource(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Immutable. A reference to the consumer resource this SaaS Tenant
+     * is representing.
+     *
+     * The relationship with a consumer resource can be used by SaaS Runtime for
+     * retrieving consumer-defined settings and policies such as maintenance
+     * policies (using Unified Maintenance Policy API).
+     * 
+ * + * + * string consumer_resource = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The bytes for consumerResource to set. + * @return This builder for chaining. + */ + public Builder setConsumerResourceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + consumerResource_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object saas_ = ""; + + /** + * + * + *
+     * Required. Immutable. A reference to the Saas that defines the product
+     * (managed service) that the producer wants to manage with SaaS Runtime. Part
+     * of the SaaS Runtime common data model.
+     * 
+ * + * + * string saas = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The saas. + */ + public java.lang.String getSaas() { + java.lang.Object ref = saas_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + saas_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. Immutable. A reference to the Saas that defines the product
+     * (managed service) that the producer wants to manage with SaaS Runtime. Part
+     * of the SaaS Runtime common data model.
+     * 
+ * + * + * string saas = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for saas. + */ + public com.google.protobuf.ByteString getSaasBytes() { + java.lang.Object ref = saas_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + saas_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. Immutable. A reference to the Saas that defines the product
+     * (managed service) that the producer wants to manage with SaaS Runtime. Part
+     * of the SaaS Runtime common data model.
+     * 
+ * + * + * string saas = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @param value The saas to set. + * @return This builder for chaining. + */ + public Builder setSaas(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + saas_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Immutable. A reference to the Saas that defines the product
+     * (managed service) that the producer wants to manage with SaaS Runtime. Part
+     * of the SaaS Runtime common data model.
+     * 
+ * + * + * string saas = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearSaas() { + saas_ = getDefaultInstance().getSaas(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Immutable. A reference to the Saas that defines the product
+     * (managed service) that the producer wants to manage with SaaS Runtime. Part
+     * of the SaaS Runtime common data model.
+     * 
+ * + * + * string saas = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for saas to set. + * @return This builder for chaining. + */ + public Builder setSaasBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + saas_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + 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() { + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + bitField0_ |= 0x00000008; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
+     * Optional. The labels on the resource, which can be used for categorization.
+     * similar to Kubernetes resource labels.
+     * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** + * + * + *
+     * Optional. The labels on the resource, which can be used for categorization.
+     * similar to Kubernetes resource labels.
+     * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
+     * Optional. The labels on the resource, which can be used for categorization.
+     * similar to Kubernetes resource labels.
+     * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+     * Optional. The labels on the resource, which can be used for categorization.
+     * similar to Kubernetes resource labels.
+     * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000008); + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + + /** + * + * + *
+     * Optional. The labels on the resource, which can be used for categorization.
+     * similar to Kubernetes resource labels.
+     * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000008; + return internalGetMutableLabels().getMutableMap(); + } + + /** + * + * + *
+     * Optional. The labels on the resource, which can be used for categorization.
+     * similar to Kubernetes resource labels.
+     * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000008; + return this; + } + + /** + * + * + *
+     * Optional. The labels on the resource, which can be used for categorization.
+     * similar to Kubernetes resource labels.
+     * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000008; + return this; + } + + private com.google.protobuf.MapField annotations_; + + private com.google.protobuf.MapField + internalGetAnnotations() { + if (annotations_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AnnotationsDefaultEntryHolder.defaultEntry); + } + return annotations_; + } + + private com.google.protobuf.MapField + internalGetMutableAnnotations() { + if (annotations_ == null) { + annotations_ = + com.google.protobuf.MapField.newMapField(AnnotationsDefaultEntryHolder.defaultEntry); + } + if (!annotations_.isMutable()) { + annotations_ = annotations_.copy(); + } + bitField0_ |= 0x00000010; + onChanged(); + return annotations_; + } + + public int getAnnotationsCount() { + return internalGetAnnotations().getMap().size(); + } + + /** + * + * + *
+     * Optional. Annotations is an unstructured key-value map stored with a
+     * resource that may be set by external tools to store and retrieve arbitrary
+     * metadata. They are not queryable and should be preserved when modifying
+     * objects.
+     *
+     * More info: https://kubernetes.io/docs/user-guide/annotations
+     * 
+ * + * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetAnnotations().getMap().containsKey(key); + } + + /** Use {@link #getAnnotationsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getAnnotations() { + return getAnnotationsMap(); + } + + /** + * + * + *
+     * Optional. Annotations is an unstructured key-value map stored with a
+     * resource that may be set by external tools to store and retrieve arbitrary
+     * metadata. They are not queryable and should be preserved when modifying
+     * objects.
+     *
+     * More info: https://kubernetes.io/docs/user-guide/annotations
+     * 
+ * + * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getAnnotationsMap() { + return internalGetAnnotations().getMap(); + } + + /** + * + * + *
+     * Optional. Annotations is an unstructured key-value map stored with a
+     * resource that may be set by external tools to store and retrieve arbitrary
+     * metadata. They are not queryable and should be preserved when modifying
+     * objects.
+     *
+     * More info: https://kubernetes.io/docs/user-guide/annotations
+     * 
+ * + * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getAnnotationsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+     * Optional. Annotations is an unstructured key-value map stored with a
+     * resource that may be set by external tools to store and retrieve arbitrary
+     * metadata. They are not queryable and should be preserved when modifying
+     * objects.
+     *
+     * More info: https://kubernetes.io/docs/user-guide/annotations
+     * 
+ * + * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearAnnotations() { + bitField0_ = (bitField0_ & ~0x00000010); + internalGetMutableAnnotations().getMutableMap().clear(); + return this; + } + + /** + * + * + *
+     * Optional. Annotations is an unstructured key-value map stored with a
+     * resource that may be set by external tools to store and retrieve arbitrary
+     * metadata. They are not queryable and should be preserved when modifying
+     * objects.
+     *
+     * More info: https://kubernetes.io/docs/user-guide/annotations
+     * 
+ * + * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableAnnotations().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableAnnotations() { + bitField0_ |= 0x00000010; + return internalGetMutableAnnotations().getMutableMap(); + } + + /** + * + * + *
+     * Optional. Annotations is an unstructured key-value map stored with a
+     * resource that may be set by external tools to store and retrieve arbitrary
+     * metadata. They are not queryable and should be preserved when modifying
+     * objects.
+     *
+     * More info: https://kubernetes.io/docs/user-guide/annotations
+     * 
+ * + * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAnnotations(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableAnnotations().getMutableMap().put(key, value); + bitField0_ |= 0x00000010; + return this; + } + + /** + * + * + *
+     * Optional. Annotations is an unstructured key-value map stored with a
+     * resource that may be set by external tools to store and retrieve arbitrary
+     * metadata. They are not queryable and should be preserved when modifying
+     * objects.
+     *
+     * More info: https://kubernetes.io/docs/user-guide/annotations
+     * 
+ * + * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllAnnotations(java.util.Map values) { + internalGetMutableAnnotations().getMutableMap().putAll(values); + bitField0_ |= 0x00000010; + return this; + } + + private java.lang.Object uid_ = ""; + + /** + * + * + *
+     * Output only. The unique identifier of the resource. UID is unique in the
+     * time and space for this resource within the scope of the service. It is
+     * typically generated by the server on successful creation of a resource
+     * and must not be changed. UID is used to uniquely identify resources
+     * with resource name reuses. This should be a UUID4.
+     * 
+ * + * + * string uid = 10201 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The uid. + */ + public java.lang.String getUid() { + java.lang.Object ref = uid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The unique identifier of the resource. UID is unique in the
+     * time and space for this resource within the scope of the service. It is
+     * typically generated by the server on successful creation of a resource
+     * and must not be changed. UID is used to uniquely identify resources
+     * with resource name reuses. This should be a UUID4.
+     * 
+ * + * + * string uid = 10201 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The bytes for uid. + */ + public com.google.protobuf.ByteString getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The unique identifier of the resource. UID is unique in the
+     * time and space for this resource within the scope of the service. It is
+     * typically generated by the server on successful creation of a resource
+     * and must not be changed. UID is used to uniquely identify resources
+     * with resource name reuses. This should be a UUID4.
+     * 
+ * + * + * string uid = 10201 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @param value The uid to set. + * @return This builder for chaining. + */ + public Builder setUid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uid_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The unique identifier of the resource. UID is unique in the
+     * time and space for this resource within the scope of the service. It is
+     * typically generated by the server on successful creation of a resource
+     * and must not be changed. UID is used to uniquely identify resources
+     * with resource name reuses. This should be a UUID4.
+     * 
+ * + * + * string uid = 10201 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearUid() { + uid_ = getDefaultInstance().getUid(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The unique identifier of the resource. UID is unique in the
+     * time and space for this resource within the scope of the service. It is
+     * typically generated by the server on successful creation of a resource
+     * and must not be changed. UID is used to uniquely identify resources
+     * with resource name reuses. This should be a UUID4.
+     * 
+ * + * + * string uid = 10201 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for uid to set. + * @return This builder for chaining. + */ + public Builder setUidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uid_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object etag_ = ""; + + /** + * + * + *
+     * Output only. An opaque value that uniquely identifies a version or
+     * generation of a resource. It can be used to confirm that the client
+     * and server agree on the ordering of a resource being written.
+     * 
+ * + * string etag = 10202 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+     * Output only. An opaque value that uniquely identifies a version or
+     * generation of a resource. It can be used to confirm that the client
+     * and server agree on the ordering of a resource being written.
+     * 
+ * + * string etag = 10202 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+     * Output only. An opaque value that uniquely identifies a version or
+     * generation of a resource. It can be used to confirm that the client
+     * and server agree on the ordering of a resource being written.
+     * 
+ * + * string etag = 10202 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. An opaque value that uniquely identifies a version or
+     * generation of a resource. It can be used to confirm that the client
+     * and server agree on the ordering of a resource being written.
+     * 
+ * + * string etag = 10202 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. An opaque value that uniquely identifies a version or
+     * generation of a resource. It can be used to confirm that the client
+     * and server agree on the ordering of a resource being written.
+     * 
+ * + * string etag = 10202 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + bitField0_ |= 0x00000040; + 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 timestamp when the resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.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 timestamp when the resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.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; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000080); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.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 timestamp when the resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.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 timestamp when the resource was last updated. Any
+     * change to the resource made by users must refresh this value.
+     * Changes to a resource made by the service should refresh this value.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was last updated. Any
+     * change to the resource made by users must refresh this value.
+     * Changes to a resource made by the service should refresh this value.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.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 timestamp when the resource was last updated. Any
+     * change to the resource made by users must refresh this value.
+     * Changes to a resource made by the service should refresh this value.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.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; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was last updated. Any
+     * change to the resource made by users must refresh this value.
+     * Changes to a resource made by the service should refresh this value.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was last updated. Any
+     * change to the resource made by users must refresh this value.
+     * Changes to a resource made by the service should refresh this value.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000100; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was last updated. Any
+     * change to the resource made by users must refresh this value.
+     * Changes to a resource made by the service should refresh this value.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000100); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was last updated. Any
+     * change to the resource made by users must refresh this value.
+     * Changes to a resource made by the service should refresh this value.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000100; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was last updated. Any
+     * change to the resource made by users must refresh this value.
+     * Changes to a resource made by the service should refresh this value.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.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 timestamp when the resource was last updated. Any
+     * change to the resource made by users must refresh this value.
+     * Changes to a resource made by the service should refresh this value.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.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_; + } + + @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.saasplatform.saasservicemgmt.v1beta1.Tenant) + } + + // @@protoc_insertion_point(class_scope:google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant) + private static final com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant(); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Tenant parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.saasplatform.saasservicemgmt.v1beta1.Tenant getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/TenantName.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/TenantName.java new file mode 100644 index 000000000000..6d3e3c32d807 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/TenantName.java @@ -0,0 +1,223 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1; + +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; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class TenantName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_TENANT = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/tenants/{tenant}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String tenant; + + @Deprecated + protected TenantName() { + project = null; + location = null; + tenant = null; + } + + private TenantName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + tenant = Preconditions.checkNotNull(builder.getTenant()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getTenant() { + return tenant; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static TenantName of(String project, String location, String tenant) { + return newBuilder().setProject(project).setLocation(location).setTenant(tenant).build(); + } + + public static String format(String project, String location, String tenant) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setTenant(tenant) + .build() + .toString(); + } + + public static TenantName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_TENANT.validatedMatch( + formattedString, "TenantName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("tenant")); + } + + 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 (TenantName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_TENANT.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (tenant != null) { + fieldMapBuilder.put("tenant", tenant); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_TENANT.instantiate( + "project", project, "location", location, "tenant", tenant); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + TenantName that = ((TenantName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.tenant, that.tenant); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(tenant); + return h; + } + + /** Builder for projects/{project}/locations/{location}/tenants/{tenant}. */ + public static class Builder { + private String project; + private String location; + private String tenant; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getTenant() { + return tenant; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setTenant(String tenant) { + this.tenant = tenant; + return this; + } + + private Builder(TenantName tenantName) { + this.project = tenantName.project; + this.location = tenantName.location; + this.tenant = tenantName.tenant; + } + + public TenantName build() { + return new TenantName(this); + } + } +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/TenantOrBuilder.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/TenantOrBuilder.java new file mode 100644 index 000000000000..2ba73ac1c964 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/TenantOrBuilder.java @@ -0,0 +1,458 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_resources.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +public interface TenantOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Identifier. The resource name (full URI of the resource) following the
+   * standard naming scheme:
+   *
+   *   "projects/{project}/locations/{location}/tenants/{tenant}"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Identifier. The resource name (full URI of the resource) following the
+   * standard naming scheme:
+   *
+   *   "projects/{project}/locations/{location}/tenants/{tenant}"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. Immutable. A reference to the consumer resource this SaaS Tenant
+   * is representing.
+   *
+   * The relationship with a consumer resource can be used by SaaS Runtime for
+   * retrieving consumer-defined settings and policies such as maintenance
+   * policies (using Unified Maintenance Policy API).
+   * 
+ * + * + * string consumer_resource = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The consumerResource. + */ + java.lang.String getConsumerResource(); + + /** + * + * + *
+   * Optional. Immutable. A reference to the consumer resource this SaaS Tenant
+   * is representing.
+   *
+   * The relationship with a consumer resource can be used by SaaS Runtime for
+   * retrieving consumer-defined settings and policies such as maintenance
+   * policies (using Unified Maintenance Policy API).
+   * 
+ * + * + * string consumer_resource = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for consumerResource. + */ + com.google.protobuf.ByteString getConsumerResourceBytes(); + + /** + * + * + *
+   * Required. Immutable. A reference to the Saas that defines the product
+   * (managed service) that the producer wants to manage with SaaS Runtime. Part
+   * of the SaaS Runtime common data model.
+   * 
+ * + * + * string saas = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The saas. + */ + java.lang.String getSaas(); + + /** + * + * + *
+   * Required. Immutable. A reference to the Saas that defines the product
+   * (managed service) that the producer wants to manage with SaaS Runtime. Part
+   * of the SaaS Runtime common data model.
+   * 
+ * + * + * string saas = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for saas. + */ + com.google.protobuf.ByteString getSaasBytes(); + + /** + * + * + *
+   * Optional. The labels on the resource, which can be used for categorization.
+   * similar to Kubernetes resource labels.
+   * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getLabelsCount(); + + /** + * + * + *
+   * Optional. The labels on the resource, which can be used for categorization.
+   * similar to Kubernetes resource labels.
+   * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsLabels(java.lang.String key); + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + + /** + * + * + *
+   * Optional. The labels on the resource, which can be used for categorization.
+   * similar to Kubernetes resource labels.
+   * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map getLabelsMap(); + + /** + * + * + *
+   * Optional. The labels on the resource, which can be used for categorization.
+   * similar to Kubernetes resource labels.
+   * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
+   * Optional. The labels on the resource, which can be used for categorization.
+   * similar to Kubernetes resource labels.
+   * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
+   * Optional. Annotations is an unstructured key-value map stored with a
+   * resource that may be set by external tools to store and retrieve arbitrary
+   * metadata. They are not queryable and should be preserved when modifying
+   * objects.
+   *
+   * More info: https://kubernetes.io/docs/user-guide/annotations
+   * 
+ * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getAnnotationsCount(); + + /** + * + * + *
+   * Optional. Annotations is an unstructured key-value map stored with a
+   * resource that may be set by external tools to store and retrieve arbitrary
+   * metadata. They are not queryable and should be preserved when modifying
+   * objects.
+   *
+   * More info: https://kubernetes.io/docs/user-guide/annotations
+   * 
+ * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsAnnotations(java.lang.String key); + + /** Use {@link #getAnnotationsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getAnnotations(); + + /** + * + * + *
+   * Optional. Annotations is an unstructured key-value map stored with a
+   * resource that may be set by external tools to store and retrieve arbitrary
+   * metadata. They are not queryable and should be preserved when modifying
+   * objects.
+   *
+   * More info: https://kubernetes.io/docs/user-guide/annotations
+   * 
+ * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map getAnnotationsMap(); + + /** + * + * + *
+   * Optional. Annotations is an unstructured key-value map stored with a
+   * resource that may be set by external tools to store and retrieve arbitrary
+   * metadata. They are not queryable and should be preserved when modifying
+   * objects.
+   *
+   * More info: https://kubernetes.io/docs/user-guide/annotations
+   * 
+ * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + java.lang.String getAnnotationsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
+   * Optional. Annotations is an unstructured key-value map stored with a
+   * resource that may be set by external tools to store and retrieve arbitrary
+   * metadata. They are not queryable and should be preserved when modifying
+   * objects.
+   *
+   * More info: https://kubernetes.io/docs/user-guide/annotations
+   * 
+ * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.lang.String getAnnotationsOrThrow(java.lang.String key); + + /** + * + * + *
+   * Output only. The unique identifier of the resource. UID is unique in the
+   * time and space for this resource within the scope of the service. It is
+   * typically generated by the server on successful creation of a resource
+   * and must not be changed. UID is used to uniquely identify resources
+   * with resource name reuses. This should be a UUID4.
+   * 
+ * + * + * string uid = 10201 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The uid. + */ + java.lang.String getUid(); + + /** + * + * + *
+   * Output only. The unique identifier of the resource. UID is unique in the
+   * time and space for this resource within the scope of the service. It is
+   * typically generated by the server on successful creation of a resource
+   * and must not be changed. UID is used to uniquely identify resources
+   * with resource name reuses. This should be a UUID4.
+   * 
+ * + * + * string uid = 10201 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The bytes for uid. + */ + com.google.protobuf.ByteString getUidBytes(); + + /** + * + * + *
+   * Output only. An opaque value that uniquely identifies a version or
+   * generation of a resource. It can be used to confirm that the client
+   * and server agree on the ordering of a resource being written.
+   * 
+ * + * string etag = 10202 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The etag. + */ + java.lang.String getEtag(); + + /** + * + * + *
+   * Output only. An opaque value that uniquely identifies a version or
+   * generation of a resource. It can be used to confirm that the client
+   * and server agree on the ordering of a resource being written.
+   * 
+ * + * string etag = 10202 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); + + /** + * + * + *
+   * Output only. The timestamp when the resource was created.
+   * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
+   * Output only. The timestamp when the resource was created.
+   * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
+   * Output only. The timestamp when the resource was created.
+   * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. The timestamp when the resource was last updated. Any
+   * change to the resource made by users must refresh this value.
+   * Changes to a resource made by the service should refresh this value.
+   * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
+   * Output only. The timestamp when the resource was last updated. Any
+   * change to the resource made by users must refresh this value.
+   * Changes to a resource made by the service should refresh this value.
+   * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
+   * Output only. The timestamp when the resource was last updated. Any
+   * change to the resource made by users must refresh this value.
+   * Changes to a resource made by the service should refresh this value.
+   * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ToMapping.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ToMapping.java new file mode 100644 index 000000000000..0a2712768d0e --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ToMapping.java @@ -0,0 +1,939 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_resources.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +/** + * + * + *
+ * Input variables whose values will be passed on to dependencies
+ * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.ToMapping} + */ +public final class ToMapping extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.ToMapping) + ToMappingOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ToMapping.newBuilder() to construct. + private ToMapping(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ToMapping() { + dependency_ = ""; + inputVariable_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ToMapping(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ToMapping_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ToMapping_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ToMapping.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ToMapping.Builder.class); + } + + public static final int DEPENDENCY_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object dependency_ = ""; + + /** + * + * + *
+   * Required. Alias of the dependency that the inputVariable will pass its
+   * value to
+   * 
+ * + * string dependency = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The dependency. + */ + @java.lang.Override + public java.lang.String getDependency() { + java.lang.Object ref = dependency_; + 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(); + dependency_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. Alias of the dependency that the inputVariable will pass its
+   * value to
+   * 
+ * + * string dependency = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for dependency. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDependencyBytes() { + java.lang.Object ref = dependency_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dependency_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INPUT_VARIABLE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object inputVariable_ = ""; + + /** + * + * + *
+   * Required. Name of the inputVariable on the dependency
+   * 
+ * + * string input_variable = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The inputVariable. + */ + @java.lang.Override + public java.lang.String getInputVariable() { + java.lang.Object ref = inputVariable_; + 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(); + inputVariable_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. Name of the inputVariable on the dependency
+   * 
+ * + * string input_variable = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for inputVariable. + */ + @java.lang.Override + public com.google.protobuf.ByteString getInputVariableBytes() { + java.lang.Object ref = inputVariable_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + inputVariable_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IGNORE_FOR_LOOKUP_FIELD_NUMBER = 3; + private boolean ignoreForLookup_ = false; + + /** + * + * + *
+   * Optional. Tells SaaS Runtime if this mapping should be used during lookup
+   * or not
+   * 
+ * + * bool ignore_for_lookup = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The ignoreForLookup. + */ + @java.lang.Override + public boolean getIgnoreForLookup() { + return ignoreForLookup_; + } + + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dependency_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dependency_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(inputVariable_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, inputVariable_); + } + if (ignoreForLookup_ != false) { + output.writeBool(3, ignoreForLookup_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dependency_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, dependency_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(inputVariable_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, inputVariable_); + } + if (ignoreForLookup_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, ignoreForLookup_); + } + size += getUnknownFields().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.saasplatform.saasservicemgmt.v1beta1.ToMapping)) { + return super.equals(obj); + } + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ToMapping other = + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ToMapping) obj; + + if (!getDependency().equals(other.getDependency())) return false; + if (!getInputVariable().equals(other.getInputVariable())) return false; + if (getIgnoreForLookup() != other.getIgnoreForLookup()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + DEPENDENCY_FIELD_NUMBER; + hash = (53 * hash) + getDependency().hashCode(); + hash = (37 * hash) + INPUT_VARIABLE_FIELD_NUMBER; + hash = (53 * hash) + getInputVariable().hashCode(); + hash = (37 * hash) + IGNORE_FOR_LOOKUP_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIgnoreForLookup()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ToMapping parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ToMapping 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.saasplatform.saasservicemgmt.v1beta1.ToMapping parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ToMapping 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.saasplatform.saasservicemgmt.v1beta1.ToMapping parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ToMapping parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ToMapping parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ToMapping 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.saasplatform.saasservicemgmt.v1beta1.ToMapping parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ToMapping 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.saasplatform.saasservicemgmt.v1beta1.ToMapping parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ToMapping 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.saasplatform.saasservicemgmt.v1beta1.ToMapping 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; + } + + /** + * + * + *
+   * Input variables whose values will be passed on to dependencies
+   * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.ToMapping} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.ToMapping) + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ToMappingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ToMapping_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ToMapping_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ToMapping.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ToMapping.Builder.class); + } + + // Construct using com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ToMapping.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + dependency_ = ""; + inputVariable_ = ""; + ignoreForLookup_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_ToMapping_descriptor; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ToMapping + getDefaultInstanceForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ToMapping.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ToMapping build() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ToMapping result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ToMapping buildPartial() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ToMapping result = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ToMapping(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ToMapping result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.dependency_ = dependency_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.inputVariable_ = inputVariable_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.ignoreForLookup_ = ignoreForLookup_; + } + } + + @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.saasplatform.saasservicemgmt.v1beta1.ToMapping) { + return mergeFrom((com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ToMapping) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ToMapping other) { + if (other + == com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ToMapping.getDefaultInstance()) + return this; + if (!other.getDependency().isEmpty()) { + dependency_ = other.dependency_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getInputVariable().isEmpty()) { + inputVariable_ = other.inputVariable_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getIgnoreForLookup() != false) { + setIgnoreForLookup(other.getIgnoreForLookup()); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + dependency_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + inputVariable_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + ignoreForLookup_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object dependency_ = ""; + + /** + * + * + *
+     * Required. Alias of the dependency that the inputVariable will pass its
+     * value to
+     * 
+ * + * string dependency = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The dependency. + */ + public java.lang.String getDependency() { + java.lang.Object ref = dependency_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dependency_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. Alias of the dependency that the inputVariable will pass its
+     * value to
+     * 
+ * + * string dependency = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for dependency. + */ + public com.google.protobuf.ByteString getDependencyBytes() { + java.lang.Object ref = dependency_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dependency_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. Alias of the dependency that the inputVariable will pass its
+     * value to
+     * 
+ * + * string dependency = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The dependency to set. + * @return This builder for chaining. + */ + public Builder setDependency(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + dependency_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Alias of the dependency that the inputVariable will pass its
+     * value to
+     * 
+ * + * string dependency = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDependency() { + dependency_ = getDefaultInstance().getDependency(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Alias of the dependency that the inputVariable will pass its
+     * value to
+     * 
+ * + * string dependency = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for dependency to set. + * @return This builder for chaining. + */ + public Builder setDependencyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dependency_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object inputVariable_ = ""; + + /** + * + * + *
+     * Required. Name of the inputVariable on the dependency
+     * 
+ * + * string input_variable = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The inputVariable. + */ + public java.lang.String getInputVariable() { + java.lang.Object ref = inputVariable_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + inputVariable_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. Name of the inputVariable on the dependency
+     * 
+ * + * string input_variable = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for inputVariable. + */ + public com.google.protobuf.ByteString getInputVariableBytes() { + java.lang.Object ref = inputVariable_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + inputVariable_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. Name of the inputVariable on the dependency
+     * 
+ * + * string input_variable = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The inputVariable to set. + * @return This builder for chaining. + */ + public Builder setInputVariable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + inputVariable_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Name of the inputVariable on the dependency
+     * 
+ * + * string input_variable = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearInputVariable() { + inputVariable_ = getDefaultInstance().getInputVariable(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Name of the inputVariable on the dependency
+     * 
+ * + * string input_variable = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for inputVariable to set. + * @return This builder for chaining. + */ + public Builder setInputVariableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + inputVariable_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private boolean ignoreForLookup_; + + /** + * + * + *
+     * Optional. Tells SaaS Runtime if this mapping should be used during lookup
+     * or not
+     * 
+ * + * bool ignore_for_lookup = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The ignoreForLookup. + */ + @java.lang.Override + public boolean getIgnoreForLookup() { + return ignoreForLookup_; + } + + /** + * + * + *
+     * Optional. Tells SaaS Runtime if this mapping should be used during lookup
+     * or not
+     * 
+ * + * bool ignore_for_lookup = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The ignoreForLookup to set. + * @return This builder for chaining. + */ + public Builder setIgnoreForLookup(boolean value) { + + ignoreForLookup_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Tells SaaS Runtime if this mapping should be used during lookup
+     * or not
+     * 
+ * + * bool ignore_for_lookup = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearIgnoreForLookup() { + bitField0_ = (bitField0_ & ~0x00000004); + ignoreForLookup_ = false; + 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.saasplatform.saasservicemgmt.v1beta1.ToMapping) + } + + // @@protoc_insertion_point(class_scope:google.cloud.saasplatform.saasservicemgmt.v1beta1.ToMapping) + private static final com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ToMapping + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ToMapping(); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ToMapping + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ToMapping parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.saasplatform.saasservicemgmt.v1beta1.ToMapping + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ToMappingOrBuilder.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ToMappingOrBuilder.java new file mode 100644 index 000000000000..667161c4f33b --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ToMappingOrBuilder.java @@ -0,0 +1,94 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_resources.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +public interface ToMappingOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.saasplatform.saasservicemgmt.v1beta1.ToMapping) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Alias of the dependency that the inputVariable will pass its
+   * value to
+   * 
+ * + * string dependency = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The dependency. + */ + java.lang.String getDependency(); + + /** + * + * + *
+   * Required. Alias of the dependency that the inputVariable will pass its
+   * value to
+   * 
+ * + * string dependency = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for dependency. + */ + com.google.protobuf.ByteString getDependencyBytes(); + + /** + * + * + *
+   * Required. Name of the inputVariable on the dependency
+   * 
+ * + * string input_variable = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The inputVariable. + */ + java.lang.String getInputVariable(); + + /** + * + * + *
+   * Required. Name of the inputVariable on the dependency
+   * 
+ * + * string input_variable = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for inputVariable. + */ + com.google.protobuf.ByteString getInputVariableBytes(); + + /** + * + * + *
+   * Optional. Tells SaaS Runtime if this mapping should be used during lookup
+   * or not
+   * 
+ * + * bool ignore_for_lookup = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The ignoreForLookup. + */ + boolean getIgnoreForLookup(); +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/Unit.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/Unit.java new file mode 100644 index 000000000000..7796a26b549d --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/Unit.java @@ -0,0 +1,9903 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_resources.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +/** + * + * + *
+ * A unit of deployment that has its lifecycle via a CRUD API using an actuation
+ * engine under the hood (e.g. based on Terraform, Helm or a custom
+ * implementation provided by a service producer). A building block of a SaaS
+ * Tenant.
+ * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit} + */ +public final class Unit extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit) + UnitOrBuilder { + private static final long serialVersionUID = 0L; + + // Use Unit.newBuilder() to construct. + private Unit(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Unit() { + name_ = ""; + unitKind_ = ""; + release_ = ""; + tenant_ = ""; + ongoingOperations_ = com.google.protobuf.LazyStringArrayList.emptyList(); + pendingOperations_ = com.google.protobuf.LazyStringArrayList.emptyList(); + scheduledOperations_ = com.google.protobuf.LazyStringArrayList.emptyList(); + dependents_ = java.util.Collections.emptyList(); + dependencies_ = java.util.Collections.emptyList(); + inputVariables_ = java.util.Collections.emptyList(); + outputVariables_ = java.util.Collections.emptyList(); + state_ = 0; + conditions_ = java.util.Collections.emptyList(); + managementMode_ = 0; + systemManagedState_ = 0; + uid_ = ""; + etag_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Unit(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Unit_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 10401: + return internalGetLabels(); + case 10402: + return internalGetAnnotations(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Unit_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.Builder.class); + } + + /** + * + * + *
+   * UnitState annotates what is the current state of the unit itself.
+   * 
+ * + * Protobuf enum {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.UnitState} + */ + public enum UnitState implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified state.
+     * 
+ * + * UNIT_STATE_UNSPECIFIED = 0; + */ + UNIT_STATE_UNSPECIFIED(0), + /** + * + * + *
+     * Unit is not provisioned.
+     * 
+ * + * UNIT_STATE_NOT_PROVISIONED = 1; + */ + UNIT_STATE_NOT_PROVISIONED(1), + /** + * + * + *
+     * Unit is being provisioned.
+     * 
+ * + * UNIT_STATE_PROVISIONING = 2; + */ + UNIT_STATE_PROVISIONING(2), + /** + * + * + *
+     * Unit is being updated. This is typically when a unit is being upgraded to
+     * a new release or some of the input variables on the Unit is being
+     * changed. Certain kinds of updates may cause the Unit to become unusable
+     * while the update is in progress.
+     * 
+ * + * UNIT_STATE_UPDATING = 3; + */ + UNIT_STATE_UPDATING(3), + /** + * + * + *
+     * Unit is being deleted.
+     * 
+ * + * UNIT_STATE_DEPROVISIONING = 4; + */ + UNIT_STATE_DEPROVISIONING(4), + /** + * + * + *
+     * Unit has been provisioned and is ready for use
+     * 
+ * + * UNIT_STATE_READY = 5; + */ + UNIT_STATE_READY(5), + /** + * + * + *
+     * Unit has error, when it is not ready and some error operation
+     * 
+ * + * UNIT_STATE_ERROR = 6; + */ + UNIT_STATE_ERROR(6), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Unspecified state.
+     * 
+ * + * UNIT_STATE_UNSPECIFIED = 0; + */ + public static final int UNIT_STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Unit is not provisioned.
+     * 
+ * + * UNIT_STATE_NOT_PROVISIONED = 1; + */ + public static final int UNIT_STATE_NOT_PROVISIONED_VALUE = 1; + + /** + * + * + *
+     * Unit is being provisioned.
+     * 
+ * + * UNIT_STATE_PROVISIONING = 2; + */ + public static final int UNIT_STATE_PROVISIONING_VALUE = 2; + + /** + * + * + *
+     * Unit is being updated. This is typically when a unit is being upgraded to
+     * a new release or some of the input variables on the Unit is being
+     * changed. Certain kinds of updates may cause the Unit to become unusable
+     * while the update is in progress.
+     * 
+ * + * UNIT_STATE_UPDATING = 3; + */ + public static final int UNIT_STATE_UPDATING_VALUE = 3; + + /** + * + * + *
+     * Unit is being deleted.
+     * 
+ * + * UNIT_STATE_DEPROVISIONING = 4; + */ + public static final int UNIT_STATE_DEPROVISIONING_VALUE = 4; + + /** + * + * + *
+     * Unit has been provisioned and is ready for use
+     * 
+ * + * UNIT_STATE_READY = 5; + */ + public static final int UNIT_STATE_READY_VALUE = 5; + + /** + * + * + *
+     * Unit has error, when it is not ready and some error operation
+     * 
+ * + * UNIT_STATE_ERROR = 6; + */ + public static final int UNIT_STATE_ERROR_VALUE = 6; + + 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 UnitState 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 UnitState forNumber(int value) { + switch (value) { + case 0: + return UNIT_STATE_UNSPECIFIED; + case 1: + return UNIT_STATE_NOT_PROVISIONED; + case 2: + return UNIT_STATE_PROVISIONING; + case 3: + return UNIT_STATE_UPDATING; + case 4: + return UNIT_STATE_DEPROVISIONING; + case 5: + return UNIT_STATE_READY; + case 6: + return UNIT_STATE_ERROR; + 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 UnitState findValueByNumber(int number) { + return UnitState.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + 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.saasplatform.saasservicemgmt.v1beta1.Unit.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final UnitState[] VALUES = values(); + + public static UnitState 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 UnitState(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.UnitState) + } + + /** + * + * + *
+   * ManagementMode describes who is responsible for the management of the unit.
+   * 
+ * + * Protobuf enum {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.ManagementMode} + */ + public enum ManagementMode implements com.google.protobuf.ProtocolMessageEnum { + /** MANAGEMENT_MODE_UNSPECIFIED = 0; */ + MANAGEMENT_MODE_UNSPECIFIED(0), + /** + * + * + *
+     * Unit's lifecycle is managed by the user.
+     * 
+ * + * MANAGEMENT_MODE_USER = 1; + */ + MANAGEMENT_MODE_USER(1), + /** + * + * + *
+     * The system will decide when to deprovision and delete the unit.
+     * User still can deprovision or delete the unit manually.
+     * 
+ * + * MANAGEMENT_MODE_SYSTEM = 2; + */ + MANAGEMENT_MODE_SYSTEM(2), + UNRECOGNIZED(-1), + ; + + /** MANAGEMENT_MODE_UNSPECIFIED = 0; */ + public static final int MANAGEMENT_MODE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Unit's lifecycle is managed by the user.
+     * 
+ * + * MANAGEMENT_MODE_USER = 1; + */ + public static final int MANAGEMENT_MODE_USER_VALUE = 1; + + /** + * + * + *
+     * The system will decide when to deprovision and delete the unit.
+     * User still can deprovision or delete the unit manually.
+     * 
+ * + * MANAGEMENT_MODE_SYSTEM = 2; + */ + public static final int MANAGEMENT_MODE_SYSTEM_VALUE = 2; + + 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 ManagementMode 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 ManagementMode forNumber(int value) { + switch (value) { + case 0: + return MANAGEMENT_MODE_UNSPECIFIED; + case 1: + return MANAGEMENT_MODE_USER; + case 2: + return MANAGEMENT_MODE_SYSTEM; + 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 ManagementMode findValueByNumber(int number) { + return ManagementMode.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + 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.saasplatform.saasservicemgmt.v1beta1.Unit.getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final ManagementMode[] VALUES = values(); + + public static ManagementMode 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 ManagementMode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.ManagementMode) + } + + /** + * Protobuf enum {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.SystemManagedState} + */ + public enum SystemManagedState implements com.google.protobuf.ProtocolMessageEnum { + /** SYSTEM_MANAGED_STATE_UNSPECIFIED = 0; */ + SYSTEM_MANAGED_STATE_UNSPECIFIED(0), + /** + * + * + *
+     * Unit has dependents attached.
+     * 
+ * + * SYSTEM_MANAGED_STATE_ACTIVE = 1; + */ + SYSTEM_MANAGED_STATE_ACTIVE(1), + /** + * + * + *
+     * Unit has no dependencies attached, but attachment is allowed.
+     * 
+ * + * SYSTEM_MANAGED_STATE_INACTIVE = 2; + */ + SYSTEM_MANAGED_STATE_INACTIVE(2), + /** + * + * + *
+     * Unit has no dependencies attached, and attachment is not allowed.
+     * 
+ * + * SYSTEM_MANAGED_STATE_DECOMMISSIONED = 3; + */ + SYSTEM_MANAGED_STATE_DECOMMISSIONED(3), + UNRECOGNIZED(-1), + ; + + /** SYSTEM_MANAGED_STATE_UNSPECIFIED = 0; */ + public static final int SYSTEM_MANAGED_STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Unit has dependents attached.
+     * 
+ * + * SYSTEM_MANAGED_STATE_ACTIVE = 1; + */ + public static final int SYSTEM_MANAGED_STATE_ACTIVE_VALUE = 1; + + /** + * + * + *
+     * Unit has no dependencies attached, but attachment is allowed.
+     * 
+ * + * SYSTEM_MANAGED_STATE_INACTIVE = 2; + */ + public static final int SYSTEM_MANAGED_STATE_INACTIVE_VALUE = 2; + + /** + * + * + *
+     * Unit has no dependencies attached, and attachment is not allowed.
+     * 
+ * + * SYSTEM_MANAGED_STATE_DECOMMISSIONED = 3; + */ + public static final int SYSTEM_MANAGED_STATE_DECOMMISSIONED_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 SystemManagedState 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 SystemManagedState forNumber(int value) { + switch (value) { + case 0: + return SYSTEM_MANAGED_STATE_UNSPECIFIED; + case 1: + return SYSTEM_MANAGED_STATE_ACTIVE; + case 2: + return SYSTEM_MANAGED_STATE_INACTIVE; + case 3: + return SYSTEM_MANAGED_STATE_DECOMMISSIONED; + 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 SystemManagedState findValueByNumber(int number) { + return SystemManagedState.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + 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.saasplatform.saasservicemgmt.v1beta1.Unit.getDescriptor() + .getEnumTypes() + .get(2); + } + + private static final SystemManagedState[] VALUES = values(); + + public static SystemManagedState 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 SystemManagedState(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.SystemManagedState) + } + + public interface MaintenanceSettingsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.MaintenanceSettings) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional. If present, it fixes the release on the unit until the given
+     * time; i.e. changes to the release field will be rejected. Rollouts should
+     * and will also respect this by not requesting an upgrade in the first
+     * place.
+     * 
+ * + * + * .google.protobuf.Timestamp pinned_until_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the pinnedUntilTime field is set. + */ + boolean hasPinnedUntilTime(); + + /** + * + * + *
+     * Optional. If present, it fixes the release on the unit until the given
+     * time; i.e. changes to the release field will be rejected. Rollouts should
+     * and will also respect this by not requesting an upgrade in the first
+     * place.
+     * 
+ * + * + * .google.protobuf.Timestamp pinned_until_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The pinnedUntilTime. + */ + com.google.protobuf.Timestamp getPinnedUntilTime(); + + /** + * + * + *
+     * Optional. If present, it fixes the release on the unit until the given
+     * time; i.e. changes to the release field will be rejected. Rollouts should
+     * and will also respect this by not requesting an upgrade in the first
+     * place.
+     * 
+ * + * + * .google.protobuf.Timestamp pinned_until_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.TimestampOrBuilder getPinnedUntilTimeOrBuilder(); + } + + /** + * + * + *
+   * Captures requested directives for performing future maintenance on the
+   * unit. This includes a request for the unit to skip maintenance for a period
+   * of time and remain pinned to its current release as well as controls for
+   * postponing maintenance scheduled in future.
+   * 
+ * + * Protobuf type {@code + * google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.MaintenanceSettings} + */ + public static final class MaintenanceSettings extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.MaintenanceSettings) + MaintenanceSettingsOrBuilder { + private static final long serialVersionUID = 0L; + + // Use MaintenanceSettings.newBuilder() to construct. + private MaintenanceSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MaintenanceSettings() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MaintenanceSettings(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Unit_MaintenanceSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Unit_MaintenanceSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.MaintenanceSettings.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.MaintenanceSettings.Builder + .class); + } + + private int bitField0_; + public static final int PINNED_UNTIL_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp pinnedUntilTime_; + + /** + * + * + *
+     * Optional. If present, it fixes the release on the unit until the given
+     * time; i.e. changes to the release field will be rejected. Rollouts should
+     * and will also respect this by not requesting an upgrade in the first
+     * place.
+     * 
+ * + * + * .google.protobuf.Timestamp pinned_until_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the pinnedUntilTime field is set. + */ + @java.lang.Override + public boolean hasPinnedUntilTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Optional. If present, it fixes the release on the unit until the given
+     * time; i.e. changes to the release field will be rejected. Rollouts should
+     * and will also respect this by not requesting an upgrade in the first
+     * place.
+     * 
+ * + * + * .google.protobuf.Timestamp pinned_until_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The pinnedUntilTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getPinnedUntilTime() { + return pinnedUntilTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : pinnedUntilTime_; + } + + /** + * + * + *
+     * Optional. If present, it fixes the release on the unit until the given
+     * time; i.e. changes to the release field will be rejected. Rollouts should
+     * and will also respect this by not requesting an upgrade in the first
+     * place.
+     * 
+ * + * + * .google.protobuf.Timestamp pinned_until_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getPinnedUntilTimeOrBuilder() { + return pinnedUntilTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : pinnedUntilTime_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getPinnedUntilTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getPinnedUntilTime()); + } + size += getUnknownFields().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.saasplatform.saasservicemgmt.v1beta1.Unit.MaintenanceSettings)) { + return super.equals(obj); + } + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.MaintenanceSettings other = + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.MaintenanceSettings) obj; + + if (hasPinnedUntilTime() != other.hasPinnedUntilTime()) return false; + if (hasPinnedUntilTime()) { + if (!getPinnedUntilTime().equals(other.getPinnedUntilTime())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPinnedUntilTime()) { + hash = (37 * hash) + PINNED_UNTIL_TIME_FIELD_NUMBER; + hash = (53 * hash) + getPinnedUntilTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.MaintenanceSettings + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.MaintenanceSettings + 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.saasplatform.saasservicemgmt.v1beta1.Unit.MaintenanceSettings + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.MaintenanceSettings + 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.saasplatform.saasservicemgmt.v1beta1.Unit.MaintenanceSettings + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.MaintenanceSettings + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.MaintenanceSettings + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.MaintenanceSettings + 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.saasplatform.saasservicemgmt.v1beta1.Unit.MaintenanceSettings + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.MaintenanceSettings + 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.saasplatform.saasservicemgmt.v1beta1.Unit.MaintenanceSettings + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.MaintenanceSettings + 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.saasplatform.saasservicemgmt.v1beta1.Unit.MaintenanceSettings 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; + } + + /** + * + * + *
+     * Captures requested directives for performing future maintenance on the
+     * unit. This includes a request for the unit to skip maintenance for a period
+     * of time and remain pinned to its current release as well as controls for
+     * postponing maintenance scheduled in future.
+     * 
+ * + * Protobuf type {@code + * google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.MaintenanceSettings} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.MaintenanceSettings) + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.MaintenanceSettingsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Unit_MaintenanceSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Unit_MaintenanceSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.MaintenanceSettings + .class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.MaintenanceSettings + .Builder.class); + } + + // Construct using + // com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.MaintenanceSettings.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getPinnedUntilTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + pinnedUntilTime_ = null; + if (pinnedUntilTimeBuilder_ != null) { + pinnedUntilTimeBuilder_.dispose(); + pinnedUntilTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Unit_MaintenanceSettings_descriptor; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.MaintenanceSettings + getDefaultInstanceForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.MaintenanceSettings + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.MaintenanceSettings + build() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.MaintenanceSettings result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.MaintenanceSettings + buildPartial() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.MaintenanceSettings result = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.MaintenanceSettings( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.MaintenanceSettings result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.pinnedUntilTime_ = + pinnedUntilTimeBuilder_ == null ? pinnedUntilTime_ : pinnedUntilTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @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.saasplatform.saasservicemgmt.v1beta1.Unit.MaintenanceSettings) { + return mergeFrom( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.MaintenanceSettings) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.MaintenanceSettings other) { + if (other + == com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.MaintenanceSettings + .getDefaultInstance()) return this; + if (other.hasPinnedUntilTime()) { + mergePinnedUntilTime(other.getPinnedUntilTime()); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + getPinnedUntilTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.Timestamp pinnedUntilTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + pinnedUntilTimeBuilder_; + + /** + * + * + *
+       * Optional. If present, it fixes the release on the unit until the given
+       * time; i.e. changes to the release field will be rejected. Rollouts should
+       * and will also respect this by not requesting an upgrade in the first
+       * place.
+       * 
+ * + * + * .google.protobuf.Timestamp pinned_until_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the pinnedUntilTime field is set. + */ + public boolean hasPinnedUntilTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+       * Optional. If present, it fixes the release on the unit until the given
+       * time; i.e. changes to the release field will be rejected. Rollouts should
+       * and will also respect this by not requesting an upgrade in the first
+       * place.
+       * 
+ * + * + * .google.protobuf.Timestamp pinned_until_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The pinnedUntilTime. + */ + public com.google.protobuf.Timestamp getPinnedUntilTime() { + if (pinnedUntilTimeBuilder_ == null) { + return pinnedUntilTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : pinnedUntilTime_; + } else { + return pinnedUntilTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+       * Optional. If present, it fixes the release on the unit until the given
+       * time; i.e. changes to the release field will be rejected. Rollouts should
+       * and will also respect this by not requesting an upgrade in the first
+       * place.
+       * 
+ * + * + * .google.protobuf.Timestamp pinned_until_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPinnedUntilTime(com.google.protobuf.Timestamp value) { + if (pinnedUntilTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pinnedUntilTime_ = value; + } else { + pinnedUntilTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. If present, it fixes the release on the unit until the given
+       * time; i.e. changes to the release field will be rejected. Rollouts should
+       * and will also respect this by not requesting an upgrade in the first
+       * place.
+       * 
+ * + * + * .google.protobuf.Timestamp pinned_until_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPinnedUntilTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (pinnedUntilTimeBuilder_ == null) { + pinnedUntilTime_ = builderForValue.build(); + } else { + pinnedUntilTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. If present, it fixes the release on the unit until the given
+       * time; i.e. changes to the release field will be rejected. Rollouts should
+       * and will also respect this by not requesting an upgrade in the first
+       * place.
+       * 
+ * + * + * .google.protobuf.Timestamp pinned_until_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergePinnedUntilTime(com.google.protobuf.Timestamp value) { + if (pinnedUntilTimeBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && pinnedUntilTime_ != null + && pinnedUntilTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getPinnedUntilTimeBuilder().mergeFrom(value); + } else { + pinnedUntilTime_ = value; + } + } else { + pinnedUntilTimeBuilder_.mergeFrom(value); + } + if (pinnedUntilTime_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+       * Optional. If present, it fixes the release on the unit until the given
+       * time; i.e. changes to the release field will be rejected. Rollouts should
+       * and will also respect this by not requesting an upgrade in the first
+       * place.
+       * 
+ * + * + * .google.protobuf.Timestamp pinned_until_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearPinnedUntilTime() { + bitField0_ = (bitField0_ & ~0x00000001); + pinnedUntilTime_ = null; + if (pinnedUntilTimeBuilder_ != null) { + pinnedUntilTimeBuilder_.dispose(); + pinnedUntilTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. If present, it fixes the release on the unit until the given
+       * time; i.e. changes to the release field will be rejected. Rollouts should
+       * and will also respect this by not requesting an upgrade in the first
+       * place.
+       * 
+ * + * + * .google.protobuf.Timestamp pinned_until_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Timestamp.Builder getPinnedUntilTimeBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getPinnedUntilTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * Optional. If present, it fixes the release on the unit until the given
+       * time; i.e. changes to the release field will be rejected. Rollouts should
+       * and will also respect this by not requesting an upgrade in the first
+       * place.
+       * 
+ * + * + * .google.protobuf.Timestamp pinned_until_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.TimestampOrBuilder getPinnedUntilTimeOrBuilder() { + if (pinnedUntilTimeBuilder_ != null) { + return pinnedUntilTimeBuilder_.getMessageOrBuilder(); + } else { + return pinnedUntilTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : pinnedUntilTime_; + } + } + + /** + * + * + *
+       * Optional. If present, it fixes the release on the unit until the given
+       * time; i.e. changes to the release field will be rejected. Rollouts should
+       * and will also respect this by not requesting an upgrade in the first
+       * place.
+       * 
+ * + * + * .google.protobuf.Timestamp pinned_until_time = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getPinnedUntilTimeFieldBuilder() { + if (pinnedUntilTimeBuilder_ == null) { + pinnedUntilTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getPinnedUntilTime(), getParentForChildren(), isClean()); + pinnedUntilTime_ = null; + } + return pinnedUntilTimeBuilder_; + } + + @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.saasplatform.saasservicemgmt.v1beta1.Unit.MaintenanceSettings) + } + + // @@protoc_insertion_point(class_scope:google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.MaintenanceSettings) + private static final com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit + .MaintenanceSettings + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.MaintenanceSettings(); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.MaintenanceSettings + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MaintenanceSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.saasplatform.saasservicemgmt.v1beta1.Unit.MaintenanceSettings + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Identifier. The resource name (full URI of the resource) following the
+   * standard naming scheme:
+   *
+   *   "projects/{project}/locations/{location}/units/{unit}"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + @java.lang.Override + 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; + } + } + + /** + * + * + *
+   * Identifier. The resource name (full URI of the resource) following the
+   * standard naming scheme:
+   *
+   *   "projects/{project}/locations/{location}/units/{unit}"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + @java.lang.Override + 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 UNIT_KIND_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object unitKind_ = ""; + + /** + * + * + *
+   * Optional. Reference to the UnitKind this Unit belongs to. Immutable once
+   * set.
+   * 
+ * + * + * string unit_kind = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The unitKind. + */ + @java.lang.Override + public java.lang.String getUnitKind() { + java.lang.Object ref = unitKind_; + 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(); + unitKind_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Reference to the UnitKind this Unit belongs to. Immutable once
+   * set.
+   * 
+ * + * + * string unit_kind = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for unitKind. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUnitKindBytes() { + java.lang.Object ref = unitKind_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + unitKind_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RELEASE_FIELD_NUMBER = 13; + + @SuppressWarnings("serial") + private volatile java.lang.Object release_ = ""; + + /** + * + * + *
+   * Optional. Output only. The current Release object for this Unit.
+   * 
+ * + * + * string release = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The release. + */ + @java.lang.Override + public java.lang.String getRelease() { + java.lang.Object ref = release_; + 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(); + release_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Output only. The current Release object for this Unit.
+   * 
+ * + * + * string release = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for release. + */ + @java.lang.Override + public com.google.protobuf.ByteString getReleaseBytes() { + java.lang.Object ref = release_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + release_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TENANT_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object tenant_ = ""; + + /** + * + * + *
+   * Optional. Reference to the Saas Tenant resource this unit belongs to. This
+   * for example informs the maintenance policies to use for scheduling future
+   * updates on a unit. (optional and immutable once created)
+   * 
+ * + * + * string tenant = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The tenant. + */ + @java.lang.Override + public java.lang.String getTenant() { + java.lang.Object ref = tenant_; + 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(); + tenant_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Reference to the Saas Tenant resource this unit belongs to. This
+   * for example informs the maintenance policies to use for scheduling future
+   * updates on a unit. (optional and immutable once created)
+   * 
+ * + * + * string tenant = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for tenant. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTenantBytes() { + java.lang.Object ref = tenant_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tenant_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ONGOING_OPERATIONS_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList ongoingOperations_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Optional. Output only. List of concurrent UnitOperations that are operating
+   * on this Unit.
+   * 
+ * + * + * repeated string ongoing_operations = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the ongoingOperations. + */ + public com.google.protobuf.ProtocolStringList getOngoingOperationsList() { + return ongoingOperations_; + } + + /** + * + * + *
+   * Optional. Output only. List of concurrent UnitOperations that are operating
+   * on this Unit.
+   * 
+ * + * + * repeated string ongoing_operations = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The count of ongoingOperations. + */ + public int getOngoingOperationsCount() { + return ongoingOperations_.size(); + } + + /** + * + * + *
+   * Optional. Output only. List of concurrent UnitOperations that are operating
+   * on this Unit.
+   * 
+ * + * + * repeated string ongoing_operations = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The ongoingOperations at the given index. + */ + public java.lang.String getOngoingOperations(int index) { + return ongoingOperations_.get(index); + } + + /** + * + * + *
+   * Optional. Output only. List of concurrent UnitOperations that are operating
+   * on this Unit.
+   * 
+ * + * + * repeated string ongoing_operations = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the ongoingOperations at the given index. + */ + public com.google.protobuf.ByteString getOngoingOperationsBytes(int index) { + return ongoingOperations_.getByteString(index); + } + + public static final int PENDING_OPERATIONS_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList pendingOperations_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Optional. Output only. List of pending (wait to be executed) UnitOperations
+   * for this unit.
+   * 
+ * + * + * repeated string pending_operations = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the pendingOperations. + */ + public com.google.protobuf.ProtocolStringList getPendingOperationsList() { + return pendingOperations_; + } + + /** + * + * + *
+   * Optional. Output only. List of pending (wait to be executed) UnitOperations
+   * for this unit.
+   * 
+ * + * + * repeated string pending_operations = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The count of pendingOperations. + */ + public int getPendingOperationsCount() { + return pendingOperations_.size(); + } + + /** + * + * + *
+   * Optional. Output only. List of pending (wait to be executed) UnitOperations
+   * for this unit.
+   * 
+ * + * + * repeated string pending_operations = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The pendingOperations at the given index. + */ + public java.lang.String getPendingOperations(int index) { + return pendingOperations_.get(index); + } + + /** + * + * + *
+   * Optional. Output only. List of pending (wait to be executed) UnitOperations
+   * for this unit.
+   * 
+ * + * + * repeated string pending_operations = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the pendingOperations at the given index. + */ + public com.google.protobuf.ByteString getPendingOperationsBytes(int index) { + return pendingOperations_.getByteString(index); + } + + public static final int SCHEDULED_OPERATIONS_FIELD_NUMBER = 24; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList scheduledOperations_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Optional. Output only. List of scheduled UnitOperations for this unit.
+   * 
+ * + * + * repeated string scheduled_operations = 24 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the scheduledOperations. + */ + public com.google.protobuf.ProtocolStringList getScheduledOperationsList() { + return scheduledOperations_; + } + + /** + * + * + *
+   * Optional. Output only. List of scheduled UnitOperations for this unit.
+   * 
+ * + * + * repeated string scheduled_operations = 24 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The count of scheduledOperations. + */ + public int getScheduledOperationsCount() { + return scheduledOperations_.size(); + } + + /** + * + * + *
+   * Optional. Output only. List of scheduled UnitOperations for this unit.
+   * 
+ * + * + * repeated string scheduled_operations = 24 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The scheduledOperations at the given index. + */ + public java.lang.String getScheduledOperations(int index) { + return scheduledOperations_.get(index); + } + + /** + * + * + *
+   * Optional. Output only. List of scheduled UnitOperations for this unit.
+   * 
+ * + * + * repeated string scheduled_operations = 24 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the scheduledOperations at the given index. + */ + public com.google.protobuf.ByteString getScheduledOperationsBytes(int index) { + return scheduledOperations_.getByteString(index); + } + + public static final int DEPENDENTS_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private java.util.List + dependents_; + + /** + * + * + *
+   * Optional. Output only. List of Units that depend on this unit. Unit can
+   * only be deprovisioned if this list is empty. Maximum 1000.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency dependents = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getDependentsList() { + return dependents_; + } + + /** + * + * + *
+   * Optional. Output only. List of Units that depend on this unit. Unit can
+   * only be deprovisioned if this list is empty. Maximum 1000.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency dependents = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependencyOrBuilder> + getDependentsOrBuilderList() { + return dependents_; + } + + /** + * + * + *
+   * Optional. Output only. List of Units that depend on this unit. Unit can
+   * only be deprovisioned if this list is empty. Maximum 1000.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency dependents = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getDependentsCount() { + return dependents_.size(); + } + + /** + * + * + *
+   * Optional. Output only. List of Units that depend on this unit. Unit can
+   * only be deprovisioned if this list is empty. Maximum 1000.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency dependents = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency getDependents( + int index) { + return dependents_.get(index); + } + + /** + * + * + *
+   * Optional. Output only. List of Units that depend on this unit. Unit can
+   * only be deprovisioned if this list is empty. Maximum 1000.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency dependents = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependencyOrBuilder + getDependentsOrBuilder(int index) { + return dependents_.get(index); + } + + public static final int DEPENDENCIES_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private java.util.List + dependencies_; + + /** + * + * + *
+   * Optional. Output only. Set of dependencies for this unit. Maximum 10.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency dependencies = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getDependenciesList() { + return dependencies_; + } + + /** + * + * + *
+   * Optional. Output only. Set of dependencies for this unit. Maximum 10.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency dependencies = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependencyOrBuilder> + getDependenciesOrBuilderList() { + return dependencies_; + } + + /** + * + * + *
+   * Optional. Output only. Set of dependencies for this unit. Maximum 10.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency dependencies = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getDependenciesCount() { + return dependencies_.size(); + } + + /** + * + * + *
+   * Optional. Output only. Set of dependencies for this unit. Maximum 10.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency dependencies = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency getDependencies( + int index) { + return dependencies_.get(index); + } + + /** + * + * + *
+   * Optional. Output only. Set of dependencies for this unit. Maximum 10.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency dependencies = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependencyOrBuilder + getDependenciesOrBuilder(int index) { + return dependencies_.get(index); + } + + public static final int INPUT_VARIABLES_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private java.util.List + inputVariables_; + + /** + * + * + *
+   * Optional. Output only. Indicates the current input variables deployed by
+   * the unit
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getInputVariablesList() { + return inputVariables_; + } + + /** + * + * + *
+   * Optional. Output only. Indicates the current input variables deployed by
+   * the unit
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariableOrBuilder> + getInputVariablesOrBuilderList() { + return inputVariables_; + } + + /** + * + * + *
+   * Optional. Output only. Indicates the current input variables deployed by
+   * the unit
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getInputVariablesCount() { + return inputVariables_.size(); + } + + /** + * + * + *
+   * Optional. Output only. Indicates the current input variables deployed by
+   * the unit
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable getInputVariables( + int index) { + return inputVariables_.get(index); + } + + /** + * + * + *
+   * Optional. Output only. Indicates the current input variables deployed by
+   * the unit
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariableOrBuilder + getInputVariablesOrBuilder(int index) { + return inputVariables_.get(index); + } + + public static final int OUTPUT_VARIABLES_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private java.util.List + outputVariables_; + + /** + * + * + *
+   * Optional. Output only. Set of key/value pairs corresponding to output
+   * variables from execution of actuation templates. The variables are declared
+   * in actuation configs (e.g in helm chart or terraform) and the values are
+   * fetched and returned by the actuation engine upon completion of execution.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable output_variables = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getOutputVariablesList() { + return outputVariables_; + } + + /** + * + * + *
+   * Optional. Output only. Set of key/value pairs corresponding to output
+   * variables from execution of actuation templates. The variables are declared
+   * in actuation configs (e.g in helm chart or terraform) and the values are
+   * fetched and returned by the actuation engine upon completion of execution.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable output_variables = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariableOrBuilder> + getOutputVariablesOrBuilderList() { + return outputVariables_; + } + + /** + * + * + *
+   * Optional. Output only. Set of key/value pairs corresponding to output
+   * variables from execution of actuation templates. The variables are declared
+   * in actuation configs (e.g in helm chart or terraform) and the values are
+   * fetched and returned by the actuation engine upon completion of execution.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable output_variables = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getOutputVariablesCount() { + return outputVariables_.size(); + } + + /** + * + * + *
+   * Optional. Output only. Set of key/value pairs corresponding to output
+   * variables from execution of actuation templates. The variables are declared
+   * in actuation configs (e.g in helm chart or terraform) and the values are
+   * fetched and returned by the actuation engine upon completion of execution.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable output_variables = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable getOutputVariables( + int index) { + return outputVariables_.get(index); + } + + /** + * + * + *
+   * Optional. Output only. Set of key/value pairs corresponding to output
+   * variables from execution of actuation templates. The variables are declared
+   * in actuation configs (e.g in helm chart or terraform) and the values are
+   * fetched and returned by the actuation engine upon completion of execution.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable output_variables = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariableOrBuilder + getOutputVariablesOrBuilder(int index) { + return outputVariables_.get(index); + } + + public static final int MAINTENANCE_FIELD_NUMBER = 14; + private com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.MaintenanceSettings + maintenance_; + + /** + * + * + *
+   * Optional. Captures requested directives for performing future maintenance
+   * on the unit. This includes a request for the unit to skip maintenance for a
+   * period of time and remain pinned to its current release as well as controls
+   * for postponing maintenance scheduled in future.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.MaintenanceSettings maintenance = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the maintenance field is set. + */ + @java.lang.Override + public boolean hasMaintenance() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. Captures requested directives for performing future maintenance
+   * on the unit. This includes a request for the unit to skip maintenance for a
+   * period of time and remain pinned to its current release as well as controls
+   * for postponing maintenance scheduled in future.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.MaintenanceSettings maintenance = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The maintenance. + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.MaintenanceSettings + getMaintenance() { + return maintenance_ == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.MaintenanceSettings + .getDefaultInstance() + : maintenance_; + } + + /** + * + * + *
+   * Optional. Captures requested directives for performing future maintenance
+   * on the unit. This includes a request for the unit to skip maintenance for a
+   * period of time and remain pinned to its current release as well as controls
+   * for postponing maintenance scheduled in future.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.MaintenanceSettings maintenance = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.MaintenanceSettingsOrBuilder + getMaintenanceOrBuilder() { + return maintenance_ == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.MaintenanceSettings + .getDefaultInstance() + : maintenance_; + } + + public static final int STATE_FIELD_NUMBER = 16; + private int state_ = 0; + + /** + * + * + *
+   * Optional. Output only. Current lifecycle state of the resource (e.g. if
+   * it's being created or ready to use).
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.UnitState state = 16 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
+   * Optional. Output only. Current lifecycle state of the resource (e.g. if
+   * it's being created or ready to use).
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.UnitState state = 16 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.UnitState getState() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.UnitState result = + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.UnitState.forNumber(state_); + return result == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.UnitState.UNRECOGNIZED + : result; + } + + public static final int CONDITIONS_FIELD_NUMBER = 20; + + @SuppressWarnings("serial") + private java.util.List + conditions_; + + /** + * + * + *
+   * Optional. Output only. A set of conditions which indicate the various
+   * conditions this resource can have.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition conditions = 20 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getConditionsList() { + return conditions_; + } + + /** + * + * + *
+   * Optional. Output only. A set of conditions which indicate the various
+   * conditions this resource can have.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition conditions = 20 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitConditionOrBuilder> + getConditionsOrBuilderList() { + return conditions_; + } + + /** + * + * + *
+   * Optional. Output only. A set of conditions which indicate the various
+   * conditions this resource can have.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition conditions = 20 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getConditionsCount() { + return conditions_.size(); + } + + /** + * + * + *
+   * Optional. Output only. A set of conditions which indicate the various
+   * conditions this resource can have.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition conditions = 20 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition getConditions( + int index) { + return conditions_.get(index); + } + + /** + * + * + *
+   * Optional. Output only. A set of conditions which indicate the various
+   * conditions this resource can have.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition conditions = 20 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitConditionOrBuilder + getConditionsOrBuilder(int index) { + return conditions_.get(index); + } + + public static final int MANAGEMENT_MODE_FIELD_NUMBER = 22; + private int managementMode_ = 0; + + /** + * + * + *
+   * Optional. Immutable. Indicates whether the Unit life cycle is controlled
+   * by the user or by the system.
+   * Immutable once created.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.ManagementMode management_mode = 22 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for managementMode. + */ + @java.lang.Override + public int getManagementModeValue() { + return managementMode_; + } + + /** + * + * + *
+   * Optional. Immutable. Indicates whether the Unit life cycle is controlled
+   * by the user or by the system.
+   * Immutable once created.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.ManagementMode management_mode = 22 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The managementMode. + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.ManagementMode + getManagementMode() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.ManagementMode result = + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.ManagementMode.forNumber( + managementMode_); + return result == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.ManagementMode.UNRECOGNIZED + : result; + } + + public static final int SYSTEM_MANAGED_STATE_FIELD_NUMBER = 25; + private int systemManagedState_ = 0; + + /** + * + * + *
+   * Optional. Output only. Indicates the system managed state of the unit.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.SystemManagedState system_managed_state = 25 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for systemManagedState. + */ + @java.lang.Override + public int getSystemManagedStateValue() { + return systemManagedState_; + } + + /** + * + * + *
+   * Optional. Output only. Indicates the system managed state of the unit.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.SystemManagedState system_managed_state = 25 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The systemManagedState. + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.SystemManagedState + getSystemManagedState() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.SystemManagedState result = + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.SystemManagedState.forNumber( + systemManagedState_); + return result == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.SystemManagedState.UNRECOGNIZED + : result; + } + + public static final int SYSTEM_CLEANUP_AT_FIELD_NUMBER = 26; + private com.google.protobuf.Timestamp systemCleanupAt_; + + /** + * + * + *
+   * Optional. Output only. If set, indicates the time when the system will
+   * start removing the unit.
+   * 
+ * + * + * .google.protobuf.Timestamp system_cleanup_at = 26 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the systemCleanupAt field is set. + */ + @java.lang.Override + public boolean hasSystemCleanupAt() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Optional. Output only. If set, indicates the time when the system will
+   * start removing the unit.
+   * 
+ * + * + * .google.protobuf.Timestamp system_cleanup_at = 26 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The systemCleanupAt. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getSystemCleanupAt() { + return systemCleanupAt_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : systemCleanupAt_; + } + + /** + * + * + *
+   * Optional. Output only. If set, indicates the time when the system will
+   * start removing the unit.
+   * 
+ * + * + * .google.protobuf.Timestamp system_cleanup_at = 26 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getSystemCleanupAtOrBuilder() { + return systemCleanupAt_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : systemCleanupAt_; + } + + public static final int LABELS_FIELD_NUMBER = 10401; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Unit_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + 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(); + } + + /** + * + * + *
+   * Optional. The labels on the resource, which can be used for categorization.
+   * similar to Kubernetes resource labels.
+   * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** + * + * + *
+   * Optional. The labels on the resource, which can be used for categorization.
+   * similar to Kubernetes resource labels.
+   * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
+   * Optional. The labels on the resource, which can be used for categorization.
+   * similar to Kubernetes resource labels.
+   * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+   * Optional. The labels on the resource, which can be used for categorization.
+   * similar to Kubernetes resource labels.
+   * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int ANNOTATIONS_FIELD_NUMBER = 10402; + + private static final class AnnotationsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Unit_AnnotationsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField annotations_; + + private com.google.protobuf.MapField + internalGetAnnotations() { + if (annotations_ == null) { + return com.google.protobuf.MapField.emptyMapField(AnnotationsDefaultEntryHolder.defaultEntry); + } + return annotations_; + } + + public int getAnnotationsCount() { + return internalGetAnnotations().getMap().size(); + } + + /** + * + * + *
+   * Optional. Annotations is an unstructured key-value map stored with a
+   * resource that may be set by external tools to store and retrieve arbitrary
+   * metadata. They are not queryable and should be preserved when modifying
+   * objects.
+   *
+   * More info: https://kubernetes.io/docs/user-guide/annotations
+   * 
+ * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetAnnotations().getMap().containsKey(key); + } + + /** Use {@link #getAnnotationsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getAnnotations() { + return getAnnotationsMap(); + } + + /** + * + * + *
+   * Optional. Annotations is an unstructured key-value map stored with a
+   * resource that may be set by external tools to store and retrieve arbitrary
+   * metadata. They are not queryable and should be preserved when modifying
+   * objects.
+   *
+   * More info: https://kubernetes.io/docs/user-guide/annotations
+   * 
+ * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getAnnotationsMap() { + return internalGetAnnotations().getMap(); + } + + /** + * + * + *
+   * Optional. Annotations is an unstructured key-value map stored with a
+   * resource that may be set by external tools to store and retrieve arbitrary
+   * metadata. They are not queryable and should be preserved when modifying
+   * objects.
+   *
+   * More info: https://kubernetes.io/docs/user-guide/annotations
+   * 
+ * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getAnnotationsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+   * Optional. Annotations is an unstructured key-value map stored with a
+   * resource that may be set by external tools to store and retrieve arbitrary
+   * metadata. They are not queryable and should be preserved when modifying
+   * objects.
+   *
+   * More info: https://kubernetes.io/docs/user-guide/annotations
+   * 
+ * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int UID_FIELD_NUMBER = 10201; + + @SuppressWarnings("serial") + private volatile java.lang.Object uid_ = ""; + + /** + * + * + *
+   * Output only. The unique identifier of the resource. UID is unique in the
+   * time and space for this resource within the scope of the service. It is
+   * typically generated by the server on successful creation of a resource
+   * and must not be changed. UID is used to uniquely identify resources
+   * with resource name reuses. This should be a UUID4.
+   * 
+ * + * + * string uid = 10201 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The uid. + */ + @java.lang.Override + public java.lang.String getUid() { + java.lang.Object ref = uid_; + 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(); + uid_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The unique identifier of the resource. UID is unique in the
+   * time and space for this resource within the scope of the service. It is
+   * typically generated by the server on successful creation of a resource
+   * and must not be changed. UID is used to uniquely identify resources
+   * with resource name reuses. This should be a UUID4.
+   * 
+ * + * + * string uid = 10201 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The bytes for uid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ETAG_FIELD_NUMBER = 10202; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + + /** + * + * + *
+   * Output only. An opaque value that uniquely identifies a version or
+   * generation of a resource. It can be used to confirm that the client
+   * and server agree on the ordering of a resource being written.
+   * 
+ * + * string etag = 10202 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The etag. + */ + @java.lang.Override + 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. An opaque value that uniquely identifies a version or
+   * generation of a resource. It can be used to confirm that the client
+   * and server agree on the ordering of a resource being written.
+   * 
+ * + * string etag = 10202 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for etag. + */ + @java.lang.Override + 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 CREATE_TIME_FIELD_NUMBER = 10303; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
+   * Output only. The timestamp when the resource was created.
+   * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Output only. The timestamp when the resource was created.
+   * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
+   * Output only. The timestamp when the resource was created.
+   * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 10304; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
+   * Output only. The timestamp when the resource was last updated. Any
+   * change to the resource made by users must refresh this value.
+   * Changes to a resource made by the service should refresh this value.
+   * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+   * Output only. The timestamp when the resource was last updated. Any
+   * change to the resource made by users must refresh this value.
+   * Changes to a resource made by the service should refresh this value.
+   * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
+   * Output only. The timestamp when the resource was last updated. Any
+   * change to the resource made by users must refresh this value.
+   * Changes to a resource made by the service should refresh this value.
+   * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(unitKind_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, unitKind_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tenant_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, tenant_); + } + for (int i = 0; i < ongoingOperations_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, ongoingOperations_.getRaw(i)); + } + for (int i = 0; i < pendingOperations_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, pendingOperations_.getRaw(i)); + } + for (int i = 0; i < dependents_.size(); i++) { + output.writeMessage(7, dependents_.get(i)); + } + for (int i = 0; i < dependencies_.size(); i++) { + output.writeMessage(8, dependencies_.get(i)); + } + for (int i = 0; i < inputVariables_.size(); i++) { + output.writeMessage(9, inputVariables_.get(i)); + } + for (int i = 0; i < outputVariables_.size(); i++) { + output.writeMessage(10, outputVariables_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(release_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, release_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(14, getMaintenance()); + } + if (state_ + != com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.UnitState + .UNIT_STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(16, state_); + } + for (int i = 0; i < conditions_.size(); i++) { + output.writeMessage(20, conditions_.get(i)); + } + if (managementMode_ + != com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.ManagementMode + .MANAGEMENT_MODE_UNSPECIFIED + .getNumber()) { + output.writeEnum(22, managementMode_); + } + for (int i = 0; i < scheduledOperations_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 24, scheduledOperations_.getRaw(i)); + } + if (systemManagedState_ + != com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.SystemManagedState + .SYSTEM_MANAGED_STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(25, systemManagedState_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(26, getSystemCleanupAt()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10201, uid_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10202, etag_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(10303, getCreateTime()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(10304, getUpdateTime()); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 10401); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetAnnotations(), AnnotationsDefaultEntryHolder.defaultEntry, 10402); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(unitKind_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, unitKind_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tenant_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, tenant_); + } + { + int dataSize = 0; + for (int i = 0; i < ongoingOperations_.size(); i++) { + dataSize += computeStringSizeNoTag(ongoingOperations_.getRaw(i)); + } + size += dataSize; + size += 1 * getOngoingOperationsList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < pendingOperations_.size(); i++) { + dataSize += computeStringSizeNoTag(pendingOperations_.getRaw(i)); + } + size += dataSize; + size += 1 * getPendingOperationsList().size(); + } + for (int i = 0; i < dependents_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, dependents_.get(i)); + } + for (int i = 0; i < dependencies_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, dependencies_.get(i)); + } + for (int i = 0; i < inputVariables_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, inputVariables_.get(i)); + } + for (int i = 0; i < outputVariables_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, outputVariables_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(release_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, release_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getMaintenance()); + } + if (state_ + != com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.UnitState + .UNIT_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(16, state_); + } + for (int i = 0; i < conditions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, conditions_.get(i)); + } + if (managementMode_ + != com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.ManagementMode + .MANAGEMENT_MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(22, managementMode_); + } + { + int dataSize = 0; + for (int i = 0; i < scheduledOperations_.size(); i++) { + dataSize += computeStringSizeNoTag(scheduledOperations_.getRaw(i)); + } + size += dataSize; + size += 2 * getScheduledOperationsList().size(); + } + if (systemManagedState_ + != com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.SystemManagedState + .SYSTEM_MANAGED_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(25, systemManagedState_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(26, getSystemCleanupAt()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10201, uid_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10202, etag_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10303, getCreateTime()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10304, 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(10401, labels__); + } + for (java.util.Map.Entry entry : + internalGetAnnotations().getMap().entrySet()) { + com.google.protobuf.MapEntry annotations__ = + AnnotationsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10402, annotations__); + } + size += getUnknownFields().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.saasplatform.saasservicemgmt.v1beta1.Unit)) { + return super.equals(obj); + } + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit other = + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnitKind().equals(other.getUnitKind())) return false; + if (!getRelease().equals(other.getRelease())) return false; + if (!getTenant().equals(other.getTenant())) return false; + if (!getOngoingOperationsList().equals(other.getOngoingOperationsList())) return false; + if (!getPendingOperationsList().equals(other.getPendingOperationsList())) return false; + if (!getScheduledOperationsList().equals(other.getScheduledOperationsList())) return false; + if (!getDependentsList().equals(other.getDependentsList())) return false; + if (!getDependenciesList().equals(other.getDependenciesList())) return false; + if (!getInputVariablesList().equals(other.getInputVariablesList())) return false; + if (!getOutputVariablesList().equals(other.getOutputVariablesList())) return false; + if (hasMaintenance() != other.hasMaintenance()) return false; + if (hasMaintenance()) { + if (!getMaintenance().equals(other.getMaintenance())) return false; + } + if (state_ != other.state_) return false; + if (!getConditionsList().equals(other.getConditionsList())) return false; + if (managementMode_ != other.managementMode_) return false; + if (systemManagedState_ != other.systemManagedState_) return false; + if (hasSystemCleanupAt() != other.hasSystemCleanupAt()) return false; + if (hasSystemCleanupAt()) { + if (!getSystemCleanupAt().equals(other.getSystemCleanupAt())) return false; + } + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!internalGetAnnotations().equals(other.internalGetAnnotations())) return false; + if (!getUid().equals(other.getUid())) return false; + if (!getEtag().equals(other.getEtag())) 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + UNIT_KIND_FIELD_NUMBER; + hash = (53 * hash) + getUnitKind().hashCode(); + hash = (37 * hash) + RELEASE_FIELD_NUMBER; + hash = (53 * hash) + getRelease().hashCode(); + hash = (37 * hash) + TENANT_FIELD_NUMBER; + hash = (53 * hash) + getTenant().hashCode(); + if (getOngoingOperationsCount() > 0) { + hash = (37 * hash) + ONGOING_OPERATIONS_FIELD_NUMBER; + hash = (53 * hash) + getOngoingOperationsList().hashCode(); + } + if (getPendingOperationsCount() > 0) { + hash = (37 * hash) + PENDING_OPERATIONS_FIELD_NUMBER; + hash = (53 * hash) + getPendingOperationsList().hashCode(); + } + if (getScheduledOperationsCount() > 0) { + hash = (37 * hash) + SCHEDULED_OPERATIONS_FIELD_NUMBER; + hash = (53 * hash) + getScheduledOperationsList().hashCode(); + } + if (getDependentsCount() > 0) { + hash = (37 * hash) + DEPENDENTS_FIELD_NUMBER; + hash = (53 * hash) + getDependentsList().hashCode(); + } + if (getDependenciesCount() > 0) { + hash = (37 * hash) + DEPENDENCIES_FIELD_NUMBER; + hash = (53 * hash) + getDependenciesList().hashCode(); + } + if (getInputVariablesCount() > 0) { + hash = (37 * hash) + INPUT_VARIABLES_FIELD_NUMBER; + hash = (53 * hash) + getInputVariablesList().hashCode(); + } + if (getOutputVariablesCount() > 0) { + hash = (37 * hash) + OUTPUT_VARIABLES_FIELD_NUMBER; + hash = (53 * hash) + getOutputVariablesList().hashCode(); + } + if (hasMaintenance()) { + hash = (37 * hash) + MAINTENANCE_FIELD_NUMBER; + hash = (53 * hash) + getMaintenance().hashCode(); + } + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + if (getConditionsCount() > 0) { + hash = (37 * hash) + CONDITIONS_FIELD_NUMBER; + hash = (53 * hash) + getConditionsList().hashCode(); + } + hash = (37 * hash) + MANAGEMENT_MODE_FIELD_NUMBER; + hash = (53 * hash) + managementMode_; + hash = (37 * hash) + SYSTEM_MANAGED_STATE_FIELD_NUMBER; + hash = (53 * hash) + systemManagedState_; + if (hasSystemCleanupAt()) { + hash = (37 * hash) + SYSTEM_CLEANUP_AT_FIELD_NUMBER; + hash = (53 * hash) + getSystemCleanupAt().hashCode(); + } + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + if (!internalGetAnnotations().getMap().isEmpty()) { + hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; + hash = (53 * hash) + internalGetAnnotations().hashCode(); + } + hash = (37 * hash) + UID_FIELD_NUMBER; + hash = (53 * hash) + getUid().hashCode(); + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit 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.saasplatform.saasservicemgmt.v1beta1.Unit parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit 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.saasplatform.saasservicemgmt.v1beta1.Unit parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit 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.saasplatform.saasservicemgmt.v1beta1.Unit parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit 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.saasplatform.saasservicemgmt.v1beta1.Unit parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit 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.saasplatform.saasservicemgmt.v1beta1.Unit 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 unit of deployment that has its lifecycle via a CRUD API using an actuation
+   * engine under the hood (e.g. based on Terraform, Helm or a custom
+   * implementation provided by a service producer). A building block of a SaaS
+   * Tenant.
+   * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit) + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Unit_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 10401: + return internalGetLabels(); + case 10402: + return internalGetAnnotations(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 10401: + return internalGetMutableLabels(); + case 10402: + return internalGetMutableAnnotations(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Unit_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.Builder.class); + } + + // Construct using com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getDependentsFieldBuilder(); + getDependenciesFieldBuilder(); + getInputVariablesFieldBuilder(); + getOutputVariablesFieldBuilder(); + getMaintenanceFieldBuilder(); + getConditionsFieldBuilder(); + getSystemCleanupAtFieldBuilder(); + getCreateTimeFieldBuilder(); + getUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + unitKind_ = ""; + release_ = ""; + tenant_ = ""; + ongoingOperations_ = com.google.protobuf.LazyStringArrayList.emptyList(); + pendingOperations_ = com.google.protobuf.LazyStringArrayList.emptyList(); + scheduledOperations_ = com.google.protobuf.LazyStringArrayList.emptyList(); + if (dependentsBuilder_ == null) { + dependents_ = java.util.Collections.emptyList(); + } else { + dependents_ = null; + dependentsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000080); + if (dependenciesBuilder_ == null) { + dependencies_ = java.util.Collections.emptyList(); + } else { + dependencies_ = null; + dependenciesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000100); + if (inputVariablesBuilder_ == null) { + inputVariables_ = java.util.Collections.emptyList(); + } else { + inputVariables_ = null; + inputVariablesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000200); + if (outputVariablesBuilder_ == null) { + outputVariables_ = java.util.Collections.emptyList(); + } else { + outputVariables_ = null; + outputVariablesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000400); + maintenance_ = null; + if (maintenanceBuilder_ != null) { + maintenanceBuilder_.dispose(); + maintenanceBuilder_ = null; + } + state_ = 0; + if (conditionsBuilder_ == null) { + conditions_ = java.util.Collections.emptyList(); + } else { + conditions_ = null; + conditionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00002000); + managementMode_ = 0; + systemManagedState_ = 0; + systemCleanupAt_ = null; + if (systemCleanupAtBuilder_ != null) { + systemCleanupAtBuilder_.dispose(); + systemCleanupAtBuilder_ = null; + } + internalGetMutableLabels().clear(); + internalGetMutableAnnotations().clear(); + uid_ = ""; + etag_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Unit_descriptor; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit getDefaultInstanceForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit build() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit buildPartial() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit result = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit result) { + if (dependentsBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0)) { + dependents_ = java.util.Collections.unmodifiableList(dependents_); + bitField0_ = (bitField0_ & ~0x00000080); + } + result.dependents_ = dependents_; + } else { + result.dependents_ = dependentsBuilder_.build(); + } + if (dependenciesBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0)) { + dependencies_ = java.util.Collections.unmodifiableList(dependencies_); + bitField0_ = (bitField0_ & ~0x00000100); + } + result.dependencies_ = dependencies_; + } else { + result.dependencies_ = dependenciesBuilder_.build(); + } + if (inputVariablesBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0)) { + inputVariables_ = java.util.Collections.unmodifiableList(inputVariables_); + bitField0_ = (bitField0_ & ~0x00000200); + } + result.inputVariables_ = inputVariables_; + } else { + result.inputVariables_ = inputVariablesBuilder_.build(); + } + if (outputVariablesBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0)) { + outputVariables_ = java.util.Collections.unmodifiableList(outputVariables_); + bitField0_ = (bitField0_ & ~0x00000400); + } + result.outputVariables_ = outputVariables_; + } else { + result.outputVariables_ = outputVariablesBuilder_.build(); + } + if (conditionsBuilder_ == null) { + if (((bitField0_ & 0x00002000) != 0)) { + conditions_ = java.util.Collections.unmodifiableList(conditions_); + bitField0_ = (bitField0_ & ~0x00002000); + } + result.conditions_ = conditions_; + } else { + result.conditions_ = conditionsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.unitKind_ = unitKind_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.release_ = release_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.tenant_ = tenant_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + ongoingOperations_.makeImmutable(); + result.ongoingOperations_ = ongoingOperations_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + pendingOperations_.makeImmutable(); + result.pendingOperations_ = pendingOperations_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + scheduledOperations_.makeImmutable(); + result.scheduledOperations_ = scheduledOperations_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000800) != 0)) { + result.maintenance_ = + maintenanceBuilder_ == null ? maintenance_ : maintenanceBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.managementMode_ = managementMode_; + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.systemManagedState_ = systemManagedState_; + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.systemCleanupAt_ = + systemCleanupAtBuilder_ == null ? systemCleanupAt_ : systemCleanupAtBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00040000) != 0)) { + result.annotations_ = internalGetAnnotations(); + result.annotations_.makeImmutable(); + } + if (((from_bitField0_ & 0x00080000) != 0)) { + result.uid_ = uid_; + } + if (((from_bitField0_ & 0x00100000) != 0)) { + result.etag_ = etag_; + } + if (((from_bitField0_ & 0x00200000) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00400000) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + result.bitField0_ |= to_bitField0_; + } + + @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.saasplatform.saasservicemgmt.v1beta1.Unit) { + return mergeFrom((com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit other) { + if (other == com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getUnitKind().isEmpty()) { + unitKind_ = other.unitKind_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getRelease().isEmpty()) { + release_ = other.release_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getTenant().isEmpty()) { + tenant_ = other.tenant_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.ongoingOperations_.isEmpty()) { + if (ongoingOperations_.isEmpty()) { + ongoingOperations_ = other.ongoingOperations_; + bitField0_ |= 0x00000010; + } else { + ensureOngoingOperationsIsMutable(); + ongoingOperations_.addAll(other.ongoingOperations_); + } + onChanged(); + } + if (!other.pendingOperations_.isEmpty()) { + if (pendingOperations_.isEmpty()) { + pendingOperations_ = other.pendingOperations_; + bitField0_ |= 0x00000020; + } else { + ensurePendingOperationsIsMutable(); + pendingOperations_.addAll(other.pendingOperations_); + } + onChanged(); + } + if (!other.scheduledOperations_.isEmpty()) { + if (scheduledOperations_.isEmpty()) { + scheduledOperations_ = other.scheduledOperations_; + bitField0_ |= 0x00000040; + } else { + ensureScheduledOperationsIsMutable(); + scheduledOperations_.addAll(other.scheduledOperations_); + } + onChanged(); + } + if (dependentsBuilder_ == null) { + if (!other.dependents_.isEmpty()) { + if (dependents_.isEmpty()) { + dependents_ = other.dependents_; + bitField0_ = (bitField0_ & ~0x00000080); + } else { + ensureDependentsIsMutable(); + dependents_.addAll(other.dependents_); + } + onChanged(); + } + } else { + if (!other.dependents_.isEmpty()) { + if (dependentsBuilder_.isEmpty()) { + dependentsBuilder_.dispose(); + dependentsBuilder_ = null; + dependents_ = other.dependents_; + bitField0_ = (bitField0_ & ~0x00000080); + dependentsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDependentsFieldBuilder() + : null; + } else { + dependentsBuilder_.addAllMessages(other.dependents_); + } + } + } + if (dependenciesBuilder_ == null) { + if (!other.dependencies_.isEmpty()) { + if (dependencies_.isEmpty()) { + dependencies_ = other.dependencies_; + bitField0_ = (bitField0_ & ~0x00000100); + } else { + ensureDependenciesIsMutable(); + dependencies_.addAll(other.dependencies_); + } + onChanged(); + } + } else { + if (!other.dependencies_.isEmpty()) { + if (dependenciesBuilder_.isEmpty()) { + dependenciesBuilder_.dispose(); + dependenciesBuilder_ = null; + dependencies_ = other.dependencies_; + bitField0_ = (bitField0_ & ~0x00000100); + dependenciesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDependenciesFieldBuilder() + : null; + } else { + dependenciesBuilder_.addAllMessages(other.dependencies_); + } + } + } + if (inputVariablesBuilder_ == null) { + if (!other.inputVariables_.isEmpty()) { + if (inputVariables_.isEmpty()) { + inputVariables_ = other.inputVariables_; + bitField0_ = (bitField0_ & ~0x00000200); + } else { + ensureInputVariablesIsMutable(); + inputVariables_.addAll(other.inputVariables_); + } + onChanged(); + } + } else { + if (!other.inputVariables_.isEmpty()) { + if (inputVariablesBuilder_.isEmpty()) { + inputVariablesBuilder_.dispose(); + inputVariablesBuilder_ = null; + inputVariables_ = other.inputVariables_; + bitField0_ = (bitField0_ & ~0x00000200); + inputVariablesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getInputVariablesFieldBuilder() + : null; + } else { + inputVariablesBuilder_.addAllMessages(other.inputVariables_); + } + } + } + if (outputVariablesBuilder_ == null) { + if (!other.outputVariables_.isEmpty()) { + if (outputVariables_.isEmpty()) { + outputVariables_ = other.outputVariables_; + bitField0_ = (bitField0_ & ~0x00000400); + } else { + ensureOutputVariablesIsMutable(); + outputVariables_.addAll(other.outputVariables_); + } + onChanged(); + } + } else { + if (!other.outputVariables_.isEmpty()) { + if (outputVariablesBuilder_.isEmpty()) { + outputVariablesBuilder_.dispose(); + outputVariablesBuilder_ = null; + outputVariables_ = other.outputVariables_; + bitField0_ = (bitField0_ & ~0x00000400); + outputVariablesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getOutputVariablesFieldBuilder() + : null; + } else { + outputVariablesBuilder_.addAllMessages(other.outputVariables_); + } + } + } + if (other.hasMaintenance()) { + mergeMaintenance(other.getMaintenance()); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (conditionsBuilder_ == null) { + if (!other.conditions_.isEmpty()) { + if (conditions_.isEmpty()) { + conditions_ = other.conditions_; + bitField0_ = (bitField0_ & ~0x00002000); + } else { + ensureConditionsIsMutable(); + conditions_.addAll(other.conditions_); + } + onChanged(); + } + } else { + if (!other.conditions_.isEmpty()) { + if (conditionsBuilder_.isEmpty()) { + conditionsBuilder_.dispose(); + conditionsBuilder_ = null; + conditions_ = other.conditions_; + bitField0_ = (bitField0_ & ~0x00002000); + conditionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getConditionsFieldBuilder() + : null; + } else { + conditionsBuilder_.addAllMessages(other.conditions_); + } + } + } + if (other.managementMode_ != 0) { + setManagementModeValue(other.getManagementModeValue()); + } + if (other.systemManagedState_ != 0) { + setSystemManagedStateValue(other.getSystemManagedStateValue()); + } + if (other.hasSystemCleanupAt()) { + mergeSystemCleanupAt(other.getSystemCleanupAt()); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00020000; + internalGetMutableAnnotations().mergeFrom(other.internalGetAnnotations()); + bitField0_ |= 0x00040000; + if (!other.getUid().isEmpty()) { + uid_ = other.uid_; + bitField0_ |= 0x00080000; + onChanged(); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + bitField0_ |= 0x00100000; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + unitKind_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 34: + { + tenant_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureOngoingOperationsIsMutable(); + ongoingOperations_.add(s); + break; + } // case 42 + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + ensurePendingOperationsIsMutable(); + pendingOperations_.add(s); + break; + } // case 50 + case 58: + { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency m = + input.readMessage( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency + .parser(), + extensionRegistry); + if (dependentsBuilder_ == null) { + ensureDependentsIsMutable(); + dependents_.add(m); + } else { + dependentsBuilder_.addMessage(m); + } + break; + } // case 58 + case 66: + { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency m = + input.readMessage( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency + .parser(), + extensionRegistry); + if (dependenciesBuilder_ == null) { + ensureDependenciesIsMutable(); + dependencies_.add(m); + } else { + dependenciesBuilder_.addMessage(m); + } + break; + } // case 66 + case 74: + { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable m = + input.readMessage( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.parser(), + extensionRegistry); + if (inputVariablesBuilder_ == null) { + ensureInputVariablesIsMutable(); + inputVariables_.add(m); + } else { + inputVariablesBuilder_.addMessage(m); + } + break; + } // case 74 + case 82: + { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable m = + input.readMessage( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.parser(), + extensionRegistry); + if (outputVariablesBuilder_ == null) { + ensureOutputVariablesIsMutable(); + outputVariables_.add(m); + } else { + outputVariablesBuilder_.addMessage(m); + } + break; + } // case 82 + case 106: + { + release_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 106 + case 114: + { + input.readMessage(getMaintenanceFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000800; + break; + } // case 114 + case 128: + { + state_ = input.readEnum(); + bitField0_ |= 0x00001000; + break; + } // case 128 + case 162: + { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition m = + input.readMessage( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition + .parser(), + extensionRegistry); + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.add(m); + } else { + conditionsBuilder_.addMessage(m); + } + break; + } // case 162 + case 176: + { + managementMode_ = input.readEnum(); + bitField0_ |= 0x00004000; + break; + } // case 176 + case 194: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureScheduledOperationsIsMutable(); + scheduledOperations_.add(s); + break; + } // case 194 + case 200: + { + systemManagedState_ = input.readEnum(); + bitField0_ |= 0x00008000; + break; + } // case 200 + case 210: + { + input.readMessage(getSystemCleanupAtFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00010000; + break; + } // case 210 + case 81610: + { + uid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00080000; + break; + } // case 81610 + case 81618: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00100000; + break; + } // case 81618 + case 82426: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00200000; + break; + } // case 82426 + case 82434: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00400000; + break; + } // case 82434 + case 83210: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00020000; + break; + } // case 83210 + case 83218: + { + com.google.protobuf.MapEntry annotations__ = + input.readMessage( + AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableAnnotations() + .getMutableMap() + .put(annotations__.getKey(), annotations__.getValue()); + bitField0_ |= 0x00040000; + break; + } // case 83218 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Identifier. The resource name (full URI of the resource) following the
+     * standard naming scheme:
+     *
+     *   "projects/{project}/locations/{location}/units/{unit}"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + } + } + + /** + * + * + *
+     * Identifier. The resource name (full URI of the resource) following the
+     * standard naming scheme:
+     *
+     *   "projects/{project}/locations/{location}/units/{unit}"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + } + } + + /** + * + * + *
+     * Identifier. The resource name (full URI of the resource) following the
+     * standard naming scheme:
+     *
+     *   "projects/{project}/locations/{location}/units/{unit}"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Identifier. The resource name (full URI of the resource) following the
+     * standard naming scheme:
+     *
+     *   "projects/{project}/locations/{location}/units/{unit}"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Identifier. The resource name (full URI of the resource) following the
+     * standard naming scheme:
+     *
+     *   "projects/{project}/locations/{location}/units/{unit}"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object unitKind_ = ""; + + /** + * + * + *
+     * Optional. Reference to the UnitKind this Unit belongs to. Immutable once
+     * set.
+     * 
+ * + * + * string unit_kind = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The unitKind. + */ + public java.lang.String getUnitKind() { + java.lang.Object ref = unitKind_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + unitKind_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Reference to the UnitKind this Unit belongs to. Immutable once
+     * set.
+     * 
+ * + * + * string unit_kind = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for unitKind. + */ + public com.google.protobuf.ByteString getUnitKindBytes() { + java.lang.Object ref = unitKind_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + unitKind_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Reference to the UnitKind this Unit belongs to. Immutable once
+     * set.
+     * 
+ * + * + * string unit_kind = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The unitKind to set. + * @return This builder for chaining. + */ + public Builder setUnitKind(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + unitKind_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Reference to the UnitKind this Unit belongs to. Immutable once
+     * set.
+     * 
+ * + * + * string unit_kind = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearUnitKind() { + unitKind_ = getDefaultInstance().getUnitKind(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Reference to the UnitKind this Unit belongs to. Immutable once
+     * set.
+     * 
+ * + * + * string unit_kind = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for unitKind to set. + * @return This builder for chaining. + */ + public Builder setUnitKindBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + unitKind_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object release_ = ""; + + /** + * + * + *
+     * Optional. Output only. The current Release object for this Unit.
+     * 
+ * + * + * string release = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The release. + */ + public java.lang.String getRelease() { + java.lang.Object ref = release_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + release_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Output only. The current Release object for this Unit.
+     * 
+ * + * + * string release = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for release. + */ + public com.google.protobuf.ByteString getReleaseBytes() { + java.lang.Object ref = release_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + release_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Output only. The current Release object for this Unit.
+     * 
+ * + * + * string release = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The release to set. + * @return This builder for chaining. + */ + public Builder setRelease(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + release_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Output only. The current Release object for this Unit.
+     * 
+ * + * + * string release = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRelease() { + release_ = getDefaultInstance().getRelease(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Output only. The current Release object for this Unit.
+     * 
+ * + * + * string release = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for release to set. + * @return This builder for chaining. + */ + public Builder setReleaseBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + release_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object tenant_ = ""; + + /** + * + * + *
+     * Optional. Reference to the Saas Tenant resource this unit belongs to. This
+     * for example informs the maintenance policies to use for scheduling future
+     * updates on a unit. (optional and immutable once created)
+     * 
+ * + * + * string tenant = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The tenant. + */ + public java.lang.String getTenant() { + java.lang.Object ref = tenant_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tenant_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Reference to the Saas Tenant resource this unit belongs to. This
+     * for example informs the maintenance policies to use for scheduling future
+     * updates on a unit. (optional and immutable once created)
+     * 
+ * + * + * string tenant = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for tenant. + */ + public com.google.protobuf.ByteString getTenantBytes() { + java.lang.Object ref = tenant_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tenant_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Reference to the Saas Tenant resource this unit belongs to. This
+     * for example informs the maintenance policies to use for scheduling future
+     * updates on a unit. (optional and immutable once created)
+     * 
+ * + * + * string tenant = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The tenant to set. + * @return This builder for chaining. + */ + public Builder setTenant(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + tenant_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Reference to the Saas Tenant resource this unit belongs to. This
+     * for example informs the maintenance policies to use for scheduling future
+     * updates on a unit. (optional and immutable once created)
+     * 
+ * + * + * string tenant = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearTenant() { + tenant_ = getDefaultInstance().getTenant(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Reference to the Saas Tenant resource this unit belongs to. This
+     * for example informs the maintenance policies to use for scheduling future
+     * updates on a unit. (optional and immutable once created)
+     * 
+ * + * + * string tenant = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for tenant to set. + * @return This builder for chaining. + */ + public Builder setTenantBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + tenant_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList ongoingOperations_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureOngoingOperationsIsMutable() { + if (!ongoingOperations_.isModifiable()) { + ongoingOperations_ = new com.google.protobuf.LazyStringArrayList(ongoingOperations_); + } + bitField0_ |= 0x00000010; + } + + /** + * + * + *
+     * Optional. Output only. List of concurrent UnitOperations that are operating
+     * on this Unit.
+     * 
+ * + * + * repeated string ongoing_operations = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the ongoingOperations. + */ + public com.google.protobuf.ProtocolStringList getOngoingOperationsList() { + ongoingOperations_.makeImmutable(); + return ongoingOperations_; + } + + /** + * + * + *
+     * Optional. Output only. List of concurrent UnitOperations that are operating
+     * on this Unit.
+     * 
+ * + * + * repeated string ongoing_operations = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The count of ongoingOperations. + */ + public int getOngoingOperationsCount() { + return ongoingOperations_.size(); + } + + /** + * + * + *
+     * Optional. Output only. List of concurrent UnitOperations that are operating
+     * on this Unit.
+     * 
+ * + * + * repeated string ongoing_operations = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The ongoingOperations at the given index. + */ + public java.lang.String getOngoingOperations(int index) { + return ongoingOperations_.get(index); + } + + /** + * + * + *
+     * Optional. Output only. List of concurrent UnitOperations that are operating
+     * on this Unit.
+     * 
+ * + * + * repeated string ongoing_operations = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the ongoingOperations at the given index. + */ + public com.google.protobuf.ByteString getOngoingOperationsBytes(int index) { + return ongoingOperations_.getByteString(index); + } + + /** + * + * + *
+     * Optional. Output only. List of concurrent UnitOperations that are operating
+     * on this Unit.
+     * 
+ * + * + * repeated string ongoing_operations = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The ongoingOperations to set. + * @return This builder for chaining. + */ + public Builder setOngoingOperations(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureOngoingOperationsIsMutable(); + ongoingOperations_.set(index, value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Output only. List of concurrent UnitOperations that are operating
+     * on this Unit.
+     * 
+ * + * + * repeated string ongoing_operations = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The ongoingOperations to add. + * @return This builder for chaining. + */ + public Builder addOngoingOperations(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureOngoingOperationsIsMutable(); + ongoingOperations_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Output only. List of concurrent UnitOperations that are operating
+     * on this Unit.
+     * 
+ * + * + * repeated string ongoing_operations = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param values The ongoingOperations to add. + * @return This builder for chaining. + */ + public Builder addAllOngoingOperations(java.lang.Iterable values) { + ensureOngoingOperationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ongoingOperations_); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Output only. List of concurrent UnitOperations that are operating
+     * on this Unit.
+     * 
+ * + * + * repeated string ongoing_operations = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearOngoingOperations() { + ongoingOperations_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Output only. List of concurrent UnitOperations that are operating
+     * on this Unit.
+     * 
+ * + * + * repeated string ongoing_operations = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the ongoingOperations to add. + * @return This builder for chaining. + */ + public Builder addOngoingOperationsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureOngoingOperationsIsMutable(); + ongoingOperations_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList pendingOperations_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensurePendingOperationsIsMutable() { + if (!pendingOperations_.isModifiable()) { + pendingOperations_ = new com.google.protobuf.LazyStringArrayList(pendingOperations_); + } + bitField0_ |= 0x00000020; + } + + /** + * + * + *
+     * Optional. Output only. List of pending (wait to be executed) UnitOperations
+     * for this unit.
+     * 
+ * + * + * repeated string pending_operations = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the pendingOperations. + */ + public com.google.protobuf.ProtocolStringList getPendingOperationsList() { + pendingOperations_.makeImmutable(); + return pendingOperations_; + } + + /** + * + * + *
+     * Optional. Output only. List of pending (wait to be executed) UnitOperations
+     * for this unit.
+     * 
+ * + * + * repeated string pending_operations = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The count of pendingOperations. + */ + public int getPendingOperationsCount() { + return pendingOperations_.size(); + } + + /** + * + * + *
+     * Optional. Output only. List of pending (wait to be executed) UnitOperations
+     * for this unit.
+     * 
+ * + * + * repeated string pending_operations = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The pendingOperations at the given index. + */ + public java.lang.String getPendingOperations(int index) { + return pendingOperations_.get(index); + } + + /** + * + * + *
+     * Optional. Output only. List of pending (wait to be executed) UnitOperations
+     * for this unit.
+     * 
+ * + * + * repeated string pending_operations = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the pendingOperations at the given index. + */ + public com.google.protobuf.ByteString getPendingOperationsBytes(int index) { + return pendingOperations_.getByteString(index); + } + + /** + * + * + *
+     * Optional. Output only. List of pending (wait to be executed) UnitOperations
+     * for this unit.
+     * 
+ * + * + * repeated string pending_operations = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The pendingOperations to set. + * @return This builder for chaining. + */ + public Builder setPendingOperations(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePendingOperationsIsMutable(); + pendingOperations_.set(index, value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Output only. List of pending (wait to be executed) UnitOperations
+     * for this unit.
+     * 
+ * + * + * repeated string pending_operations = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The pendingOperations to add. + * @return This builder for chaining. + */ + public Builder addPendingOperations(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePendingOperationsIsMutable(); + pendingOperations_.add(value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Output only. List of pending (wait to be executed) UnitOperations
+     * for this unit.
+     * 
+ * + * + * repeated string pending_operations = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param values The pendingOperations to add. + * @return This builder for chaining. + */ + public Builder addAllPendingOperations(java.lang.Iterable values) { + ensurePendingOperationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pendingOperations_); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Output only. List of pending (wait to be executed) UnitOperations
+     * for this unit.
+     * 
+ * + * + * repeated string pending_operations = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearPendingOperations() { + pendingOperations_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Output only. List of pending (wait to be executed) UnitOperations
+     * for this unit.
+     * 
+ * + * + * repeated string pending_operations = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the pendingOperations to add. + * @return This builder for chaining. + */ + public Builder addPendingOperationsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensurePendingOperationsIsMutable(); + pendingOperations_.add(value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList scheduledOperations_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureScheduledOperationsIsMutable() { + if (!scheduledOperations_.isModifiable()) { + scheduledOperations_ = new com.google.protobuf.LazyStringArrayList(scheduledOperations_); + } + bitField0_ |= 0x00000040; + } + + /** + * + * + *
+     * Optional. Output only. List of scheduled UnitOperations for this unit.
+     * 
+ * + * + * repeated string scheduled_operations = 24 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the scheduledOperations. + */ + public com.google.protobuf.ProtocolStringList getScheduledOperationsList() { + scheduledOperations_.makeImmutable(); + return scheduledOperations_; + } + + /** + * + * + *
+     * Optional. Output only. List of scheduled UnitOperations for this unit.
+     * 
+ * + * + * repeated string scheduled_operations = 24 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The count of scheduledOperations. + */ + public int getScheduledOperationsCount() { + return scheduledOperations_.size(); + } + + /** + * + * + *
+     * Optional. Output only. List of scheduled UnitOperations for this unit.
+     * 
+ * + * + * repeated string scheduled_operations = 24 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The scheduledOperations at the given index. + */ + public java.lang.String getScheduledOperations(int index) { + return scheduledOperations_.get(index); + } + + /** + * + * + *
+     * Optional. Output only. List of scheduled UnitOperations for this unit.
+     * 
+ * + * + * repeated string scheduled_operations = 24 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the scheduledOperations at the given index. + */ + public com.google.protobuf.ByteString getScheduledOperationsBytes(int index) { + return scheduledOperations_.getByteString(index); + } + + /** + * + * + *
+     * Optional. Output only. List of scheduled UnitOperations for this unit.
+     * 
+ * + * + * repeated string scheduled_operations = 24 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The scheduledOperations to set. + * @return This builder for chaining. + */ + public Builder setScheduledOperations(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureScheduledOperationsIsMutable(); + scheduledOperations_.set(index, value); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Output only. List of scheduled UnitOperations for this unit.
+     * 
+ * + * + * repeated string scheduled_operations = 24 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The scheduledOperations to add. + * @return This builder for chaining. + */ + public Builder addScheduledOperations(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureScheduledOperationsIsMutable(); + scheduledOperations_.add(value); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Output only. List of scheduled UnitOperations for this unit.
+     * 
+ * + * + * repeated string scheduled_operations = 24 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param values The scheduledOperations to add. + * @return This builder for chaining. + */ + public Builder addAllScheduledOperations(java.lang.Iterable values) { + ensureScheduledOperationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, scheduledOperations_); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Output only. List of scheduled UnitOperations for this unit.
+     * 
+ * + * + * repeated string scheduled_operations = 24 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearScheduledOperations() { + scheduledOperations_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Output only. List of scheduled UnitOperations for this unit.
+     * 
+ * + * + * repeated string scheduled_operations = 24 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the scheduledOperations to add. + * @return This builder for chaining. + */ + public Builder addScheduledOperationsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureScheduledOperationsIsMutable(); + scheduledOperations_.add(value); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private java.util.List + dependents_ = java.util.Collections.emptyList(); + + private void ensureDependentsIsMutable() { + if (!((bitField0_ & 0x00000080) != 0)) { + dependents_ = + new java.util.ArrayList< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency>(dependents_); + bitField0_ |= 0x00000080; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependencyOrBuilder> + dependentsBuilder_; + + /** + * + * + *
+     * Optional. Output only. List of Units that depend on this unit. Unit can
+     * only be deprovisioned if this list is empty. Maximum 1000.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency dependents = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getDependentsList() { + if (dependentsBuilder_ == null) { + return java.util.Collections.unmodifiableList(dependents_); + } else { + return dependentsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. Output only. List of Units that depend on this unit. Unit can
+     * only be deprovisioned if this list is empty. Maximum 1000.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency dependents = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getDependentsCount() { + if (dependentsBuilder_ == null) { + return dependents_.size(); + } else { + return dependentsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. Output only. List of Units that depend on this unit. Unit can
+     * only be deprovisioned if this list is empty. Maximum 1000.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency dependents = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency getDependents( + int index) { + if (dependentsBuilder_ == null) { + return dependents_.get(index); + } else { + return dependentsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. Output only. List of Units that depend on this unit. Unit can
+     * only be deprovisioned if this list is empty. Maximum 1000.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency dependents = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDependents( + int index, com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency value) { + if (dependentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDependentsIsMutable(); + dependents_.set(index, value); + onChanged(); + } else { + dependentsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Output only. List of Units that depend on this unit. Unit can
+     * only be deprovisioned if this list is empty. Maximum 1000.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency dependents = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDependents( + int index, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency.Builder + builderForValue) { + if (dependentsBuilder_ == null) { + ensureDependentsIsMutable(); + dependents_.set(index, builderForValue.build()); + onChanged(); + } else { + dependentsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Output only. List of Units that depend on this unit. Unit can
+     * only be deprovisioned if this list is empty. Maximum 1000.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency dependents = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addDependents( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency value) { + if (dependentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDependentsIsMutable(); + dependents_.add(value); + onChanged(); + } else { + dependentsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. Output only. List of Units that depend on this unit. Unit can
+     * only be deprovisioned if this list is empty. Maximum 1000.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency dependents = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addDependents( + int index, com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency value) { + if (dependentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDependentsIsMutable(); + dependents_.add(index, value); + onChanged(); + } else { + dependentsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Output only. List of Units that depend on this unit. Unit can
+     * only be deprovisioned if this list is empty. Maximum 1000.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency dependents = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addDependents( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency.Builder + builderForValue) { + if (dependentsBuilder_ == null) { + ensureDependentsIsMutable(); + dependents_.add(builderForValue.build()); + onChanged(); + } else { + dependentsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Output only. List of Units that depend on this unit. Unit can
+     * only be deprovisioned if this list is empty. Maximum 1000.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency dependents = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addDependents( + int index, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency.Builder + builderForValue) { + if (dependentsBuilder_ == null) { + ensureDependentsIsMutable(); + dependents_.add(index, builderForValue.build()); + onChanged(); + } else { + dependentsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Output only. List of Units that depend on this unit. Unit can
+     * only be deprovisioned if this list is empty. Maximum 1000.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency dependents = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllDependents( + java.lang.Iterable< + ? extends com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency> + values) { + if (dependentsBuilder_ == null) { + ensureDependentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dependents_); + onChanged(); + } else { + dependentsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. Output only. List of Units that depend on this unit. Unit can
+     * only be deprovisioned if this list is empty. Maximum 1000.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency dependents = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearDependents() { + if (dependentsBuilder_ == null) { + dependents_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + } else { + dependentsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. Output only. List of Units that depend on this unit. Unit can
+     * only be deprovisioned if this list is empty. Maximum 1000.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency dependents = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeDependents(int index) { + if (dependentsBuilder_ == null) { + ensureDependentsIsMutable(); + dependents_.remove(index); + onChanged(); + } else { + dependentsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. Output only. List of Units that depend on this unit. Unit can
+     * only be deprovisioned if this list is empty. Maximum 1000.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency dependents = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency.Builder + getDependentsBuilder(int index) { + return getDependentsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. Output only. List of Units that depend on this unit. Unit can
+     * only be deprovisioned if this list is empty. Maximum 1000.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency dependents = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependencyOrBuilder + getDependentsOrBuilder(int index) { + if (dependentsBuilder_ == null) { + return dependents_.get(index); + } else { + return dependentsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. Output only. List of Units that depend on this unit. Unit can
+     * only be deprovisioned if this list is empty. Maximum 1000.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency dependents = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependencyOrBuilder> + getDependentsOrBuilderList() { + if (dependentsBuilder_ != null) { + return dependentsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(dependents_); + } + } + + /** + * + * + *
+     * Optional. Output only. List of Units that depend on this unit. Unit can
+     * only be deprovisioned if this list is empty. Maximum 1000.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency dependents = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency.Builder + addDependentsBuilder() { + return getDependentsFieldBuilder() + .addBuilder( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency + .getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Output only. List of Units that depend on this unit. Unit can
+     * only be deprovisioned if this list is empty. Maximum 1000.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency dependents = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency.Builder + addDependentsBuilder(int index) { + return getDependentsFieldBuilder() + .addBuilder( + index, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency + .getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Output only. List of Units that depend on this unit. Unit can
+     * only be deprovisioned if this list is empty. Maximum 1000.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency dependents = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency.Builder> + getDependentsBuilderList() { + return getDependentsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependencyOrBuilder> + getDependentsFieldBuilder() { + if (dependentsBuilder_ == null) { + dependentsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependencyOrBuilder>( + dependents_, ((bitField0_ & 0x00000080) != 0), getParentForChildren(), isClean()); + dependents_ = null; + } + return dependentsBuilder_; + } + + private java.util.List + dependencies_ = java.util.Collections.emptyList(); + + private void ensureDependenciesIsMutable() { + if (!((bitField0_ & 0x00000100) != 0)) { + dependencies_ = + new java.util.ArrayList< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency>( + dependencies_); + bitField0_ |= 0x00000100; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependencyOrBuilder> + dependenciesBuilder_; + + /** + * + * + *
+     * Optional. Output only. Set of dependencies for this unit. Maximum 10.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency dependencies = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getDependenciesList() { + if (dependenciesBuilder_ == null) { + return java.util.Collections.unmodifiableList(dependencies_); + } else { + return dependenciesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. Output only. Set of dependencies for this unit. Maximum 10.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency dependencies = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getDependenciesCount() { + if (dependenciesBuilder_ == null) { + return dependencies_.size(); + } else { + return dependenciesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. Output only. Set of dependencies for this unit. Maximum 10.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency dependencies = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency getDependencies( + int index) { + if (dependenciesBuilder_ == null) { + return dependencies_.get(index); + } else { + return dependenciesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. Output only. Set of dependencies for this unit. Maximum 10.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency dependencies = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDependencies( + int index, com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency value) { + if (dependenciesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDependenciesIsMutable(); + dependencies_.set(index, value); + onChanged(); + } else { + dependenciesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Output only. Set of dependencies for this unit. Maximum 10.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency dependencies = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDependencies( + int index, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency.Builder + builderForValue) { + if (dependenciesBuilder_ == null) { + ensureDependenciesIsMutable(); + dependencies_.set(index, builderForValue.build()); + onChanged(); + } else { + dependenciesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Output only. Set of dependencies for this unit. Maximum 10.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency dependencies = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addDependencies( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency value) { + if (dependenciesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDependenciesIsMutable(); + dependencies_.add(value); + onChanged(); + } else { + dependenciesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. Output only. Set of dependencies for this unit. Maximum 10.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency dependencies = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addDependencies( + int index, com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency value) { + if (dependenciesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDependenciesIsMutable(); + dependencies_.add(index, value); + onChanged(); + } else { + dependenciesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Output only. Set of dependencies for this unit. Maximum 10.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency dependencies = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addDependencies( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency.Builder + builderForValue) { + if (dependenciesBuilder_ == null) { + ensureDependenciesIsMutable(); + dependencies_.add(builderForValue.build()); + onChanged(); + } else { + dependenciesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Output only. Set of dependencies for this unit. Maximum 10.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency dependencies = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addDependencies( + int index, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency.Builder + builderForValue) { + if (dependenciesBuilder_ == null) { + ensureDependenciesIsMutable(); + dependencies_.add(index, builderForValue.build()); + onChanged(); + } else { + dependenciesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Output only. Set of dependencies for this unit. Maximum 10.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency dependencies = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllDependencies( + java.lang.Iterable< + ? extends com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency> + values) { + if (dependenciesBuilder_ == null) { + ensureDependenciesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dependencies_); + onChanged(); + } else { + dependenciesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. Output only. Set of dependencies for this unit. Maximum 10.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency dependencies = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearDependencies() { + if (dependenciesBuilder_ == null) { + dependencies_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + } else { + dependenciesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. Output only. Set of dependencies for this unit. Maximum 10.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency dependencies = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeDependencies(int index) { + if (dependenciesBuilder_ == null) { + ensureDependenciesIsMutable(); + dependencies_.remove(index); + onChanged(); + } else { + dependenciesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. Output only. Set of dependencies for this unit. Maximum 10.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency dependencies = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency.Builder + getDependenciesBuilder(int index) { + return getDependenciesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. Output only. Set of dependencies for this unit. Maximum 10.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency dependencies = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependencyOrBuilder + getDependenciesOrBuilder(int index) { + if (dependenciesBuilder_ == null) { + return dependencies_.get(index); + } else { + return dependenciesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. Output only. Set of dependencies for this unit. Maximum 10.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency dependencies = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependencyOrBuilder> + getDependenciesOrBuilderList() { + if (dependenciesBuilder_ != null) { + return dependenciesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(dependencies_); + } + } + + /** + * + * + *
+     * Optional. Output only. Set of dependencies for this unit. Maximum 10.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency dependencies = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency.Builder + addDependenciesBuilder() { + return getDependenciesFieldBuilder() + .addBuilder( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency + .getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Output only. Set of dependencies for this unit. Maximum 10.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency dependencies = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency.Builder + addDependenciesBuilder(int index) { + return getDependenciesFieldBuilder() + .addBuilder( + index, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency + .getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Output only. Set of dependencies for this unit. Maximum 10.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency dependencies = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency.Builder> + getDependenciesBuilderList() { + return getDependenciesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependencyOrBuilder> + getDependenciesFieldBuilder() { + if (dependenciesBuilder_ == null) { + dependenciesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependencyOrBuilder>( + dependencies_, ((bitField0_ & 0x00000100) != 0), getParentForChildren(), isClean()); + dependencies_ = null; + } + return dependenciesBuilder_; + } + + private java.util.List + inputVariables_ = java.util.Collections.emptyList(); + + private void ensureInputVariablesIsMutable() { + if (!((bitField0_ & 0x00000200) != 0)) { + inputVariables_ = + new java.util.ArrayList< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable>( + inputVariables_); + bitField0_ |= 0x00000200; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariableOrBuilder> + inputVariablesBuilder_; + + /** + * + * + *
+     * Optional. Output only. Indicates the current input variables deployed by
+     * the unit
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getInputVariablesList() { + if (inputVariablesBuilder_ == null) { + return java.util.Collections.unmodifiableList(inputVariables_); + } else { + return inputVariablesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. Output only. Indicates the current input variables deployed by
+     * the unit
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getInputVariablesCount() { + if (inputVariablesBuilder_ == null) { + return inputVariables_.size(); + } else { + return inputVariablesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. Output only. Indicates the current input variables deployed by
+     * the unit
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable getInputVariables( + int index) { + if (inputVariablesBuilder_ == null) { + return inputVariables_.get(index); + } else { + return inputVariablesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. Output only. Indicates the current input variables deployed by
+     * the unit
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setInputVariables( + int index, com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable value) { + if (inputVariablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInputVariablesIsMutable(); + inputVariables_.set(index, value); + onChanged(); + } else { + inputVariablesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Output only. Indicates the current input variables deployed by
+     * the unit
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setInputVariables( + int index, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Builder + builderForValue) { + if (inputVariablesBuilder_ == null) { + ensureInputVariablesIsMutable(); + inputVariables_.set(index, builderForValue.build()); + onChanged(); + } else { + inputVariablesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Output only. Indicates the current input variables deployed by
+     * the unit
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addInputVariables( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable value) { + if (inputVariablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInputVariablesIsMutable(); + inputVariables_.add(value); + onChanged(); + } else { + inputVariablesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. Output only. Indicates the current input variables deployed by
+     * the unit
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addInputVariables( + int index, com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable value) { + if (inputVariablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInputVariablesIsMutable(); + inputVariables_.add(index, value); + onChanged(); + } else { + inputVariablesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Output only. Indicates the current input variables deployed by
+     * the unit
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addInputVariables( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Builder + builderForValue) { + if (inputVariablesBuilder_ == null) { + ensureInputVariablesIsMutable(); + inputVariables_.add(builderForValue.build()); + onChanged(); + } else { + inputVariablesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Output only. Indicates the current input variables deployed by
+     * the unit
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addInputVariables( + int index, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Builder + builderForValue) { + if (inputVariablesBuilder_ == null) { + ensureInputVariablesIsMutable(); + inputVariables_.add(index, builderForValue.build()); + onChanged(); + } else { + inputVariablesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Output only. Indicates the current input variables deployed by
+     * the unit
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllInputVariables( + java.lang.Iterable< + ? extends com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable> + values) { + if (inputVariablesBuilder_ == null) { + ensureInputVariablesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, inputVariables_); + onChanged(); + } else { + inputVariablesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. Output only. Indicates the current input variables deployed by
+     * the unit
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearInputVariables() { + if (inputVariablesBuilder_ == null) { + inputVariables_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + } else { + inputVariablesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. Output only. Indicates the current input variables deployed by
+     * the unit
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeInputVariables(int index) { + if (inputVariablesBuilder_ == null) { + ensureInputVariablesIsMutable(); + inputVariables_.remove(index); + onChanged(); + } else { + inputVariablesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. Output only. Indicates the current input variables deployed by
+     * the unit
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Builder + getInputVariablesBuilder(int index) { + return getInputVariablesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. Output only. Indicates the current input variables deployed by
+     * the unit
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariableOrBuilder + getInputVariablesOrBuilder(int index) { + if (inputVariablesBuilder_ == null) { + return inputVariables_.get(index); + } else { + return inputVariablesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. Output only. Indicates the current input variables deployed by
+     * the unit
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariableOrBuilder> + getInputVariablesOrBuilderList() { + if (inputVariablesBuilder_ != null) { + return inputVariablesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(inputVariables_); + } + } + + /** + * + * + *
+     * Optional. Output only. Indicates the current input variables deployed by
+     * the unit
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Builder + addInputVariablesBuilder() { + return getInputVariablesFieldBuilder() + .addBuilder( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable + .getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Output only. Indicates the current input variables deployed by
+     * the unit
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Builder + addInputVariablesBuilder(int index) { + return getInputVariablesFieldBuilder() + .addBuilder( + index, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable + .getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Output only. Indicates the current input variables deployed by
+     * the unit
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Builder> + getInputVariablesBuilderList() { + return getInputVariablesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariableOrBuilder> + getInputVariablesFieldBuilder() { + if (inputVariablesBuilder_ == null) { + inputVariablesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariableOrBuilder>( + inputVariables_, + ((bitField0_ & 0x00000200) != 0), + getParentForChildren(), + isClean()); + inputVariables_ = null; + } + return inputVariablesBuilder_; + } + + private java.util.List + outputVariables_ = java.util.Collections.emptyList(); + + private void ensureOutputVariablesIsMutable() { + if (!((bitField0_ & 0x00000400) != 0)) { + outputVariables_ = + new java.util.ArrayList< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable>( + outputVariables_); + bitField0_ |= 0x00000400; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariableOrBuilder> + outputVariablesBuilder_; + + /** + * + * + *
+     * Optional. Output only. Set of key/value pairs corresponding to output
+     * variables from execution of actuation templates. The variables are declared
+     * in actuation configs (e.g in helm chart or terraform) and the values are
+     * fetched and returned by the actuation engine upon completion of execution.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable output_variables = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getOutputVariablesList() { + if (outputVariablesBuilder_ == null) { + return java.util.Collections.unmodifiableList(outputVariables_); + } else { + return outputVariablesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. Output only. Set of key/value pairs corresponding to output
+     * variables from execution of actuation templates. The variables are declared
+     * in actuation configs (e.g in helm chart or terraform) and the values are
+     * fetched and returned by the actuation engine upon completion of execution.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable output_variables = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getOutputVariablesCount() { + if (outputVariablesBuilder_ == null) { + return outputVariables_.size(); + } else { + return outputVariablesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. Output only. Set of key/value pairs corresponding to output
+     * variables from execution of actuation templates. The variables are declared
+     * in actuation configs (e.g in helm chart or terraform) and the values are
+     * fetched and returned by the actuation engine upon completion of execution.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable output_variables = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable getOutputVariables( + int index) { + if (outputVariablesBuilder_ == null) { + return outputVariables_.get(index); + } else { + return outputVariablesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. Output only. Set of key/value pairs corresponding to output
+     * variables from execution of actuation templates. The variables are declared
+     * in actuation configs (e.g in helm chart or terraform) and the values are
+     * fetched and returned by the actuation engine upon completion of execution.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable output_variables = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setOutputVariables( + int index, com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable value) { + if (outputVariablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOutputVariablesIsMutable(); + outputVariables_.set(index, value); + onChanged(); + } else { + outputVariablesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Output only. Set of key/value pairs corresponding to output
+     * variables from execution of actuation templates. The variables are declared
+     * in actuation configs (e.g in helm chart or terraform) and the values are
+     * fetched and returned by the actuation engine upon completion of execution.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable output_variables = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setOutputVariables( + int index, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Builder + builderForValue) { + if (outputVariablesBuilder_ == null) { + ensureOutputVariablesIsMutable(); + outputVariables_.set(index, builderForValue.build()); + onChanged(); + } else { + outputVariablesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Output only. Set of key/value pairs corresponding to output
+     * variables from execution of actuation templates. The variables are declared
+     * in actuation configs (e.g in helm chart or terraform) and the values are
+     * fetched and returned by the actuation engine upon completion of execution.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable output_variables = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addOutputVariables( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable value) { + if (outputVariablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOutputVariablesIsMutable(); + outputVariables_.add(value); + onChanged(); + } else { + outputVariablesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. Output only. Set of key/value pairs corresponding to output
+     * variables from execution of actuation templates. The variables are declared
+     * in actuation configs (e.g in helm chart or terraform) and the values are
+     * fetched and returned by the actuation engine upon completion of execution.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable output_variables = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addOutputVariables( + int index, com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable value) { + if (outputVariablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOutputVariablesIsMutable(); + outputVariables_.add(index, value); + onChanged(); + } else { + outputVariablesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Output only. Set of key/value pairs corresponding to output
+     * variables from execution of actuation templates. The variables are declared
+     * in actuation configs (e.g in helm chart or terraform) and the values are
+     * fetched and returned by the actuation engine upon completion of execution.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable output_variables = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addOutputVariables( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Builder + builderForValue) { + if (outputVariablesBuilder_ == null) { + ensureOutputVariablesIsMutable(); + outputVariables_.add(builderForValue.build()); + onChanged(); + } else { + outputVariablesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Output only. Set of key/value pairs corresponding to output
+     * variables from execution of actuation templates. The variables are declared
+     * in actuation configs (e.g in helm chart or terraform) and the values are
+     * fetched and returned by the actuation engine upon completion of execution.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable output_variables = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addOutputVariables( + int index, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Builder + builderForValue) { + if (outputVariablesBuilder_ == null) { + ensureOutputVariablesIsMutable(); + outputVariables_.add(index, builderForValue.build()); + onChanged(); + } else { + outputVariablesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Output only. Set of key/value pairs corresponding to output
+     * variables from execution of actuation templates. The variables are declared
+     * in actuation configs (e.g in helm chart or terraform) and the values are
+     * fetched and returned by the actuation engine upon completion of execution.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable output_variables = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllOutputVariables( + java.lang.Iterable< + ? extends com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable> + values) { + if (outputVariablesBuilder_ == null) { + ensureOutputVariablesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, outputVariables_); + onChanged(); + } else { + outputVariablesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. Output only. Set of key/value pairs corresponding to output
+     * variables from execution of actuation templates. The variables are declared
+     * in actuation configs (e.g in helm chart or terraform) and the values are
+     * fetched and returned by the actuation engine upon completion of execution.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable output_variables = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearOutputVariables() { + if (outputVariablesBuilder_ == null) { + outputVariables_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + } else { + outputVariablesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. Output only. Set of key/value pairs corresponding to output
+     * variables from execution of actuation templates. The variables are declared
+     * in actuation configs (e.g in helm chart or terraform) and the values are
+     * fetched and returned by the actuation engine upon completion of execution.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable output_variables = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeOutputVariables(int index) { + if (outputVariablesBuilder_ == null) { + ensureOutputVariablesIsMutable(); + outputVariables_.remove(index); + onChanged(); + } else { + outputVariablesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. Output only. Set of key/value pairs corresponding to output
+     * variables from execution of actuation templates. The variables are declared
+     * in actuation configs (e.g in helm chart or terraform) and the values are
+     * fetched and returned by the actuation engine upon completion of execution.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable output_variables = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Builder + getOutputVariablesBuilder(int index) { + return getOutputVariablesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. Output only. Set of key/value pairs corresponding to output
+     * variables from execution of actuation templates. The variables are declared
+     * in actuation configs (e.g in helm chart or terraform) and the values are
+     * fetched and returned by the actuation engine upon completion of execution.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable output_variables = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariableOrBuilder + getOutputVariablesOrBuilder(int index) { + if (outputVariablesBuilder_ == null) { + return outputVariables_.get(index); + } else { + return outputVariablesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. Output only. Set of key/value pairs corresponding to output
+     * variables from execution of actuation templates. The variables are declared
+     * in actuation configs (e.g in helm chart or terraform) and the values are
+     * fetched and returned by the actuation engine upon completion of execution.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable output_variables = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariableOrBuilder> + getOutputVariablesOrBuilderList() { + if (outputVariablesBuilder_ != null) { + return outputVariablesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(outputVariables_); + } + } + + /** + * + * + *
+     * Optional. Output only. Set of key/value pairs corresponding to output
+     * variables from execution of actuation templates. The variables are declared
+     * in actuation configs (e.g in helm chart or terraform) and the values are
+     * fetched and returned by the actuation engine upon completion of execution.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable output_variables = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Builder + addOutputVariablesBuilder() { + return getOutputVariablesFieldBuilder() + .addBuilder( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable + .getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Output only. Set of key/value pairs corresponding to output
+     * variables from execution of actuation templates. The variables are declared
+     * in actuation configs (e.g in helm chart or terraform) and the values are
+     * fetched and returned by the actuation engine upon completion of execution.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable output_variables = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Builder + addOutputVariablesBuilder(int index) { + return getOutputVariablesFieldBuilder() + .addBuilder( + index, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable + .getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Output only. Set of key/value pairs corresponding to output
+     * variables from execution of actuation templates. The variables are declared
+     * in actuation configs (e.g in helm chart or terraform) and the values are
+     * fetched and returned by the actuation engine upon completion of execution.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable output_variables = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Builder> + getOutputVariablesBuilderList() { + return getOutputVariablesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariableOrBuilder> + getOutputVariablesFieldBuilder() { + if (outputVariablesBuilder_ == null) { + outputVariablesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariableOrBuilder>( + outputVariables_, + ((bitField0_ & 0x00000400) != 0), + getParentForChildren(), + isClean()); + outputVariables_ = null; + } + return outputVariablesBuilder_; + } + + private com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.MaintenanceSettings + maintenance_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.MaintenanceSettings, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.MaintenanceSettings.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.MaintenanceSettingsOrBuilder> + maintenanceBuilder_; + + /** + * + * + *
+     * Optional. Captures requested directives for performing future maintenance
+     * on the unit. This includes a request for the unit to skip maintenance for a
+     * period of time and remain pinned to its current release as well as controls
+     * for postponing maintenance scheduled in future.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.MaintenanceSettings maintenance = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the maintenance field is set. + */ + public boolean hasMaintenance() { + return ((bitField0_ & 0x00000800) != 0); + } + + /** + * + * + *
+     * Optional. Captures requested directives for performing future maintenance
+     * on the unit. This includes a request for the unit to skip maintenance for a
+     * period of time and remain pinned to its current release as well as controls
+     * for postponing maintenance scheduled in future.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.MaintenanceSettings maintenance = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The maintenance. + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.MaintenanceSettings + getMaintenance() { + if (maintenanceBuilder_ == null) { + return maintenance_ == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.MaintenanceSettings + .getDefaultInstance() + : maintenance_; + } else { + return maintenanceBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Captures requested directives for performing future maintenance
+     * on the unit. This includes a request for the unit to skip maintenance for a
+     * period of time and remain pinned to its current release as well as controls
+     * for postponing maintenance scheduled in future.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.MaintenanceSettings maintenance = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMaintenance( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.MaintenanceSettings value) { + if (maintenanceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + maintenance_ = value; + } else { + maintenanceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Captures requested directives for performing future maintenance
+     * on the unit. This includes a request for the unit to skip maintenance for a
+     * period of time and remain pinned to its current release as well as controls
+     * for postponing maintenance scheduled in future.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.MaintenanceSettings maintenance = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMaintenance( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.MaintenanceSettings.Builder + builderForValue) { + if (maintenanceBuilder_ == null) { + maintenance_ = builderForValue.build(); + } else { + maintenanceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Captures requested directives for performing future maintenance
+     * on the unit. This includes a request for the unit to skip maintenance for a
+     * period of time and remain pinned to its current release as well as controls
+     * for postponing maintenance scheduled in future.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.MaintenanceSettings maintenance = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeMaintenance( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.MaintenanceSettings value) { + if (maintenanceBuilder_ == null) { + if (((bitField0_ & 0x00000800) != 0) + && maintenance_ != null + && maintenance_ + != com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.MaintenanceSettings + .getDefaultInstance()) { + getMaintenanceBuilder().mergeFrom(value); + } else { + maintenance_ = value; + } + } else { + maintenanceBuilder_.mergeFrom(value); + } + if (maintenance_ != null) { + bitField0_ |= 0x00000800; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Captures requested directives for performing future maintenance
+     * on the unit. This includes a request for the unit to skip maintenance for a
+     * period of time and remain pinned to its current release as well as controls
+     * for postponing maintenance scheduled in future.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.MaintenanceSettings maintenance = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearMaintenance() { + bitField0_ = (bitField0_ & ~0x00000800); + maintenance_ = null; + if (maintenanceBuilder_ != null) { + maintenanceBuilder_.dispose(); + maintenanceBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Captures requested directives for performing future maintenance
+     * on the unit. This includes a request for the unit to skip maintenance for a
+     * period of time and remain pinned to its current release as well as controls
+     * for postponing maintenance scheduled in future.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.MaintenanceSettings maintenance = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.MaintenanceSettings.Builder + getMaintenanceBuilder() { + bitField0_ |= 0x00000800; + onChanged(); + return getMaintenanceFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Captures requested directives for performing future maintenance
+     * on the unit. This includes a request for the unit to skip maintenance for a
+     * period of time and remain pinned to its current release as well as controls
+     * for postponing maintenance scheduled in future.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.MaintenanceSettings maintenance = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.MaintenanceSettingsOrBuilder + getMaintenanceOrBuilder() { + if (maintenanceBuilder_ != null) { + return maintenanceBuilder_.getMessageOrBuilder(); + } else { + return maintenance_ == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.MaintenanceSettings + .getDefaultInstance() + : maintenance_; + } + } + + /** + * + * + *
+     * Optional. Captures requested directives for performing future maintenance
+     * on the unit. This includes a request for the unit to skip maintenance for a
+     * period of time and remain pinned to its current release as well as controls
+     * for postponing maintenance scheduled in future.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.MaintenanceSettings maintenance = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.MaintenanceSettings, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.MaintenanceSettings.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.MaintenanceSettingsOrBuilder> + getMaintenanceFieldBuilder() { + if (maintenanceBuilder_ == null) { + maintenanceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.MaintenanceSettings, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.MaintenanceSettings + .Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit + .MaintenanceSettingsOrBuilder>( + getMaintenance(), getParentForChildren(), isClean()); + maintenance_ = null; + } + return maintenanceBuilder_; + } + + private int state_ = 0; + + /** + * + * + *
+     * Optional. Output only. Current lifecycle state of the resource (e.g. if
+     * it's being created or ready to use).
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.UnitState state = 16 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
+     * Optional. Output only. Current lifecycle state of the resource (e.g. if
+     * it's being created or ready to use).
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.UnitState state = 16 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Output only. Current lifecycle state of the resource (e.g. if
+     * it's being created or ready to use).
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.UnitState state = 16 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.UnitState getState() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.UnitState result = + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.UnitState.forNumber(state_); + return result == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.UnitState.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Optional. Output only. Current lifecycle state of the resource (e.g. if
+     * it's being created or ready to use).
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.UnitState state = 16 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.UnitState value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00001000; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Output only. Current lifecycle state of the resource (e.g. if
+     * it's being created or ready to use).
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.UnitState state = 16 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00001000); + state_ = 0; + onChanged(); + return this; + } + + private java.util.List + conditions_ = java.util.Collections.emptyList(); + + private void ensureConditionsIsMutable() { + if (!((bitField0_ & 0x00002000) != 0)) { + conditions_ = + new java.util.ArrayList< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition>(conditions_); + bitField0_ |= 0x00002000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitConditionOrBuilder> + conditionsBuilder_; + + /** + * + * + *
+     * Optional. Output only. A set of conditions which indicate the various
+     * conditions this resource can have.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition conditions = 20 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getConditionsList() { + if (conditionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(conditions_); + } else { + return conditionsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. Output only. A set of conditions which indicate the various
+     * conditions this resource can have.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition conditions = 20 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getConditionsCount() { + if (conditionsBuilder_ == null) { + return conditions_.size(); + } else { + return conditionsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. Output only. A set of conditions which indicate the various
+     * conditions this resource can have.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition conditions = 20 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition getConditions( + int index) { + if (conditionsBuilder_ == null) { + return conditions_.get(index); + } else { + return conditionsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. Output only. A set of conditions which indicate the various
+     * conditions this resource can have.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition conditions = 20 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setConditions( + int index, com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition value) { + if (conditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConditionsIsMutable(); + conditions_.set(index, value); + onChanged(); + } else { + conditionsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Output only. A set of conditions which indicate the various
+     * conditions this resource can have.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition conditions = 20 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setConditions( + int index, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition.Builder + builderForValue) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.set(index, builderForValue.build()); + onChanged(); + } else { + conditionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Output only. A set of conditions which indicate the various
+     * conditions this resource can have.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition conditions = 20 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addConditions( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition value) { + if (conditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConditionsIsMutable(); + conditions_.add(value); + onChanged(); + } else { + conditionsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. Output only. A set of conditions which indicate the various
+     * conditions this resource can have.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition conditions = 20 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addConditions( + int index, com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition value) { + if (conditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConditionsIsMutable(); + conditions_.add(index, value); + onChanged(); + } else { + conditionsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Output only. A set of conditions which indicate the various
+     * conditions this resource can have.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition conditions = 20 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addConditions( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition.Builder + builderForValue) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.add(builderForValue.build()); + onChanged(); + } else { + conditionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Output only. A set of conditions which indicate the various
+     * conditions this resource can have.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition conditions = 20 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addConditions( + int index, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition.Builder + builderForValue) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.add(index, builderForValue.build()); + onChanged(); + } else { + conditionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Output only. A set of conditions which indicate the various
+     * conditions this resource can have.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition conditions = 20 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllConditions( + java.lang.Iterable< + ? extends com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition> + values) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, conditions_); + onChanged(); + } else { + conditionsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. Output only. A set of conditions which indicate the various
+     * conditions this resource can have.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition conditions = 20 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearConditions() { + if (conditionsBuilder_ == null) { + conditions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00002000); + onChanged(); + } else { + conditionsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. Output only. A set of conditions which indicate the various
+     * conditions this resource can have.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition conditions = 20 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeConditions(int index) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.remove(index); + onChanged(); + } else { + conditionsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. Output only. A set of conditions which indicate the various
+     * conditions this resource can have.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition conditions = 20 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition.Builder + getConditionsBuilder(int index) { + return getConditionsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. Output only. A set of conditions which indicate the various
+     * conditions this resource can have.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition conditions = 20 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitConditionOrBuilder + getConditionsOrBuilder(int index) { + if (conditionsBuilder_ == null) { + return conditions_.get(index); + } else { + return conditionsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. Output only. A set of conditions which indicate the various
+     * conditions this resource can have.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition conditions = 20 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitConditionOrBuilder> + getConditionsOrBuilderList() { + if (conditionsBuilder_ != null) { + return conditionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(conditions_); + } + } + + /** + * + * + *
+     * Optional. Output only. A set of conditions which indicate the various
+     * conditions this resource can have.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition conditions = 20 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition.Builder + addConditionsBuilder() { + return getConditionsFieldBuilder() + .addBuilder( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition + .getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Output only. A set of conditions which indicate the various
+     * conditions this resource can have.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition conditions = 20 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition.Builder + addConditionsBuilder(int index) { + return getConditionsFieldBuilder() + .addBuilder( + index, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition + .getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Output only. A set of conditions which indicate the various
+     * conditions this resource can have.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition conditions = 20 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition.Builder> + getConditionsBuilderList() { + return getConditionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitConditionOrBuilder> + getConditionsFieldBuilder() { + if (conditionsBuilder_ == null) { + conditionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitConditionOrBuilder>( + conditions_, ((bitField0_ & 0x00002000) != 0), getParentForChildren(), isClean()); + conditions_ = null; + } + return conditionsBuilder_; + } + + private int managementMode_ = 0; + + /** + * + * + *
+     * Optional. Immutable. Indicates whether the Unit life cycle is controlled
+     * by the user or by the system.
+     * Immutable once created.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.ManagementMode management_mode = 22 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for managementMode. + */ + @java.lang.Override + public int getManagementModeValue() { + return managementMode_; + } + + /** + * + * + *
+     * Optional. Immutable. Indicates whether the Unit life cycle is controlled
+     * by the user or by the system.
+     * Immutable once created.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.ManagementMode management_mode = 22 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The enum numeric value on the wire for managementMode to set. + * @return This builder for chaining. + */ + public Builder setManagementModeValue(int value) { + managementMode_ = value; + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Immutable. Indicates whether the Unit life cycle is controlled
+     * by the user or by the system.
+     * Immutable once created.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.ManagementMode management_mode = 22 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The managementMode. + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.ManagementMode + getManagementMode() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.ManagementMode result = + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.ManagementMode.forNumber( + managementMode_); + return result == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.ManagementMode.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Optional. Immutable. Indicates whether the Unit life cycle is controlled
+     * by the user or by the system.
+     * Immutable once created.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.ManagementMode management_mode = 22 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The managementMode to set. + * @return This builder for chaining. + */ + public Builder setManagementMode( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.ManagementMode value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00004000; + managementMode_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Immutable. Indicates whether the Unit life cycle is controlled
+     * by the user or by the system.
+     * Immutable once created.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.ManagementMode management_mode = 22 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearManagementMode() { + bitField0_ = (bitField0_ & ~0x00004000); + managementMode_ = 0; + onChanged(); + return this; + } + + private int systemManagedState_ = 0; + + /** + * + * + *
+     * Optional. Output only. Indicates the system managed state of the unit.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.SystemManagedState system_managed_state = 25 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for systemManagedState. + */ + @java.lang.Override + public int getSystemManagedStateValue() { + return systemManagedState_; + } + + /** + * + * + *
+     * Optional. Output only. Indicates the system managed state of the unit.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.SystemManagedState system_managed_state = 25 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for systemManagedState to set. + * @return This builder for chaining. + */ + public Builder setSystemManagedStateValue(int value) { + systemManagedState_ = value; + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Output only. Indicates the system managed state of the unit.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.SystemManagedState system_managed_state = 25 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The systemManagedState. + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.SystemManagedState + getSystemManagedState() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.SystemManagedState result = + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.SystemManagedState.forNumber( + systemManagedState_); + return result == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.SystemManagedState + .UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Optional. Output only. Indicates the system managed state of the unit.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.SystemManagedState system_managed_state = 25 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The systemManagedState to set. + * @return This builder for chaining. + */ + public Builder setSystemManagedState( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.SystemManagedState value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00008000; + systemManagedState_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Output only. Indicates the system managed state of the unit.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.SystemManagedState system_managed_state = 25 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearSystemManagedState() { + bitField0_ = (bitField0_ & ~0x00008000); + systemManagedState_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp systemCleanupAt_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + systemCleanupAtBuilder_; + + /** + * + * + *
+     * Optional. Output only. If set, indicates the time when the system will
+     * start removing the unit.
+     * 
+ * + * + * .google.protobuf.Timestamp system_cleanup_at = 26 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the systemCleanupAt field is set. + */ + public boolean hasSystemCleanupAt() { + return ((bitField0_ & 0x00010000) != 0); + } + + /** + * + * + *
+     * Optional. Output only. If set, indicates the time when the system will
+     * start removing the unit.
+     * 
+ * + * + * .google.protobuf.Timestamp system_cleanup_at = 26 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The systemCleanupAt. + */ + public com.google.protobuf.Timestamp getSystemCleanupAt() { + if (systemCleanupAtBuilder_ == null) { + return systemCleanupAt_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : systemCleanupAt_; + } else { + return systemCleanupAtBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Output only. If set, indicates the time when the system will
+     * start removing the unit.
+     * 
+ * + * + * .google.protobuf.Timestamp system_cleanup_at = 26 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSystemCleanupAt(com.google.protobuf.Timestamp value) { + if (systemCleanupAtBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + systemCleanupAt_ = value; + } else { + systemCleanupAtBuilder_.setMessage(value); + } + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Output only. If set, indicates the time when the system will
+     * start removing the unit.
+     * 
+ * + * + * .google.protobuf.Timestamp system_cleanup_at = 26 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSystemCleanupAt(com.google.protobuf.Timestamp.Builder builderForValue) { + if (systemCleanupAtBuilder_ == null) { + systemCleanupAt_ = builderForValue.build(); + } else { + systemCleanupAtBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Output only. If set, indicates the time when the system will
+     * start removing the unit.
+     * 
+ * + * + * .google.protobuf.Timestamp system_cleanup_at = 26 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeSystemCleanupAt(com.google.protobuf.Timestamp value) { + if (systemCleanupAtBuilder_ == null) { + if (((bitField0_ & 0x00010000) != 0) + && systemCleanupAt_ != null + && systemCleanupAt_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getSystemCleanupAtBuilder().mergeFrom(value); + } else { + systemCleanupAt_ = value; + } + } else { + systemCleanupAtBuilder_.mergeFrom(value); + } + if (systemCleanupAt_ != null) { + bitField0_ |= 0x00010000; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Output only. If set, indicates the time when the system will
+     * start removing the unit.
+     * 
+ * + * + * .google.protobuf.Timestamp system_cleanup_at = 26 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearSystemCleanupAt() { + bitField0_ = (bitField0_ & ~0x00010000); + systemCleanupAt_ = null; + if (systemCleanupAtBuilder_ != null) { + systemCleanupAtBuilder_.dispose(); + systemCleanupAtBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Output only. If set, indicates the time when the system will
+     * start removing the unit.
+     * 
+ * + * + * .google.protobuf.Timestamp system_cleanup_at = 26 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getSystemCleanupAtBuilder() { + bitField0_ |= 0x00010000; + onChanged(); + return getSystemCleanupAtFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Output only. If set, indicates the time when the system will
+     * start removing the unit.
+     * 
+ * + * + * .google.protobuf.Timestamp system_cleanup_at = 26 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getSystemCleanupAtOrBuilder() { + if (systemCleanupAtBuilder_ != null) { + return systemCleanupAtBuilder_.getMessageOrBuilder(); + } else { + return systemCleanupAt_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : systemCleanupAt_; + } + } + + /** + * + * + *
+     * Optional. Output only. If set, indicates the time when the system will
+     * start removing the unit.
+     * 
+ * + * + * .google.protobuf.Timestamp system_cleanup_at = 26 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getSystemCleanupAtFieldBuilder() { + if (systemCleanupAtBuilder_ == null) { + systemCleanupAtBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getSystemCleanupAt(), getParentForChildren(), isClean()); + systemCleanupAt_ = null; + } + return systemCleanupAtBuilder_; + } + + 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() { + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + bitField0_ |= 0x00020000; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
+     * Optional. The labels on the resource, which can be used for categorization.
+     * similar to Kubernetes resource labels.
+     * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** + * + * + *
+     * Optional. The labels on the resource, which can be used for categorization.
+     * similar to Kubernetes resource labels.
+     * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
+     * Optional. The labels on the resource, which can be used for categorization.
+     * similar to Kubernetes resource labels.
+     * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+     * Optional. The labels on the resource, which can be used for categorization.
+     * similar to Kubernetes resource labels.
+     * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00020000); + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + + /** + * + * + *
+     * Optional. The labels on the resource, which can be used for categorization.
+     * similar to Kubernetes resource labels.
+     * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableLabels() { + bitField0_ |= 0x00020000; + return internalGetMutableLabels().getMutableMap(); + } + + /** + * + * + *
+     * Optional. The labels on the resource, which can be used for categorization.
+     * similar to Kubernetes resource labels.
+     * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00020000; + return this; + } + + /** + * + * + *
+     * Optional. The labels on the resource, which can be used for categorization.
+     * similar to Kubernetes resource labels.
+     * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00020000; + return this; + } + + private com.google.protobuf.MapField annotations_; + + private com.google.protobuf.MapField + internalGetAnnotations() { + if (annotations_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AnnotationsDefaultEntryHolder.defaultEntry); + } + return annotations_; + } + + private com.google.protobuf.MapField + internalGetMutableAnnotations() { + if (annotations_ == null) { + annotations_ = + com.google.protobuf.MapField.newMapField(AnnotationsDefaultEntryHolder.defaultEntry); + } + if (!annotations_.isMutable()) { + annotations_ = annotations_.copy(); + } + bitField0_ |= 0x00040000; + onChanged(); + return annotations_; + } + + public int getAnnotationsCount() { + return internalGetAnnotations().getMap().size(); + } + + /** + * + * + *
+     * Optional. Annotations is an unstructured key-value map stored with a
+     * resource that may be set by external tools to store and retrieve arbitrary
+     * metadata. They are not queryable and should be preserved when modifying
+     * objects.
+     *
+     * More info: https://kubernetes.io/docs/user-guide/annotations
+     * 
+ * + * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetAnnotations().getMap().containsKey(key); + } + + /** Use {@link #getAnnotationsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getAnnotations() { + return getAnnotationsMap(); + } + + /** + * + * + *
+     * Optional. Annotations is an unstructured key-value map stored with a
+     * resource that may be set by external tools to store and retrieve arbitrary
+     * metadata. They are not queryable and should be preserved when modifying
+     * objects.
+     *
+     * More info: https://kubernetes.io/docs/user-guide/annotations
+     * 
+ * + * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getAnnotationsMap() { + return internalGetAnnotations().getMap(); + } + + /** + * + * + *
+     * Optional. Annotations is an unstructured key-value map stored with a
+     * resource that may be set by external tools to store and retrieve arbitrary
+     * metadata. They are not queryable and should be preserved when modifying
+     * objects.
+     *
+     * More info: https://kubernetes.io/docs/user-guide/annotations
+     * 
+ * + * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getAnnotationsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+     * Optional. Annotations is an unstructured key-value map stored with a
+     * resource that may be set by external tools to store and retrieve arbitrary
+     * metadata. They are not queryable and should be preserved when modifying
+     * objects.
+     *
+     * More info: https://kubernetes.io/docs/user-guide/annotations
+     * 
+ * + * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearAnnotations() { + bitField0_ = (bitField0_ & ~0x00040000); + internalGetMutableAnnotations().getMutableMap().clear(); + return this; + } + + /** + * + * + *
+     * Optional. Annotations is an unstructured key-value map stored with a
+     * resource that may be set by external tools to store and retrieve arbitrary
+     * metadata. They are not queryable and should be preserved when modifying
+     * objects.
+     *
+     * More info: https://kubernetes.io/docs/user-guide/annotations
+     * 
+ * + * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableAnnotations().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableAnnotations() { + bitField0_ |= 0x00040000; + return internalGetMutableAnnotations().getMutableMap(); + } + + /** + * + * + *
+     * Optional. Annotations is an unstructured key-value map stored with a
+     * resource that may be set by external tools to store and retrieve arbitrary
+     * metadata. They are not queryable and should be preserved when modifying
+     * objects.
+     *
+     * More info: https://kubernetes.io/docs/user-guide/annotations
+     * 
+ * + * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAnnotations(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableAnnotations().getMutableMap().put(key, value); + bitField0_ |= 0x00040000; + return this; + } + + /** + * + * + *
+     * Optional. Annotations is an unstructured key-value map stored with a
+     * resource that may be set by external tools to store and retrieve arbitrary
+     * metadata. They are not queryable and should be preserved when modifying
+     * objects.
+     *
+     * More info: https://kubernetes.io/docs/user-guide/annotations
+     * 
+ * + * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllAnnotations(java.util.Map values) { + internalGetMutableAnnotations().getMutableMap().putAll(values); + bitField0_ |= 0x00040000; + return this; + } + + private java.lang.Object uid_ = ""; + + /** + * + * + *
+     * Output only. The unique identifier of the resource. UID is unique in the
+     * time and space for this resource within the scope of the service. It is
+     * typically generated by the server on successful creation of a resource
+     * and must not be changed. UID is used to uniquely identify resources
+     * with resource name reuses. This should be a UUID4.
+     * 
+ * + * + * string uid = 10201 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The uid. + */ + public java.lang.String getUid() { + java.lang.Object ref = uid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The unique identifier of the resource. UID is unique in the
+     * time and space for this resource within the scope of the service. It is
+     * typically generated by the server on successful creation of a resource
+     * and must not be changed. UID is used to uniquely identify resources
+     * with resource name reuses. This should be a UUID4.
+     * 
+ * + * + * string uid = 10201 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The bytes for uid. + */ + public com.google.protobuf.ByteString getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The unique identifier of the resource. UID is unique in the
+     * time and space for this resource within the scope of the service. It is
+     * typically generated by the server on successful creation of a resource
+     * and must not be changed. UID is used to uniquely identify resources
+     * with resource name reuses. This should be a UUID4.
+     * 
+ * + * + * string uid = 10201 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @param value The uid to set. + * @return This builder for chaining. + */ + public Builder setUid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uid_ = value; + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The unique identifier of the resource. UID is unique in the
+     * time and space for this resource within the scope of the service. It is
+     * typically generated by the server on successful creation of a resource
+     * and must not be changed. UID is used to uniquely identify resources
+     * with resource name reuses. This should be a UUID4.
+     * 
+ * + * + * string uid = 10201 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearUid() { + uid_ = getDefaultInstance().getUid(); + bitField0_ = (bitField0_ & ~0x00080000); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The unique identifier of the resource. UID is unique in the
+     * time and space for this resource within the scope of the service. It is
+     * typically generated by the server on successful creation of a resource
+     * and must not be changed. UID is used to uniquely identify resources
+     * with resource name reuses. This should be a UUID4.
+     * 
+ * + * + * string uid = 10201 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for uid to set. + * @return This builder for chaining. + */ + public Builder setUidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uid_ = value; + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + + private java.lang.Object etag_ = ""; + + /** + * + * + *
+     * Output only. An opaque value that uniquely identifies a version or
+     * generation of a resource. It can be used to confirm that the client
+     * and server agree on the ordering of a resource being written.
+     * 
+ * + * string etag = 10202 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+     * Output only. An opaque value that uniquely identifies a version or
+     * generation of a resource. It can be used to confirm that the client
+     * and server agree on the ordering of a resource being written.
+     * 
+ * + * string etag = 10202 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+     * Output only. An opaque value that uniquely identifies a version or
+     * generation of a resource. It can be used to confirm that the client
+     * and server agree on the ordering of a resource being written.
+     * 
+ * + * string etag = 10202 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + bitField0_ |= 0x00100000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. An opaque value that uniquely identifies a version or
+     * generation of a resource. It can be used to confirm that the client
+     * and server agree on the ordering of a resource being written.
+     * 
+ * + * string etag = 10202 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00100000); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. An opaque value that uniquely identifies a version or
+     * generation of a resource. It can be used to confirm that the client
+     * and server agree on the ordering of a resource being written.
+     * 
+ * + * string etag = 10202 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + bitField0_ |= 0x00100000; + 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 timestamp when the resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00200000) != 0); + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.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 timestamp when the resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.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; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00200000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00200000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00200000) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00200000; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00200000); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00200000; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.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 timestamp when the resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.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 timestamp when the resource was last updated. Any
+     * change to the resource made by users must refresh this value.
+     * Changes to a resource made by the service should refresh this value.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00400000) != 0); + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was last updated. Any
+     * change to the resource made by users must refresh this value.
+     * Changes to a resource made by the service should refresh this value.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.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 timestamp when the resource was last updated. Any
+     * change to the resource made by users must refresh this value.
+     * Changes to a resource made by the service should refresh this value.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.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; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00400000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was last updated. Any
+     * change to the resource made by users must refresh this value.
+     * Changes to a resource made by the service should refresh this value.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00400000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was last updated. Any
+     * change to the resource made by users must refresh this value.
+     * Changes to a resource made by the service should refresh this value.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00400000) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00400000; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was last updated. Any
+     * change to the resource made by users must refresh this value.
+     * Changes to a resource made by the service should refresh this value.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00400000); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was last updated. Any
+     * change to the resource made by users must refresh this value.
+     * Changes to a resource made by the service should refresh this value.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00400000; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was last updated. Any
+     * change to the resource made by users must refresh this value.
+     * Changes to a resource made by the service should refresh this value.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.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 timestamp when the resource was last updated. Any
+     * change to the resource made by users must refresh this value.
+     * Changes to a resource made by the service should refresh this value.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.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_; + } + + @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.saasplatform.saasservicemgmt.v1beta1.Unit) + } + + // @@protoc_insertion_point(class_scope:google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit) + private static final com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit(); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Unit parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.saasplatform.saasservicemgmt.v1beta1.Unit getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UnitCondition.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UnitCondition.java new file mode 100644 index 000000000000..cfdc5837cda2 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UnitCondition.java @@ -0,0 +1,1916 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/common.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +/** + * + * + *
+ * UnitCondition describes the status of an Unit. UnitCondition is individual
+ * components that contribute to an overall state.
+ * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition} + */ +public final class UnitCondition extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition) + UnitConditionOrBuilder { + private static final long serialVersionUID = 0L; + + // Use UnitCondition.newBuilder() to construct. + private UnitCondition(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UnitCondition() { + status_ = 0; + type_ = 0; + message_ = ""; + reason_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UnitCondition(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CommonProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UnitCondition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CommonProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UnitCondition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition.Builder.class); + } + + /** + * + * + *
+   * Enumeration of condition statuses.
+   * 
+ * + * Protobuf enum {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition.Status} + */ + public enum Status implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Condition status is unspecified.
+     * 
+ * + * STATUS_UNSPECIFIED = 0; + */ + STATUS_UNSPECIFIED(0), + /** + * + * + *
+     * Condition is unknown.
+     * 
+ * + * STATUS_UNKNOWN = 1; + */ + STATUS_UNKNOWN(1), + /** + * + * + *
+     * Condition is true.
+     * 
+ * + * STATUS_TRUE = 2; + */ + STATUS_TRUE(2), + /** + * + * + *
+     * Condition is false.
+     * 
+ * + * STATUS_FALSE = 3; + */ + STATUS_FALSE(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Condition status is unspecified.
+     * 
+ * + * STATUS_UNSPECIFIED = 0; + */ + public static final int STATUS_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Condition is unknown.
+     * 
+ * + * STATUS_UNKNOWN = 1; + */ + public static final int STATUS_UNKNOWN_VALUE = 1; + + /** + * + * + *
+     * Condition is true.
+     * 
+ * + * STATUS_TRUE = 2; + */ + public static final int STATUS_TRUE_VALUE = 2; + + /** + * + * + *
+     * Condition is false.
+     * 
+ * + * STATUS_FALSE = 3; + */ + public static final int STATUS_FALSE_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 Status 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 Status forNumber(int value) { + switch (value) { + case 0: + return STATUS_UNSPECIFIED; + case 1: + return STATUS_UNKNOWN; + case 2: + return STATUS_TRUE; + case 3: + return STATUS_FALSE; + 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 Status findValueByNumber(int number) { + return Status.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + 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.saasplatform.saasservicemgmt.v1beta1.UnitCondition.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Status[] VALUES = values(); + + public static Status 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 Status(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition.Status) + } + + /** + * + * + *
+   * Enumeration of condition types.
+   * 
+ * + * Protobuf enum {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition.Type} + */ + public enum Type implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Condition type is unspecified.
+     * 
+ * + * TYPE_UNSPECIFIED = 0; + */ + TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * Condition type is ready.
+     * 
+ * + * TYPE_READY = 1; + */ + TYPE_READY(1), + /** + * + * + *
+     * Condition type is updating.
+     * 
+ * + * TYPE_UPDATING = 2; + */ + TYPE_UPDATING(2), + /** + * + * + *
+     * Condition type is provisioned.
+     * 
+ * + * TYPE_PROVISIONED = 3; + */ + TYPE_PROVISIONED(3), + /** + * + * + *
+     * Condition type is operationError.
+     * True when the last unit operation fails with a non-ignorable error.
+     * 
+ * + * TYPE_OPERATION_ERROR = 4; + */ + TYPE_OPERATION_ERROR(4), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Condition type is unspecified.
+     * 
+ * + * TYPE_UNSPECIFIED = 0; + */ + public static final int TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Condition type is ready.
+     * 
+ * + * TYPE_READY = 1; + */ + public static final int TYPE_READY_VALUE = 1; + + /** + * + * + *
+     * Condition type is updating.
+     * 
+ * + * TYPE_UPDATING = 2; + */ + public static final int TYPE_UPDATING_VALUE = 2; + + /** + * + * + *
+     * Condition type is provisioned.
+     * 
+ * + * TYPE_PROVISIONED = 3; + */ + public static final int TYPE_PROVISIONED_VALUE = 3; + + /** + * + * + *
+     * Condition type is operationError.
+     * True when the last unit operation fails with a non-ignorable error.
+     * 
+ * + * TYPE_OPERATION_ERROR = 4; + */ + public static final int TYPE_OPERATION_ERROR_VALUE = 4; + + 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 Type 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 Type forNumber(int value) { + switch (value) { + case 0: + return TYPE_UNSPECIFIED; + case 1: + return TYPE_READY; + case 2: + return TYPE_UPDATING; + case 3: + return TYPE_PROVISIONED; + case 4: + return TYPE_OPERATION_ERROR; + 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 Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + 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.saasplatform.saasservicemgmt.v1beta1.UnitCondition.getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final Type[] VALUES = values(); + + public static Type 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 Type(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition.Type) + } + + private int bitField0_; + public static final int STATUS_FIELD_NUMBER = 1; + private int status_ = 0; + + /** + * + * + *
+   * Required. Status of the condition.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition.Status status = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override + public int getStatusValue() { + return status_; + } + + /** + * + * + *
+   * Required. Status of the condition.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition.Status status = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The status. + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition.Status getStatus() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition.Status result = + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition.Status.forNumber( + status_); + return result == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition.Status.UNRECOGNIZED + : result; + } + + public static final int TYPE_FIELD_NUMBER = 2; + private int type_ = 0; + + /** + * + * + *
+   * Required. Type of the condition.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + + /** + * + * + *
+   * Required. Type of the condition.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition.Type getType() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition.Type result = + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition.Type.forNumber(type_); + return result == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition.Type.UNRECOGNIZED + : result; + } + + public static final int LAST_TRANSITION_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp lastTransitionTime_; + + /** + * + * + *
+   * Required. Last time the condition transited from one status to another.
+   * 
+ * + * + * .google.protobuf.Timestamp last_transition_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the lastTransitionTime field is set. + */ + @java.lang.Override + public boolean hasLastTransitionTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. Last time the condition transited from one status to another.
+   * 
+ * + * + * .google.protobuf.Timestamp last_transition_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The lastTransitionTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getLastTransitionTime() { + return lastTransitionTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastTransitionTime_; + } + + /** + * + * + *
+   * Required. Last time the condition transited from one status to another.
+   * 
+ * + * + * .google.protobuf.Timestamp last_transition_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getLastTransitionTimeOrBuilder() { + return lastTransitionTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastTransitionTime_; + } + + public static final int MESSAGE_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object message_ = ""; + + /** + * + * + *
+   * Required. Human readable message indicating details about the last
+   * transition.
+   * 
+ * + * string message = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The message. + */ + @java.lang.Override + public java.lang.String getMessage() { + java.lang.Object ref = message_; + 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(); + message_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. Human readable message indicating details about the last
+   * transition.
+   * 
+ * + * string message = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for message. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REASON_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object reason_ = ""; + + /** + * + * + *
+   * Required. Brief reason for the condition's last transition.
+   * 
+ * + * string reason = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The reason. + */ + @java.lang.Override + public java.lang.String getReason() { + java.lang.Object ref = reason_; + 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(); + reason_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. Brief reason for the condition's last transition.
+   * 
+ * + * string reason = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for reason. + */ + @java.lang.Override + public com.google.protobuf.ByteString getReasonBytes() { + java.lang.Object ref = reason_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + reason_ = 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 (status_ + != com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition.Status + .STATUS_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, status_); + } + if (type_ + != com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition.Type.TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, type_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getLastTransitionTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, message_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reason_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, reason_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (status_ + != com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition.Status + .STATUS_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, status_); + } + if (type_ + != com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition.Type.TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, type_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getLastTransitionTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, message_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reason_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, reason_); + } + size += getUnknownFields().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.saasplatform.saasservicemgmt.v1beta1.UnitCondition)) { + return super.equals(obj); + } + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition other = + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition) obj; + + if (status_ != other.status_) return false; + if (type_ != other.type_) return false; + if (hasLastTransitionTime() != other.hasLastTransitionTime()) return false; + if (hasLastTransitionTime()) { + if (!getLastTransitionTime().equals(other.getLastTransitionTime())) return false; + } + if (!getMessage().equals(other.getMessage())) return false; + if (!getReason().equals(other.getReason())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + if (hasLastTransitionTime()) { + hash = (37 * hash) + LAST_TRANSITION_TIME_FIELD_NUMBER; + hash = (53 * hash) + getLastTransitionTime().hashCode(); + } + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + hash = (37 * hash) + REASON_FIELD_NUMBER; + hash = (53 * hash) + getReason().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition 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.saasplatform.saasservicemgmt.v1beta1.UnitCondition parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition 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.saasplatform.saasservicemgmt.v1beta1.UnitCondition parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition 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.saasplatform.saasservicemgmt.v1beta1.UnitCondition + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition + 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.saasplatform.saasservicemgmt.v1beta1.UnitCondition parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition 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.saasplatform.saasservicemgmt.v1beta1.UnitCondition 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; + } + + /** + * + * + *
+   * UnitCondition describes the status of an Unit. UnitCondition is individual
+   * components that contribute to an overall state.
+   * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition) + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitConditionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CommonProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UnitCondition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CommonProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UnitCondition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition.Builder.class); + } + + // Construct using + // com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getLastTransitionTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + status_ = 0; + type_ = 0; + lastTransitionTime_ = null; + if (lastTransitionTimeBuilder_ != null) { + lastTransitionTimeBuilder_.dispose(); + lastTransitionTimeBuilder_ = null; + } + message_ = ""; + reason_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CommonProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UnitCondition_descriptor; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition + getDefaultInstanceForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition build() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition buildPartial() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition result = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.status_ = status_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.type_ = type_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.lastTransitionTime_ = + lastTransitionTimeBuilder_ == null + ? lastTransitionTime_ + : lastTransitionTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.message_ = message_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.reason_ = reason_; + } + result.bitField0_ |= to_bitField0_; + } + + @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.saasplatform.saasservicemgmt.v1beta1.UnitCondition) { + return mergeFrom( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition other) { + if (other + == com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition + .getDefaultInstance()) return this; + if (other.status_ != 0) { + setStatusValue(other.getStatusValue()); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (other.hasLastTransitionTime()) { + mergeLastTransitionTime(other.getLastTransitionTime()); + } + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getReason().isEmpty()) { + reason_ = other.reason_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + status_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + type_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + input.readMessage( + getLastTransitionTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + message_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + reason_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int status_ = 0; + + /** + * + * + *
+     * Required. Status of the condition.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition.Status status = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override + public int getStatusValue() { + return status_; + } + + /** + * + * + *
+     * Required. Status of the condition.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition.Status status = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for status to set. + * @return This builder for chaining. + */ + public Builder setStatusValue(int value) { + status_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Status of the condition.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition.Status status = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The status. + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition.Status getStatus() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition.Status result = + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition.Status.forNumber( + status_); + return result == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition.Status.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Required. Status of the condition.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition.Status status = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The status to set. + * @return This builder for chaining. + */ + public Builder setStatus( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition.Status value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + status_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Status of the condition.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition.Status status = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearStatus() { + bitField0_ = (bitField0_ & ~0x00000001); + status_ = 0; + onChanged(); + return this; + } + + private int type_ = 0; + + /** + * + * + *
+     * Required. Type of the condition.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + + /** + * + * + *
+     * Required. Type of the condition.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. + */ + public Builder setTypeValue(int value) { + type_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Type of the condition.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition.Type getType() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition.Type result = + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition.Type.forNumber(type_); + return result == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition.Type.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Required. Type of the condition.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition.Type value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + type_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Type of the condition.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000002); + type_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp lastTransitionTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + lastTransitionTimeBuilder_; + + /** + * + * + *
+     * Required. Last time the condition transited from one status to another.
+     * 
+ * + * + * .google.protobuf.Timestamp last_transition_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the lastTransitionTime field is set. + */ + public boolean hasLastTransitionTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Required. Last time the condition transited from one status to another.
+     * 
+ * + * + * .google.protobuf.Timestamp last_transition_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The lastTransitionTime. + */ + public com.google.protobuf.Timestamp getLastTransitionTime() { + if (lastTransitionTimeBuilder_ == null) { + return lastTransitionTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastTransitionTime_; + } else { + return lastTransitionTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. Last time the condition transited from one status to another.
+     * 
+ * + * + * .google.protobuf.Timestamp last_transition_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setLastTransitionTime(com.google.protobuf.Timestamp value) { + if (lastTransitionTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + lastTransitionTime_ = value; + } else { + lastTransitionTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Last time the condition transited from one status to another.
+     * 
+ * + * + * .google.protobuf.Timestamp last_transition_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setLastTransitionTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (lastTransitionTimeBuilder_ == null) { + lastTransitionTime_ = builderForValue.build(); + } else { + lastTransitionTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Last time the condition transited from one status to another.
+     * 
+ * + * + * .google.protobuf.Timestamp last_transition_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeLastTransitionTime(com.google.protobuf.Timestamp value) { + if (lastTransitionTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && lastTransitionTime_ != null + && lastTransitionTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getLastTransitionTimeBuilder().mergeFrom(value); + } else { + lastTransitionTime_ = value; + } + } else { + lastTransitionTimeBuilder_.mergeFrom(value); + } + if (lastTransitionTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. Last time the condition transited from one status to another.
+     * 
+ * + * + * .google.protobuf.Timestamp last_transition_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearLastTransitionTime() { + bitField0_ = (bitField0_ & ~0x00000004); + lastTransitionTime_ = null; + if (lastTransitionTimeBuilder_ != null) { + lastTransitionTimeBuilder_.dispose(); + lastTransitionTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Last time the condition transited from one status to another.
+     * 
+ * + * + * .google.protobuf.Timestamp last_transition_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.Timestamp.Builder getLastTransitionTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getLastTransitionTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. Last time the condition transited from one status to another.
+     * 
+ * + * + * .google.protobuf.Timestamp last_transition_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.TimestampOrBuilder getLastTransitionTimeOrBuilder() { + if (lastTransitionTimeBuilder_ != null) { + return lastTransitionTimeBuilder_.getMessageOrBuilder(); + } else { + return lastTransitionTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastTransitionTime_; + } + } + + /** + * + * + *
+     * Required. Last time the condition transited from one status to another.
+     * 
+ * + * + * .google.protobuf.Timestamp last_transition_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getLastTransitionTimeFieldBuilder() { + if (lastTransitionTimeBuilder_ == null) { + lastTransitionTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getLastTransitionTime(), getParentForChildren(), isClean()); + lastTransitionTime_ = null; + } + return lastTransitionTimeBuilder_; + } + + private java.lang.Object message_ = ""; + + /** + * + * + *
+     * Required. Human readable message indicating details about the last
+     * transition.
+     * 
+ * + * string message = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The message. + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. Human readable message indicating details about the last
+     * transition.
+     * 
+ * + * string message = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for message. + */ + public com.google.protobuf.ByteString getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. Human readable message indicating details about the last
+     * transition.
+     * 
+ * + * string message = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The message to set. + * @return This builder for chaining. + */ + public Builder setMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + message_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Human readable message indicating details about the last
+     * transition.
+     * 
+ * + * string message = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearMessage() { + message_ = getDefaultInstance().getMessage(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Human readable message indicating details about the last
+     * transition.
+     * 
+ * + * string message = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for message to set. + * @return This builder for chaining. + */ + public Builder setMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + message_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object reason_ = ""; + + /** + * + * + *
+     * Required. Brief reason for the condition's last transition.
+     * 
+ * + * string reason = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The reason. + */ + public java.lang.String getReason() { + java.lang.Object ref = reason_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + reason_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. Brief reason for the condition's last transition.
+     * 
+ * + * string reason = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for reason. + */ + public com.google.protobuf.ByteString getReasonBytes() { + java.lang.Object ref = reason_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + reason_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. Brief reason for the condition's last transition.
+     * 
+ * + * string reason = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The reason to set. + * @return This builder for chaining. + */ + public Builder setReason(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + reason_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Brief reason for the condition's last transition.
+     * 
+ * + * string reason = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearReason() { + reason_ = getDefaultInstance().getReason(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Brief reason for the condition's last transition.
+     * 
+ * + * string reason = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for reason to set. + * @return This builder for chaining. + */ + public Builder setReasonBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + reason_ = value; + bitField0_ |= 0x00000010; + 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.saasplatform.saasservicemgmt.v1beta1.UnitCondition) + } + + // @@protoc_insertion_point(class_scope:google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition) + private static final com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition(); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UnitCondition parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.saasplatform.saasservicemgmt.v1beta1.UnitCondition + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UnitConditionOrBuilder.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UnitConditionOrBuilder.java new file mode 100644 index 000000000000..43f886359624 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UnitConditionOrBuilder.java @@ -0,0 +1,183 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/common.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +public interface UnitConditionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Status of the condition.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition.Status status = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for status. + */ + int getStatusValue(); + + /** + * + * + *
+   * Required. Status of the condition.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition.Status status = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The status. + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition.Status getStatus(); + + /** + * + * + *
+   * Required. Type of the condition.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + + /** + * + * + *
+   * Required. Type of the condition.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The type. + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition.Type getType(); + + /** + * + * + *
+   * Required. Last time the condition transited from one status to another.
+   * 
+ * + * + * .google.protobuf.Timestamp last_transition_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the lastTransitionTime field is set. + */ + boolean hasLastTransitionTime(); + + /** + * + * + *
+   * Required. Last time the condition transited from one status to another.
+   * 
+ * + * + * .google.protobuf.Timestamp last_transition_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The lastTransitionTime. + */ + com.google.protobuf.Timestamp getLastTransitionTime(); + + /** + * + * + *
+   * Required. Last time the condition transited from one status to another.
+   * 
+ * + * + * .google.protobuf.Timestamp last_transition_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.TimestampOrBuilder getLastTransitionTimeOrBuilder(); + + /** + * + * + *
+   * Required. Human readable message indicating details about the last
+   * transition.
+   * 
+ * + * string message = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The message. + */ + java.lang.String getMessage(); + + /** + * + * + *
+   * Required. Human readable message indicating details about the last
+   * transition.
+   * 
+ * + * string message = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for message. + */ + com.google.protobuf.ByteString getMessageBytes(); + + /** + * + * + *
+   * Required. Brief reason for the condition's last transition.
+   * 
+ * + * string reason = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The reason. + */ + java.lang.String getReason(); + + /** + * + * + *
+   * Required. Brief reason for the condition's last transition.
+   * 
+ * + * string reason = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for reason. + */ + com.google.protobuf.ByteString getReasonBytes(); +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UnitDependency.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UnitDependency.java new file mode 100644 index 000000000000..6f2b0ef408fe --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UnitDependency.java @@ -0,0 +1,849 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_resources.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +/** + * + * + *
+ * Set of dependencies for this unit. Maximum 10.
+ * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency} + */ +public final class UnitDependency extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency) + UnitDependencyOrBuilder { + private static final long serialVersionUID = 0L; + + // Use UnitDependency.newBuilder() to construct. + private UnitDependency(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UnitDependency() { + alias_ = ""; + unit_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UnitDependency(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UnitDependency_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UnitDependency_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency.Builder.class); + } + + public static final int ALIAS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object alias_ = ""; + + /** + * + * + *
+   * Output only. Alias for the name of the dependency.
+   * 
+ * + * string alias = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The alias. + */ + @java.lang.Override + public java.lang.String getAlias() { + java.lang.Object ref = alias_; + 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(); + alias_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. Alias for the name of the dependency.
+   * 
+ * + * string alias = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for alias. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAliasBytes() { + java.lang.Object ref = alias_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + alias_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UNIT_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object unit_ = ""; + + /** + * + * + *
+   * Output only. A reference to the Unit object.
+   * 
+ * + * + * string unit = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The unit. + */ + @java.lang.Override + public java.lang.String getUnit() { + java.lang.Object ref = unit_; + 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(); + unit_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. A reference to the Unit object.
+   * 
+ * + * + * string unit = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for unit. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUnitBytes() { + java.lang.Object ref = unit_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + unit_ = 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(alias_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, alias_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(unit_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, unit_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(alias_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, alias_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(unit_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, unit_); + } + size += getUnknownFields().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.saasplatform.saasservicemgmt.v1beta1.UnitDependency)) { + return super.equals(obj); + } + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency other = + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency) obj; + + if (!getAlias().equals(other.getAlias())) return false; + if (!getUnit().equals(other.getUnit())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + ALIAS_FIELD_NUMBER; + hash = (53 * hash) + getAlias().hashCode(); + hash = (37 * hash) + UNIT_FIELD_NUMBER; + hash = (53 * hash) + getUnit().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency 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.saasplatform.saasservicemgmt.v1beta1.UnitDependency parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency 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.saasplatform.saasservicemgmt.v1beta1.UnitDependency parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency 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.saasplatform.saasservicemgmt.v1beta1.UnitDependency + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency + 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.saasplatform.saasservicemgmt.v1beta1.UnitDependency parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency 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.saasplatform.saasservicemgmt.v1beta1.UnitDependency 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; + } + + /** + * + * + *
+   * Set of dependencies for this unit. Maximum 10.
+   * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency) + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependencyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UnitDependency_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UnitDependency_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency.Builder.class); + } + + // Construct using + // com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + alias_ = ""; + unit_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UnitDependency_descriptor; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency + getDefaultInstanceForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency build() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency buildPartial() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency result = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.alias_ = alias_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.unit_ = unit_; + } + } + + @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.saasplatform.saasservicemgmt.v1beta1.UnitDependency) { + return mergeFrom( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency other) { + if (other + == com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency + .getDefaultInstance()) return this; + if (!other.getAlias().isEmpty()) { + alias_ = other.alias_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getUnit().isEmpty()) { + unit_ = other.unit_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + alias_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + unit_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object alias_ = ""; + + /** + * + * + *
+     * Output only. Alias for the name of the dependency.
+     * 
+ * + * string alias = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The alias. + */ + public java.lang.String getAlias() { + java.lang.Object ref = alias_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + alias_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. Alias for the name of the dependency.
+     * 
+ * + * string alias = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for alias. + */ + public com.google.protobuf.ByteString getAliasBytes() { + java.lang.Object ref = alias_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + alias_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. Alias for the name of the dependency.
+     * 
+ * + * string alias = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The alias to set. + * @return This builder for chaining. + */ + public Builder setAlias(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + alias_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Alias for the name of the dependency.
+     * 
+ * + * string alias = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearAlias() { + alias_ = getDefaultInstance().getAlias(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Alias for the name of the dependency.
+     * 
+ * + * string alias = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for alias to set. + * @return This builder for chaining. + */ + public Builder setAliasBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + alias_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object unit_ = ""; + + /** + * + * + *
+     * Output only. A reference to the Unit object.
+     * 
+ * + * + * string unit = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The unit. + */ + public java.lang.String getUnit() { + java.lang.Object ref = unit_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + unit_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. A reference to the Unit object.
+     * 
+ * + * + * string unit = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for unit. + */ + public com.google.protobuf.ByteString getUnitBytes() { + java.lang.Object ref = unit_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + unit_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. A reference to the Unit object.
+     * 
+ * + * + * string unit = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The unit to set. + * @return This builder for chaining. + */ + public Builder setUnit(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + unit_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. A reference to the Unit object.
+     * 
+ * + * + * string unit = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearUnit() { + unit_ = getDefaultInstance().getUnit(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. A reference to the Unit object.
+     * 
+ * + * + * string unit = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for unit to set. + * @return This builder for chaining. + */ + public Builder setUnitBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + unit_ = value; + bitField0_ |= 0x00000002; + 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.saasplatform.saasservicemgmt.v1beta1.UnitDependency) + } + + // @@protoc_insertion_point(class_scope:google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency) + private static final com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency(); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UnitDependency parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.saasplatform.saasservicemgmt.v1beta1.UnitDependency + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UnitDependencyOrBuilder.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UnitDependencyOrBuilder.java new file mode 100644 index 000000000000..225c359133d0 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UnitDependencyOrBuilder.java @@ -0,0 +1,82 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_resources.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +public interface UnitDependencyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Alias for the name of the dependency.
+   * 
+ * + * string alias = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The alias. + */ + java.lang.String getAlias(); + + /** + * + * + *
+   * Output only. Alias for the name of the dependency.
+   * 
+ * + * string alias = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for alias. + */ + com.google.protobuf.ByteString getAliasBytes(); + + /** + * + * + *
+   * Output only. A reference to the Unit object.
+   * 
+ * + * + * string unit = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The unit. + */ + java.lang.String getUnit(); + + /** + * + * + *
+   * Output only. A reference to the Unit object.
+   * 
+ * + * + * string unit = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for unit. + */ + com.google.protobuf.ByteString getUnitBytes(); +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UnitKind.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UnitKind.java new file mode 100644 index 000000000000..b01e730e5a5a --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UnitKind.java @@ -0,0 +1,4852 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_resources.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +/** + * + * + *
+ * Definition of a Unit. Units belonging to the same UnitKind are managed
+ * together; for example they follow the same release model (blueprints,
+ * versions etc.) and are typically rolled out together.
+ * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind} + */ +public final class UnitKind extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind) + UnitKindOrBuilder { + private static final long serialVersionUID = 0L; + + // Use UnitKind.newBuilder() to construct. + private UnitKind(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UnitKind() { + name_ = ""; + defaultRelease_ = ""; + dependencies_ = java.util.Collections.emptyList(); + inputVariableMappings_ = java.util.Collections.emptyList(); + outputVariableMappings_ = java.util.Collections.emptyList(); + saas_ = ""; + uid_ = ""; + etag_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UnitKind(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UnitKind_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 10401: + return internalGetLabels(); + case 10402: + return internalGetAnnotations(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UnitKind_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Identifier. The resource name (full URI of the resource) following the
+   * standard naming scheme:
+   *
+   *   "projects/{project}/locations/{location}/unitKinds/{unitKind}"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + @java.lang.Override + 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; + } + } + + /** + * + * + *
+   * Identifier. The resource name (full URI of the resource) following the
+   * standard naming scheme:
+   *
+   *   "projects/{project}/locations/{location}/unitKinds/{unitKind}"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + @java.lang.Override + 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 DEFAULT_RELEASE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object defaultRelease_ = ""; + + /** + * + * + *
+   * Optional. A reference to the Release object to use as default for creating
+   * new units of this UnitKind (optional).
+   *
+   * If not specified, a new unit must explicitly reference which release to use
+   * for its creation.
+   * 
+ * + * + * string default_release = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The defaultRelease. + */ + @java.lang.Override + public java.lang.String getDefaultRelease() { + java.lang.Object ref = defaultRelease_; + 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(); + defaultRelease_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. A reference to the Release object to use as default for creating
+   * new units of this UnitKind (optional).
+   *
+   * If not specified, a new unit must explicitly reference which release to use
+   * for its creation.
+   * 
+ * + * + * string default_release = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for defaultRelease. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDefaultReleaseBytes() { + java.lang.Object ref = defaultRelease_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + defaultRelease_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEPENDENCIES_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private java.util.List + dependencies_; + + /** + * + * + *
+   * Optional. Immutable. List of other unit kinds that this release will depend
+   * on. Dependencies will be automatically provisioned if not found.
+   * Maximum 10.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Dependency dependencies = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + @java.lang.Override + public java.util.List + getDependenciesList() { + return dependencies_; + } + + /** + * + * + *
+   * Optional. Immutable. List of other unit kinds that this release will depend
+   * on. Dependencies will be automatically provisioned if not found.
+   * Maximum 10.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Dependency dependencies = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DependencyOrBuilder> + getDependenciesOrBuilderList() { + return dependencies_; + } + + /** + * + * + *
+   * Optional. Immutable. List of other unit kinds that this release will depend
+   * on. Dependencies will be automatically provisioned if not found.
+   * Maximum 10.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Dependency dependencies = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + @java.lang.Override + public int getDependenciesCount() { + return dependencies_.size(); + } + + /** + * + * + *
+   * Optional. Immutable. List of other unit kinds that this release will depend
+   * on. Dependencies will be automatically provisioned if not found.
+   * Maximum 10.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Dependency dependencies = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Dependency getDependencies( + int index) { + return dependencies_.get(index); + } + + /** + * + * + *
+   * Optional. Immutable. List of other unit kinds that this release will depend
+   * on. Dependencies will be automatically provisioned if not found.
+   * Maximum 10.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Dependency dependencies = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DependencyOrBuilder + getDependenciesOrBuilder(int index) { + return dependencies_.get(index); + } + + public static final int INPUT_VARIABLE_MAPPINGS_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private java.util.List + inputVariableMappings_; + + /** + * + * + *
+   * Optional. List of inputVariables for this release that will either be
+   * retrieved from a dependency’s outputVariables, or will be passed on to a
+   * dependency’s inputVariables. Maximum 100.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping input_variable_mappings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getInputVariableMappingsList() { + return inputVariableMappings_; + } + + /** + * + * + *
+   * Optional. List of inputVariables for this release that will either be
+   * retrieved from a dependency’s outputVariables, or will be passed on to a
+   * dependency’s inputVariables. Maximum 100.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping input_variable_mappings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMappingOrBuilder> + getInputVariableMappingsOrBuilderList() { + return inputVariableMappings_; + } + + /** + * + * + *
+   * Optional. List of inputVariables for this release that will either be
+   * retrieved from a dependency’s outputVariables, or will be passed on to a
+   * dependency’s inputVariables. Maximum 100.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping input_variable_mappings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getInputVariableMappingsCount() { + return inputVariableMappings_.size(); + } + + /** + * + * + *
+   * Optional. List of inputVariables for this release that will either be
+   * retrieved from a dependency’s outputVariables, or will be passed on to a
+   * dependency’s inputVariables. Maximum 100.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping input_variable_mappings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping + getInputVariableMappings(int index) { + return inputVariableMappings_.get(index); + } + + /** + * + * + *
+   * Optional. List of inputVariables for this release that will either be
+   * retrieved from a dependency’s outputVariables, or will be passed on to a
+   * dependency’s inputVariables. Maximum 100.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping input_variable_mappings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMappingOrBuilder + getInputVariableMappingsOrBuilder(int index) { + return inputVariableMappings_.get(index); + } + + public static final int OUTPUT_VARIABLE_MAPPINGS_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private java.util.List + outputVariableMappings_; + + /** + * + * + *
+   * Optional. List of outputVariables for this unit kind will be passed to this
+   * unit's outputVariables. Maximum 100.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping output_variable_mappings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getOutputVariableMappingsList() { + return outputVariableMappings_; + } + + /** + * + * + *
+   * Optional. List of outputVariables for this unit kind will be passed to this
+   * unit's outputVariables. Maximum 100.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping output_variable_mappings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMappingOrBuilder> + getOutputVariableMappingsOrBuilderList() { + return outputVariableMappings_; + } + + /** + * + * + *
+   * Optional. List of outputVariables for this unit kind will be passed to this
+   * unit's outputVariables. Maximum 100.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping output_variable_mappings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getOutputVariableMappingsCount() { + return outputVariableMappings_.size(); + } + + /** + * + * + *
+   * Optional. List of outputVariables for this unit kind will be passed to this
+   * unit's outputVariables. Maximum 100.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping output_variable_mappings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping + getOutputVariableMappings(int index) { + return outputVariableMappings_.get(index); + } + + /** + * + * + *
+   * Optional. List of outputVariables for this unit kind will be passed to this
+   * unit's outputVariables. Maximum 100.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping output_variable_mappings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMappingOrBuilder + getOutputVariableMappingsOrBuilder(int index) { + return outputVariableMappings_.get(index); + } + + public static final int SAAS_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private volatile java.lang.Object saas_ = ""; + + /** + * + * + *
+   * Required. Immutable. A reference to the Saas that defines the product
+   * (managed service) that the producer wants to manage with SaaS Runtime. Part
+   * of the SaaS Runtime common data model. Immutable once set.
+   * 
+ * + * + * string saas = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The saas. + */ + @java.lang.Override + public java.lang.String getSaas() { + java.lang.Object ref = saas_; + 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(); + saas_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. Immutable. A reference to the Saas that defines the product
+   * (managed service) that the producer wants to manage with SaaS Runtime. Part
+   * of the SaaS Runtime common data model. Immutable once set.
+   * 
+ * + * + * string saas = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for saas. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSaasBytes() { + java.lang.Object ref = saas_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + saas_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LABELS_FIELD_NUMBER = 10401; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UnitKind_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + 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(); + } + + /** + * + * + *
+   * Optional. The labels on the resource, which can be used for categorization.
+   * similar to Kubernetes resource labels.
+   * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** + * + * + *
+   * Optional. The labels on the resource, which can be used for categorization.
+   * similar to Kubernetes resource labels.
+   * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
+   * Optional. The labels on the resource, which can be used for categorization.
+   * similar to Kubernetes resource labels.
+   * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+   * Optional. The labels on the resource, which can be used for categorization.
+   * similar to Kubernetes resource labels.
+   * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int ANNOTATIONS_FIELD_NUMBER = 10402; + + private static final class AnnotationsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UnitKind_AnnotationsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField annotations_; + + private com.google.protobuf.MapField + internalGetAnnotations() { + if (annotations_ == null) { + return com.google.protobuf.MapField.emptyMapField(AnnotationsDefaultEntryHolder.defaultEntry); + } + return annotations_; + } + + public int getAnnotationsCount() { + return internalGetAnnotations().getMap().size(); + } + + /** + * + * + *
+   * Optional. Annotations is an unstructured key-value map stored with a
+   * resource that may be set by external tools to store and retrieve arbitrary
+   * metadata. They are not queryable and should be preserved when modifying
+   * objects.
+   *
+   * More info: https://kubernetes.io/docs/user-guide/annotations
+   * 
+ * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetAnnotations().getMap().containsKey(key); + } + + /** Use {@link #getAnnotationsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getAnnotations() { + return getAnnotationsMap(); + } + + /** + * + * + *
+   * Optional. Annotations is an unstructured key-value map stored with a
+   * resource that may be set by external tools to store and retrieve arbitrary
+   * metadata. They are not queryable and should be preserved when modifying
+   * objects.
+   *
+   * More info: https://kubernetes.io/docs/user-guide/annotations
+   * 
+ * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getAnnotationsMap() { + return internalGetAnnotations().getMap(); + } + + /** + * + * + *
+   * Optional. Annotations is an unstructured key-value map stored with a
+   * resource that may be set by external tools to store and retrieve arbitrary
+   * metadata. They are not queryable and should be preserved when modifying
+   * objects.
+   *
+   * More info: https://kubernetes.io/docs/user-guide/annotations
+   * 
+ * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getAnnotationsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+   * Optional. Annotations is an unstructured key-value map stored with a
+   * resource that may be set by external tools to store and retrieve arbitrary
+   * metadata. They are not queryable and should be preserved when modifying
+   * objects.
+   *
+   * More info: https://kubernetes.io/docs/user-guide/annotations
+   * 
+ * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int UID_FIELD_NUMBER = 10201; + + @SuppressWarnings("serial") + private volatile java.lang.Object uid_ = ""; + + /** + * + * + *
+   * Output only. The unique identifier of the resource. UID is unique in the
+   * time and space for this resource within the scope of the service. It is
+   * typically generated by the server on successful creation of a resource
+   * and must not be changed. UID is used to uniquely identify resources
+   * with resource name reuses. This should be a UUID4.
+   * 
+ * + * + * string uid = 10201 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The uid. + */ + @java.lang.Override + public java.lang.String getUid() { + java.lang.Object ref = uid_; + 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(); + uid_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The unique identifier of the resource. UID is unique in the
+   * time and space for this resource within the scope of the service. It is
+   * typically generated by the server on successful creation of a resource
+   * and must not be changed. UID is used to uniquely identify resources
+   * with resource name reuses. This should be a UUID4.
+   * 
+ * + * + * string uid = 10201 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The bytes for uid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ETAG_FIELD_NUMBER = 10202; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + + /** + * + * + *
+   * Output only. An opaque value that uniquely identifies a version or
+   * generation of a resource. It can be used to confirm that the client
+   * and server agree on the ordering of a resource being written.
+   * 
+ * + * string etag = 10202 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The etag. + */ + @java.lang.Override + 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. An opaque value that uniquely identifies a version or
+   * generation of a resource. It can be used to confirm that the client
+   * and server agree on the ordering of a resource being written.
+   * 
+ * + * string etag = 10202 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for etag. + */ + @java.lang.Override + 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 CREATE_TIME_FIELD_NUMBER = 10303; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
+   * Output only. The timestamp when the resource was created.
+   * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. The timestamp when the resource was created.
+   * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
+   * Output only. The timestamp when the resource was created.
+   * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 10304; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
+   * Output only. The timestamp when the resource was last updated. Any
+   * change to the resource made by users must refresh this value.
+   * Changes to a resource made by the service should refresh this value.
+   * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Output only. The timestamp when the resource was last updated. Any
+   * change to the resource made by users must refresh this value.
+   * Changes to a resource made by the service should refresh this value.
+   * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
+   * Output only. The timestamp when the resource was last updated. Any
+   * change to the resource made by users must refresh this value.
+   * Changes to a resource made by the service should refresh this value.
+   * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultRelease_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, defaultRelease_); + } + for (int i = 0; i < dependencies_.size(); i++) { + output.writeMessage(4, dependencies_.get(i)); + } + for (int i = 0; i < inputVariableMappings_.size(); i++) { + output.writeMessage(5, inputVariableMappings_.get(i)); + } + for (int i = 0; i < outputVariableMappings_.size(); i++) { + output.writeMessage(6, outputVariableMappings_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(saas_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, saas_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10201, uid_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10202, etag_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(10303, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(10304, getUpdateTime()); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 10401); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetAnnotations(), AnnotationsDefaultEntryHolder.defaultEntry, 10402); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultRelease_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, defaultRelease_); + } + for (int i = 0; i < dependencies_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, dependencies_.get(i)); + } + for (int i = 0; i < inputVariableMappings_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, inputVariableMappings_.get(i)); + } + for (int i = 0; i < outputVariableMappings_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, outputVariableMappings_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(saas_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, saas_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10201, uid_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10202, etag_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10303, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10304, 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(10401, labels__); + } + for (java.util.Map.Entry entry : + internalGetAnnotations().getMap().entrySet()) { + com.google.protobuf.MapEntry annotations__ = + AnnotationsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10402, annotations__); + } + size += getUnknownFields().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.saasplatform.saasservicemgmt.v1beta1.UnitKind)) { + return super.equals(obj); + } + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind other = + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDefaultRelease().equals(other.getDefaultRelease())) return false; + if (!getDependenciesList().equals(other.getDependenciesList())) return false; + if (!getInputVariableMappingsList().equals(other.getInputVariableMappingsList())) return false; + if (!getOutputVariableMappingsList().equals(other.getOutputVariableMappingsList())) + return false; + if (!getSaas().equals(other.getSaas())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!internalGetAnnotations().equals(other.internalGetAnnotations())) return false; + if (!getUid().equals(other.getUid())) return false; + if (!getEtag().equals(other.getEtag())) 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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + DEFAULT_RELEASE_FIELD_NUMBER; + hash = (53 * hash) + getDefaultRelease().hashCode(); + if (getDependenciesCount() > 0) { + hash = (37 * hash) + DEPENDENCIES_FIELD_NUMBER; + hash = (53 * hash) + getDependenciesList().hashCode(); + } + if (getInputVariableMappingsCount() > 0) { + hash = (37 * hash) + INPUT_VARIABLE_MAPPINGS_FIELD_NUMBER; + hash = (53 * hash) + getInputVariableMappingsList().hashCode(); + } + if (getOutputVariableMappingsCount() > 0) { + hash = (37 * hash) + OUTPUT_VARIABLE_MAPPINGS_FIELD_NUMBER; + hash = (53 * hash) + getOutputVariableMappingsList().hashCode(); + } + hash = (37 * hash) + SAAS_FIELD_NUMBER; + hash = (53 * hash) + getSaas().hashCode(); + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + if (!internalGetAnnotations().getMap().isEmpty()) { + hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; + hash = (53 * hash) + internalGetAnnotations().hashCode(); + } + hash = (37 * hash) + UID_FIELD_NUMBER; + hash = (53 * hash) + getUid().hashCode(); + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind 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.saasplatform.saasservicemgmt.v1beta1.UnitKind parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind 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.saasplatform.saasservicemgmt.v1beta1.UnitKind parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind 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.saasplatform.saasservicemgmt.v1beta1.UnitKind parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind 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.saasplatform.saasservicemgmt.v1beta1.UnitKind parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind 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.saasplatform.saasservicemgmt.v1beta1.UnitKind 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; + } + + /** + * + * + *
+   * Definition of a Unit. Units belonging to the same UnitKind are managed
+   * together; for example they follow the same release model (blueprints,
+   * versions etc.) and are typically rolled out together.
+   * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind) + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKindOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UnitKind_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 10401: + return internalGetLabels(); + case 10402: + return internalGetAnnotations(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 10401: + return internalGetMutableLabels(); + case 10402: + return internalGetMutableAnnotations(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UnitKind_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind.Builder.class); + } + + // Construct using com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getDependenciesFieldBuilder(); + getInputVariableMappingsFieldBuilder(); + getOutputVariableMappingsFieldBuilder(); + getCreateTimeFieldBuilder(); + getUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + defaultRelease_ = ""; + if (dependenciesBuilder_ == null) { + dependencies_ = java.util.Collections.emptyList(); + } else { + dependencies_ = null; + dependenciesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + if (inputVariableMappingsBuilder_ == null) { + inputVariableMappings_ = java.util.Collections.emptyList(); + } else { + inputVariableMappings_ = null; + inputVariableMappingsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + if (outputVariableMappingsBuilder_ == null) { + outputVariableMappings_ = java.util.Collections.emptyList(); + } else { + outputVariableMappings_ = null; + outputVariableMappingsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + saas_ = ""; + internalGetMutableLabels().clear(); + internalGetMutableAnnotations().clear(); + uid_ = ""; + etag_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UnitKind_descriptor; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind + getDefaultInstanceForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind build() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind buildPartial() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind result = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind result) { + if (dependenciesBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + dependencies_ = java.util.Collections.unmodifiableList(dependencies_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.dependencies_ = dependencies_; + } else { + result.dependencies_ = dependenciesBuilder_.build(); + } + if (inputVariableMappingsBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + inputVariableMappings_ = java.util.Collections.unmodifiableList(inputVariableMappings_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.inputVariableMappings_ = inputVariableMappings_; + } else { + result.inputVariableMappings_ = inputVariableMappingsBuilder_.build(); + } + if (outputVariableMappingsBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + outputVariableMappings_ = java.util.Collections.unmodifiableList(outputVariableMappings_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.outputVariableMappings_ = outputVariableMappings_; + } else { + result.outputVariableMappings_ = outputVariableMappingsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.defaultRelease_ = defaultRelease_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.saas_ = saas_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.annotations_ = internalGetAnnotations(); + result.annotations_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.uid_ = uid_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.etag_ = etag_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000400) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @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.saasplatform.saasservicemgmt.v1beta1.UnitKind) { + return mergeFrom((com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind other) { + if (other + == com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDefaultRelease().isEmpty()) { + defaultRelease_ = other.defaultRelease_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (dependenciesBuilder_ == null) { + if (!other.dependencies_.isEmpty()) { + if (dependencies_.isEmpty()) { + dependencies_ = other.dependencies_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureDependenciesIsMutable(); + dependencies_.addAll(other.dependencies_); + } + onChanged(); + } + } else { + if (!other.dependencies_.isEmpty()) { + if (dependenciesBuilder_.isEmpty()) { + dependenciesBuilder_.dispose(); + dependenciesBuilder_ = null; + dependencies_ = other.dependencies_; + bitField0_ = (bitField0_ & ~0x00000004); + dependenciesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDependenciesFieldBuilder() + : null; + } else { + dependenciesBuilder_.addAllMessages(other.dependencies_); + } + } + } + if (inputVariableMappingsBuilder_ == null) { + if (!other.inputVariableMappings_.isEmpty()) { + if (inputVariableMappings_.isEmpty()) { + inputVariableMappings_ = other.inputVariableMappings_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureInputVariableMappingsIsMutable(); + inputVariableMappings_.addAll(other.inputVariableMappings_); + } + onChanged(); + } + } else { + if (!other.inputVariableMappings_.isEmpty()) { + if (inputVariableMappingsBuilder_.isEmpty()) { + inputVariableMappingsBuilder_.dispose(); + inputVariableMappingsBuilder_ = null; + inputVariableMappings_ = other.inputVariableMappings_; + bitField0_ = (bitField0_ & ~0x00000008); + inputVariableMappingsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getInputVariableMappingsFieldBuilder() + : null; + } else { + inputVariableMappingsBuilder_.addAllMessages(other.inputVariableMappings_); + } + } + } + if (outputVariableMappingsBuilder_ == null) { + if (!other.outputVariableMappings_.isEmpty()) { + if (outputVariableMappings_.isEmpty()) { + outputVariableMappings_ = other.outputVariableMappings_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureOutputVariableMappingsIsMutable(); + outputVariableMappings_.addAll(other.outputVariableMappings_); + } + onChanged(); + } + } else { + if (!other.outputVariableMappings_.isEmpty()) { + if (outputVariableMappingsBuilder_.isEmpty()) { + outputVariableMappingsBuilder_.dispose(); + outputVariableMappingsBuilder_ = null; + outputVariableMappings_ = other.outputVariableMappings_; + bitField0_ = (bitField0_ & ~0x00000010); + outputVariableMappingsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getOutputVariableMappingsFieldBuilder() + : null; + } else { + outputVariableMappingsBuilder_.addAllMessages(other.outputVariableMappings_); + } + } + } + if (!other.getSaas().isEmpty()) { + saas_ = other.saas_; + bitField0_ |= 0x00000020; + onChanged(); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000040; + internalGetMutableAnnotations().mergeFrom(other.internalGetAnnotations()); + bitField0_ |= 0x00000080; + if (!other.getUid().isEmpty()) { + uid_ = other.uid_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + bitField0_ |= 0x00000200; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + defaultRelease_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 34: + { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Dependency m = + input.readMessage( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Dependency.parser(), + extensionRegistry); + if (dependenciesBuilder_ == null) { + ensureDependenciesIsMutable(); + dependencies_.add(m); + } else { + dependenciesBuilder_.addMessage(m); + } + break; + } // case 34 + case 42: + { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping m = + input.readMessage( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping + .parser(), + extensionRegistry); + if (inputVariableMappingsBuilder_ == null) { + ensureInputVariableMappingsIsMutable(); + inputVariableMappings_.add(m); + } else { + inputVariableMappingsBuilder_.addMessage(m); + } + break; + } // case 42 + case 50: + { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping m = + input.readMessage( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping + .parser(), + extensionRegistry); + if (outputVariableMappingsBuilder_ == null) { + ensureOutputVariableMappingsIsMutable(); + outputVariableMappings_.add(m); + } else { + outputVariableMappingsBuilder_.addMessage(m); + } + break; + } // case 50 + case 66: + { + saas_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 66 + case 81610: + { + uid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 81610 + case 81618: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 81618 + case 82426: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000400; + break; + } // case 82426 + case 82434: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000800; + break; + } // case 82434 + case 83210: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000040; + break; + } // case 83210 + case 83218: + { + com.google.protobuf.MapEntry annotations__ = + input.readMessage( + AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableAnnotations() + .getMutableMap() + .put(annotations__.getKey(), annotations__.getValue()); + bitField0_ |= 0x00000080; + break; + } // case 83218 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Identifier. The resource name (full URI of the resource) following the
+     * standard naming scheme:
+     *
+     *   "projects/{project}/locations/{location}/unitKinds/{unitKind}"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + } + } + + /** + * + * + *
+     * Identifier. The resource name (full URI of the resource) following the
+     * standard naming scheme:
+     *
+     *   "projects/{project}/locations/{location}/unitKinds/{unitKind}"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + } + } + + /** + * + * + *
+     * Identifier. The resource name (full URI of the resource) following the
+     * standard naming scheme:
+     *
+     *   "projects/{project}/locations/{location}/unitKinds/{unitKind}"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Identifier. The resource name (full URI of the resource) following the
+     * standard naming scheme:
+     *
+     *   "projects/{project}/locations/{location}/unitKinds/{unitKind}"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Identifier. The resource name (full URI of the resource) following the
+     * standard naming scheme:
+     *
+     *   "projects/{project}/locations/{location}/unitKinds/{unitKind}"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object defaultRelease_ = ""; + + /** + * + * + *
+     * Optional. A reference to the Release object to use as default for creating
+     * new units of this UnitKind (optional).
+     *
+     * If not specified, a new unit must explicitly reference which release to use
+     * for its creation.
+     * 
+ * + * + * string default_release = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The defaultRelease. + */ + public java.lang.String getDefaultRelease() { + java.lang.Object ref = defaultRelease_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultRelease_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. A reference to the Release object to use as default for creating
+     * new units of this UnitKind (optional).
+     *
+     * If not specified, a new unit must explicitly reference which release to use
+     * for its creation.
+     * 
+ * + * + * string default_release = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for defaultRelease. + */ + public com.google.protobuf.ByteString getDefaultReleaseBytes() { + java.lang.Object ref = defaultRelease_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + defaultRelease_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. A reference to the Release object to use as default for creating
+     * new units of this UnitKind (optional).
+     *
+     * If not specified, a new unit must explicitly reference which release to use
+     * for its creation.
+     * 
+ * + * + * string default_release = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The defaultRelease to set. + * @return This builder for chaining. + */ + public Builder setDefaultRelease(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + defaultRelease_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A reference to the Release object to use as default for creating
+     * new units of this UnitKind (optional).
+     *
+     * If not specified, a new unit must explicitly reference which release to use
+     * for its creation.
+     * 
+ * + * + * string default_release = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearDefaultRelease() { + defaultRelease_ = getDefaultInstance().getDefaultRelease(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A reference to the Release object to use as default for creating
+     * new units of this UnitKind (optional).
+     *
+     * If not specified, a new unit must explicitly reference which release to use
+     * for its creation.
+     * 
+ * + * + * string default_release = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for defaultRelease to set. + * @return This builder for chaining. + */ + public Builder setDefaultReleaseBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + defaultRelease_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.util.List + dependencies_ = java.util.Collections.emptyList(); + + private void ensureDependenciesIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + dependencies_ = + new java.util.ArrayList< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Dependency>(dependencies_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Dependency, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Dependency.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DependencyOrBuilder> + dependenciesBuilder_; + + /** + * + * + *
+     * Optional. Immutable. List of other unit kinds that this release will depend
+     * on. Dependencies will be automatically provisioned if not found.
+     * Maximum 10.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Dependency dependencies = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public java.util.List + getDependenciesList() { + if (dependenciesBuilder_ == null) { + return java.util.Collections.unmodifiableList(dependencies_); + } else { + return dependenciesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. Immutable. List of other unit kinds that this release will depend
+     * on. Dependencies will be automatically provisioned if not found.
+     * Maximum 10.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Dependency dependencies = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public int getDependenciesCount() { + if (dependenciesBuilder_ == null) { + return dependencies_.size(); + } else { + return dependenciesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. Immutable. List of other unit kinds that this release will depend
+     * on. Dependencies will be automatically provisioned if not found.
+     * Maximum 10.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Dependency dependencies = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Dependency getDependencies( + int index) { + if (dependenciesBuilder_ == null) { + return dependencies_.get(index); + } else { + return dependenciesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. Immutable. List of other unit kinds that this release will depend
+     * on. Dependencies will be automatically provisioned if not found.
+     * Maximum 10.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Dependency dependencies = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder setDependencies( + int index, com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Dependency value) { + if (dependenciesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDependenciesIsMutable(); + dependencies_.set(index, value); + onChanged(); + } else { + dependenciesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Immutable. List of other unit kinds that this release will depend
+     * on. Dependencies will be automatically provisioned if not found.
+     * Maximum 10.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Dependency dependencies = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder setDependencies( + int index, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Dependency.Builder builderForValue) { + if (dependenciesBuilder_ == null) { + ensureDependenciesIsMutable(); + dependencies_.set(index, builderForValue.build()); + onChanged(); + } else { + dependenciesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Immutable. List of other unit kinds that this release will depend
+     * on. Dependencies will be automatically provisioned if not found.
+     * Maximum 10.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Dependency dependencies = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder addDependencies( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Dependency value) { + if (dependenciesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDependenciesIsMutable(); + dependencies_.add(value); + onChanged(); + } else { + dependenciesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. Immutable. List of other unit kinds that this release will depend
+     * on. Dependencies will be automatically provisioned if not found.
+     * Maximum 10.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Dependency dependencies = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder addDependencies( + int index, com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Dependency value) { + if (dependenciesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDependenciesIsMutable(); + dependencies_.add(index, value); + onChanged(); + } else { + dependenciesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Immutable. List of other unit kinds that this release will depend
+     * on. Dependencies will be automatically provisioned if not found.
+     * Maximum 10.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Dependency dependencies = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder addDependencies( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Dependency.Builder builderForValue) { + if (dependenciesBuilder_ == null) { + ensureDependenciesIsMutable(); + dependencies_.add(builderForValue.build()); + onChanged(); + } else { + dependenciesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Immutable. List of other unit kinds that this release will depend
+     * on. Dependencies will be automatically provisioned if not found.
+     * Maximum 10.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Dependency dependencies = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder addDependencies( + int index, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Dependency.Builder builderForValue) { + if (dependenciesBuilder_ == null) { + ensureDependenciesIsMutable(); + dependencies_.add(index, builderForValue.build()); + onChanged(); + } else { + dependenciesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Immutable. List of other unit kinds that this release will depend
+     * on. Dependencies will be automatically provisioned if not found.
+     * Maximum 10.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Dependency dependencies = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder addAllDependencies( + java.lang.Iterable< + ? extends com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Dependency> + values) { + if (dependenciesBuilder_ == null) { + ensureDependenciesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dependencies_); + onChanged(); + } else { + dependenciesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. Immutable. List of other unit kinds that this release will depend
+     * on. Dependencies will be automatically provisioned if not found.
+     * Maximum 10.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Dependency dependencies = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder clearDependencies() { + if (dependenciesBuilder_ == null) { + dependencies_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + dependenciesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. Immutable. List of other unit kinds that this release will depend
+     * on. Dependencies will be automatically provisioned if not found.
+     * Maximum 10.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Dependency dependencies = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder removeDependencies(int index) { + if (dependenciesBuilder_ == null) { + ensureDependenciesIsMutable(); + dependencies_.remove(index); + onChanged(); + } else { + dependenciesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. Immutable. List of other unit kinds that this release will depend
+     * on. Dependencies will be automatically provisioned if not found.
+     * Maximum 10.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Dependency dependencies = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Dependency.Builder + getDependenciesBuilder(int index) { + return getDependenciesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. Immutable. List of other unit kinds that this release will depend
+     * on. Dependencies will be automatically provisioned if not found.
+     * Maximum 10.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Dependency dependencies = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DependencyOrBuilder + getDependenciesOrBuilder(int index) { + if (dependenciesBuilder_ == null) { + return dependencies_.get(index); + } else { + return dependenciesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. Immutable. List of other unit kinds that this release will depend
+     * on. Dependencies will be automatically provisioned if not found.
+     * Maximum 10.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Dependency dependencies = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public java.util.List< + ? extends com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DependencyOrBuilder> + getDependenciesOrBuilderList() { + if (dependenciesBuilder_ != null) { + return dependenciesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(dependencies_); + } + } + + /** + * + * + *
+     * Optional. Immutable. List of other unit kinds that this release will depend
+     * on. Dependencies will be automatically provisioned if not found.
+     * Maximum 10.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Dependency dependencies = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Dependency.Builder + addDependenciesBuilder() { + return getDependenciesFieldBuilder() + .addBuilder( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Dependency + .getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Immutable. List of other unit kinds that this release will depend
+     * on. Dependencies will be automatically provisioned if not found.
+     * Maximum 10.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Dependency dependencies = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Dependency.Builder + addDependenciesBuilder(int index) { + return getDependenciesFieldBuilder() + .addBuilder( + index, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Dependency + .getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Immutable. List of other unit kinds that this release will depend
+     * on. Dependencies will be automatically provisioned if not found.
+     * Maximum 10.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Dependency dependencies = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public java.util.List + getDependenciesBuilderList() { + return getDependenciesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Dependency, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Dependency.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DependencyOrBuilder> + getDependenciesFieldBuilder() { + if (dependenciesBuilder_ == null) { + dependenciesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Dependency, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Dependency.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DependencyOrBuilder>( + dependencies_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + dependencies_ = null; + } + return dependenciesBuilder_; + } + + private java.util.List + inputVariableMappings_ = java.util.Collections.emptyList(); + + private void ensureInputVariableMappingsIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + inputVariableMappings_ = + new java.util.ArrayList< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping>( + inputVariableMappings_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMappingOrBuilder> + inputVariableMappingsBuilder_; + + /** + * + * + *
+     * Optional. List of inputVariables for this release that will either be
+     * retrieved from a dependency’s outputVariables, or will be passed on to a
+     * dependency’s inputVariables. Maximum 100.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping input_variable_mappings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getInputVariableMappingsList() { + if (inputVariableMappingsBuilder_ == null) { + return java.util.Collections.unmodifiableList(inputVariableMappings_); + } else { + return inputVariableMappingsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. List of inputVariables for this release that will either be
+     * retrieved from a dependency’s outputVariables, or will be passed on to a
+     * dependency’s inputVariables. Maximum 100.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping input_variable_mappings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getInputVariableMappingsCount() { + if (inputVariableMappingsBuilder_ == null) { + return inputVariableMappings_.size(); + } else { + return inputVariableMappingsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. List of inputVariables for this release that will either be
+     * retrieved from a dependency’s outputVariables, or will be passed on to a
+     * dependency’s inputVariables. Maximum 100.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping input_variable_mappings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping + getInputVariableMappings(int index) { + if (inputVariableMappingsBuilder_ == null) { + return inputVariableMappings_.get(index); + } else { + return inputVariableMappingsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. List of inputVariables for this release that will either be
+     * retrieved from a dependency’s outputVariables, or will be passed on to a
+     * dependency’s inputVariables. Maximum 100.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping input_variable_mappings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setInputVariableMappings( + int index, com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping value) { + if (inputVariableMappingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInputVariableMappingsIsMutable(); + inputVariableMappings_.set(index, value); + onChanged(); + } else { + inputVariableMappingsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. List of inputVariables for this release that will either be
+     * retrieved from a dependency’s outputVariables, or will be passed on to a
+     * dependency’s inputVariables. Maximum 100.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping input_variable_mappings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setInputVariableMappings( + int index, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping.Builder + builderForValue) { + if (inputVariableMappingsBuilder_ == null) { + ensureInputVariableMappingsIsMutable(); + inputVariableMappings_.set(index, builderForValue.build()); + onChanged(); + } else { + inputVariableMappingsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. List of inputVariables for this release that will either be
+     * retrieved from a dependency’s outputVariables, or will be passed on to a
+     * dependency’s inputVariables. Maximum 100.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping input_variable_mappings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addInputVariableMappings( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping value) { + if (inputVariableMappingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInputVariableMappingsIsMutable(); + inputVariableMappings_.add(value); + onChanged(); + } else { + inputVariableMappingsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. List of inputVariables for this release that will either be
+     * retrieved from a dependency’s outputVariables, or will be passed on to a
+     * dependency’s inputVariables. Maximum 100.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping input_variable_mappings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addInputVariableMappings( + int index, com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping value) { + if (inputVariableMappingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInputVariableMappingsIsMutable(); + inputVariableMappings_.add(index, value); + onChanged(); + } else { + inputVariableMappingsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. List of inputVariables for this release that will either be
+     * retrieved from a dependency’s outputVariables, or will be passed on to a
+     * dependency’s inputVariables. Maximum 100.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping input_variable_mappings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addInputVariableMappings( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping.Builder + builderForValue) { + if (inputVariableMappingsBuilder_ == null) { + ensureInputVariableMappingsIsMutable(); + inputVariableMappings_.add(builderForValue.build()); + onChanged(); + } else { + inputVariableMappingsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. List of inputVariables for this release that will either be
+     * retrieved from a dependency’s outputVariables, or will be passed on to a
+     * dependency’s inputVariables. Maximum 100.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping input_variable_mappings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addInputVariableMappings( + int index, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping.Builder + builderForValue) { + if (inputVariableMappingsBuilder_ == null) { + ensureInputVariableMappingsIsMutable(); + inputVariableMappings_.add(index, builderForValue.build()); + onChanged(); + } else { + inputVariableMappingsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. List of inputVariables for this release that will either be
+     * retrieved from a dependency’s outputVariables, or will be passed on to a
+     * dependency’s inputVariables. Maximum 100.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping input_variable_mappings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllInputVariableMappings( + java.lang.Iterable< + ? extends com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping> + values) { + if (inputVariableMappingsBuilder_ == null) { + ensureInputVariableMappingsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, inputVariableMappings_); + onChanged(); + } else { + inputVariableMappingsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. List of inputVariables for this release that will either be
+     * retrieved from a dependency’s outputVariables, or will be passed on to a
+     * dependency’s inputVariables. Maximum 100.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping input_variable_mappings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearInputVariableMappings() { + if (inputVariableMappingsBuilder_ == null) { + inputVariableMappings_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + inputVariableMappingsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. List of inputVariables for this release that will either be
+     * retrieved from a dependency’s outputVariables, or will be passed on to a
+     * dependency’s inputVariables. Maximum 100.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping input_variable_mappings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeInputVariableMappings(int index) { + if (inputVariableMappingsBuilder_ == null) { + ensureInputVariableMappingsIsMutable(); + inputVariableMappings_.remove(index); + onChanged(); + } else { + inputVariableMappingsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. List of inputVariables for this release that will either be
+     * retrieved from a dependency’s outputVariables, or will be passed on to a
+     * dependency’s inputVariables. Maximum 100.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping input_variable_mappings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping.Builder + getInputVariableMappingsBuilder(int index) { + return getInputVariableMappingsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. List of inputVariables for this release that will either be
+     * retrieved from a dependency’s outputVariables, or will be passed on to a
+     * dependency’s inputVariables. Maximum 100.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping input_variable_mappings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMappingOrBuilder + getInputVariableMappingsOrBuilder(int index) { + if (inputVariableMappingsBuilder_ == null) { + return inputVariableMappings_.get(index); + } else { + return inputVariableMappingsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. List of inputVariables for this release that will either be
+     * retrieved from a dependency’s outputVariables, or will be passed on to a
+     * dependency’s inputVariables. Maximum 100.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping input_variable_mappings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + ? extends + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMappingOrBuilder> + getInputVariableMappingsOrBuilderList() { + if (inputVariableMappingsBuilder_ != null) { + return inputVariableMappingsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(inputVariableMappings_); + } + } + + /** + * + * + *
+     * Optional. List of inputVariables for this release that will either be
+     * retrieved from a dependency’s outputVariables, or will be passed on to a
+     * dependency’s inputVariables. Maximum 100.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping input_variable_mappings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping.Builder + addInputVariableMappingsBuilder() { + return getInputVariableMappingsFieldBuilder() + .addBuilder( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping + .getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. List of inputVariables for this release that will either be
+     * retrieved from a dependency’s outputVariables, or will be passed on to a
+     * dependency’s inputVariables. Maximum 100.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping input_variable_mappings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping.Builder + addInputVariableMappingsBuilder(int index) { + return getInputVariableMappingsFieldBuilder() + .addBuilder( + index, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping + .getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. List of inputVariables for this release that will either be
+     * retrieved from a dependency’s outputVariables, or will be passed on to a
+     * dependency’s inputVariables. Maximum 100.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping input_variable_mappings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping.Builder> + getInputVariableMappingsBuilderList() { + return getInputVariableMappingsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMappingOrBuilder> + getInputVariableMappingsFieldBuilder() { + if (inputVariableMappingsBuilder_ == null) { + inputVariableMappingsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMappingOrBuilder>( + inputVariableMappings_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); + inputVariableMappings_ = null; + } + return inputVariableMappingsBuilder_; + } + + private java.util.List + outputVariableMappings_ = java.util.Collections.emptyList(); + + private void ensureOutputVariableMappingsIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + outputVariableMappings_ = + new java.util.ArrayList< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping>( + outputVariableMappings_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMappingOrBuilder> + outputVariableMappingsBuilder_; + + /** + * + * + *
+     * Optional. List of outputVariables for this unit kind will be passed to this
+     * unit's outputVariables. Maximum 100.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping output_variable_mappings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getOutputVariableMappingsList() { + if (outputVariableMappingsBuilder_ == null) { + return java.util.Collections.unmodifiableList(outputVariableMappings_); + } else { + return outputVariableMappingsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. List of outputVariables for this unit kind will be passed to this
+     * unit's outputVariables. Maximum 100.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping output_variable_mappings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getOutputVariableMappingsCount() { + if (outputVariableMappingsBuilder_ == null) { + return outputVariableMappings_.size(); + } else { + return outputVariableMappingsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. List of outputVariables for this unit kind will be passed to this
+     * unit's outputVariables. Maximum 100.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping output_variable_mappings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping + getOutputVariableMappings(int index) { + if (outputVariableMappingsBuilder_ == null) { + return outputVariableMappings_.get(index); + } else { + return outputVariableMappingsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. List of outputVariables for this unit kind will be passed to this
+     * unit's outputVariables. Maximum 100.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping output_variable_mappings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setOutputVariableMappings( + int index, com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping value) { + if (outputVariableMappingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOutputVariableMappingsIsMutable(); + outputVariableMappings_.set(index, value); + onChanged(); + } else { + outputVariableMappingsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. List of outputVariables for this unit kind will be passed to this
+     * unit's outputVariables. Maximum 100.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping output_variable_mappings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setOutputVariableMappings( + int index, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping.Builder + builderForValue) { + if (outputVariableMappingsBuilder_ == null) { + ensureOutputVariableMappingsIsMutable(); + outputVariableMappings_.set(index, builderForValue.build()); + onChanged(); + } else { + outputVariableMappingsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. List of outputVariables for this unit kind will be passed to this
+     * unit's outputVariables. Maximum 100.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping output_variable_mappings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addOutputVariableMappings( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping value) { + if (outputVariableMappingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOutputVariableMappingsIsMutable(); + outputVariableMappings_.add(value); + onChanged(); + } else { + outputVariableMappingsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. List of outputVariables for this unit kind will be passed to this
+     * unit's outputVariables. Maximum 100.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping output_variable_mappings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addOutputVariableMappings( + int index, com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping value) { + if (outputVariableMappingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOutputVariableMappingsIsMutable(); + outputVariableMappings_.add(index, value); + onChanged(); + } else { + outputVariableMappingsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. List of outputVariables for this unit kind will be passed to this
+     * unit's outputVariables. Maximum 100.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping output_variable_mappings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addOutputVariableMappings( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping.Builder + builderForValue) { + if (outputVariableMappingsBuilder_ == null) { + ensureOutputVariableMappingsIsMutable(); + outputVariableMappings_.add(builderForValue.build()); + onChanged(); + } else { + outputVariableMappingsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. List of outputVariables for this unit kind will be passed to this
+     * unit's outputVariables. Maximum 100.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping output_variable_mappings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addOutputVariableMappings( + int index, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping.Builder + builderForValue) { + if (outputVariableMappingsBuilder_ == null) { + ensureOutputVariableMappingsIsMutable(); + outputVariableMappings_.add(index, builderForValue.build()); + onChanged(); + } else { + outputVariableMappingsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. List of outputVariables for this unit kind will be passed to this
+     * unit's outputVariables. Maximum 100.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping output_variable_mappings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllOutputVariableMappings( + java.lang.Iterable< + ? extends com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping> + values) { + if (outputVariableMappingsBuilder_ == null) { + ensureOutputVariableMappingsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, outputVariableMappings_); + onChanged(); + } else { + outputVariableMappingsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. List of outputVariables for this unit kind will be passed to this
+     * unit's outputVariables. Maximum 100.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping output_variable_mappings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearOutputVariableMappings() { + if (outputVariableMappingsBuilder_ == null) { + outputVariableMappings_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + outputVariableMappingsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. List of outputVariables for this unit kind will be passed to this
+     * unit's outputVariables. Maximum 100.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping output_variable_mappings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeOutputVariableMappings(int index) { + if (outputVariableMappingsBuilder_ == null) { + ensureOutputVariableMappingsIsMutable(); + outputVariableMappings_.remove(index); + onChanged(); + } else { + outputVariableMappingsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. List of outputVariables for this unit kind will be passed to this
+     * unit's outputVariables. Maximum 100.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping output_variable_mappings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping.Builder + getOutputVariableMappingsBuilder(int index) { + return getOutputVariableMappingsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. List of outputVariables for this unit kind will be passed to this
+     * unit's outputVariables. Maximum 100.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping output_variable_mappings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMappingOrBuilder + getOutputVariableMappingsOrBuilder(int index) { + if (outputVariableMappingsBuilder_ == null) { + return outputVariableMappings_.get(index); + } else { + return outputVariableMappingsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. List of outputVariables for this unit kind will be passed to this
+     * unit's outputVariables. Maximum 100.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping output_variable_mappings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + ? extends + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMappingOrBuilder> + getOutputVariableMappingsOrBuilderList() { + if (outputVariableMappingsBuilder_ != null) { + return outputVariableMappingsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(outputVariableMappings_); + } + } + + /** + * + * + *
+     * Optional. List of outputVariables for this unit kind will be passed to this
+     * unit's outputVariables. Maximum 100.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping output_variable_mappings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping.Builder + addOutputVariableMappingsBuilder() { + return getOutputVariableMappingsFieldBuilder() + .addBuilder( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping + .getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. List of outputVariables for this unit kind will be passed to this
+     * unit's outputVariables. Maximum 100.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping output_variable_mappings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping.Builder + addOutputVariableMappingsBuilder(int index) { + return getOutputVariableMappingsFieldBuilder() + .addBuilder( + index, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping + .getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. List of outputVariables for this unit kind will be passed to this
+     * unit's outputVariables. Maximum 100.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping output_variable_mappings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping.Builder> + getOutputVariableMappingsBuilderList() { + return getOutputVariableMappingsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMappingOrBuilder> + getOutputVariableMappingsFieldBuilder() { + if (outputVariableMappingsBuilder_ == null) { + outputVariableMappingsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMappingOrBuilder>( + outputVariableMappings_, + ((bitField0_ & 0x00000010) != 0), + getParentForChildren(), + isClean()); + outputVariableMappings_ = null; + } + return outputVariableMappingsBuilder_; + } + + private java.lang.Object saas_ = ""; + + /** + * + * + *
+     * Required. Immutable. A reference to the Saas that defines the product
+     * (managed service) that the producer wants to manage with SaaS Runtime. Part
+     * of the SaaS Runtime common data model. Immutable once set.
+     * 
+ * + * + * string saas = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The saas. + */ + public java.lang.String getSaas() { + java.lang.Object ref = saas_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + saas_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. Immutable. A reference to the Saas that defines the product
+     * (managed service) that the producer wants to manage with SaaS Runtime. Part
+     * of the SaaS Runtime common data model. Immutable once set.
+     * 
+ * + * + * string saas = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for saas. + */ + public com.google.protobuf.ByteString getSaasBytes() { + java.lang.Object ref = saas_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + saas_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. Immutable. A reference to the Saas that defines the product
+     * (managed service) that the producer wants to manage with SaaS Runtime. Part
+     * of the SaaS Runtime common data model. Immutable once set.
+     * 
+ * + * + * string saas = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @param value The saas to set. + * @return This builder for chaining. + */ + public Builder setSaas(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + saas_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Immutable. A reference to the Saas that defines the product
+     * (managed service) that the producer wants to manage with SaaS Runtime. Part
+     * of the SaaS Runtime common data model. Immutable once set.
+     * 
+ * + * + * string saas = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearSaas() { + saas_ = getDefaultInstance().getSaas(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Immutable. A reference to the Saas that defines the product
+     * (managed service) that the producer wants to manage with SaaS Runtime. Part
+     * of the SaaS Runtime common data model. Immutable once set.
+     * 
+ * + * + * string saas = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for saas to set. + * @return This builder for chaining. + */ + public Builder setSaasBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + saas_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + 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() { + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + bitField0_ |= 0x00000040; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
+     * Optional. The labels on the resource, which can be used for categorization.
+     * similar to Kubernetes resource labels.
+     * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** + * + * + *
+     * Optional. The labels on the resource, which can be used for categorization.
+     * similar to Kubernetes resource labels.
+     * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
+     * Optional. The labels on the resource, which can be used for categorization.
+     * similar to Kubernetes resource labels.
+     * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+     * Optional. The labels on the resource, which can be used for categorization.
+     * similar to Kubernetes resource labels.
+     * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000040); + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + + /** + * + * + *
+     * Optional. The labels on the resource, which can be used for categorization.
+     * similar to Kubernetes resource labels.
+     * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000040; + return internalGetMutableLabels().getMutableMap(); + } + + /** + * + * + *
+     * Optional. The labels on the resource, which can be used for categorization.
+     * similar to Kubernetes resource labels.
+     * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000040; + return this; + } + + /** + * + * + *
+     * Optional. The labels on the resource, which can be used for categorization.
+     * similar to Kubernetes resource labels.
+     * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000040; + return this; + } + + private com.google.protobuf.MapField annotations_; + + private com.google.protobuf.MapField + internalGetAnnotations() { + if (annotations_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AnnotationsDefaultEntryHolder.defaultEntry); + } + return annotations_; + } + + private com.google.protobuf.MapField + internalGetMutableAnnotations() { + if (annotations_ == null) { + annotations_ = + com.google.protobuf.MapField.newMapField(AnnotationsDefaultEntryHolder.defaultEntry); + } + if (!annotations_.isMutable()) { + annotations_ = annotations_.copy(); + } + bitField0_ |= 0x00000080; + onChanged(); + return annotations_; + } + + public int getAnnotationsCount() { + return internalGetAnnotations().getMap().size(); + } + + /** + * + * + *
+     * Optional. Annotations is an unstructured key-value map stored with a
+     * resource that may be set by external tools to store and retrieve arbitrary
+     * metadata. They are not queryable and should be preserved when modifying
+     * objects.
+     *
+     * More info: https://kubernetes.io/docs/user-guide/annotations
+     * 
+ * + * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetAnnotations().getMap().containsKey(key); + } + + /** Use {@link #getAnnotationsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getAnnotations() { + return getAnnotationsMap(); + } + + /** + * + * + *
+     * Optional. Annotations is an unstructured key-value map stored with a
+     * resource that may be set by external tools to store and retrieve arbitrary
+     * metadata. They are not queryable and should be preserved when modifying
+     * objects.
+     *
+     * More info: https://kubernetes.io/docs/user-guide/annotations
+     * 
+ * + * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getAnnotationsMap() { + return internalGetAnnotations().getMap(); + } + + /** + * + * + *
+     * Optional. Annotations is an unstructured key-value map stored with a
+     * resource that may be set by external tools to store and retrieve arbitrary
+     * metadata. They are not queryable and should be preserved when modifying
+     * objects.
+     *
+     * More info: https://kubernetes.io/docs/user-guide/annotations
+     * 
+ * + * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getAnnotationsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+     * Optional. Annotations is an unstructured key-value map stored with a
+     * resource that may be set by external tools to store and retrieve arbitrary
+     * metadata. They are not queryable and should be preserved when modifying
+     * objects.
+     *
+     * More info: https://kubernetes.io/docs/user-guide/annotations
+     * 
+ * + * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearAnnotations() { + bitField0_ = (bitField0_ & ~0x00000080); + internalGetMutableAnnotations().getMutableMap().clear(); + return this; + } + + /** + * + * + *
+     * Optional. Annotations is an unstructured key-value map stored with a
+     * resource that may be set by external tools to store and retrieve arbitrary
+     * metadata. They are not queryable and should be preserved when modifying
+     * objects.
+     *
+     * More info: https://kubernetes.io/docs/user-guide/annotations
+     * 
+ * + * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableAnnotations().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableAnnotations() { + bitField0_ |= 0x00000080; + return internalGetMutableAnnotations().getMutableMap(); + } + + /** + * + * + *
+     * Optional. Annotations is an unstructured key-value map stored with a
+     * resource that may be set by external tools to store and retrieve arbitrary
+     * metadata. They are not queryable and should be preserved when modifying
+     * objects.
+     *
+     * More info: https://kubernetes.io/docs/user-guide/annotations
+     * 
+ * + * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAnnotations(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableAnnotations().getMutableMap().put(key, value); + bitField0_ |= 0x00000080; + return this; + } + + /** + * + * + *
+     * Optional. Annotations is an unstructured key-value map stored with a
+     * resource that may be set by external tools to store and retrieve arbitrary
+     * metadata. They are not queryable and should be preserved when modifying
+     * objects.
+     *
+     * More info: https://kubernetes.io/docs/user-guide/annotations
+     * 
+ * + * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllAnnotations(java.util.Map values) { + internalGetMutableAnnotations().getMutableMap().putAll(values); + bitField0_ |= 0x00000080; + return this; + } + + private java.lang.Object uid_ = ""; + + /** + * + * + *
+     * Output only. The unique identifier of the resource. UID is unique in the
+     * time and space for this resource within the scope of the service. It is
+     * typically generated by the server on successful creation of a resource
+     * and must not be changed. UID is used to uniquely identify resources
+     * with resource name reuses. This should be a UUID4.
+     * 
+ * + * + * string uid = 10201 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The uid. + */ + public java.lang.String getUid() { + java.lang.Object ref = uid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The unique identifier of the resource. UID is unique in the
+     * time and space for this resource within the scope of the service. It is
+     * typically generated by the server on successful creation of a resource
+     * and must not be changed. UID is used to uniquely identify resources
+     * with resource name reuses. This should be a UUID4.
+     * 
+ * + * + * string uid = 10201 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The bytes for uid. + */ + public com.google.protobuf.ByteString getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The unique identifier of the resource. UID is unique in the
+     * time and space for this resource within the scope of the service. It is
+     * typically generated by the server on successful creation of a resource
+     * and must not be changed. UID is used to uniquely identify resources
+     * with resource name reuses. This should be a UUID4.
+     * 
+ * + * + * string uid = 10201 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @param value The uid to set. + * @return This builder for chaining. + */ + public Builder setUid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uid_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The unique identifier of the resource. UID is unique in the
+     * time and space for this resource within the scope of the service. It is
+     * typically generated by the server on successful creation of a resource
+     * and must not be changed. UID is used to uniquely identify resources
+     * with resource name reuses. This should be a UUID4.
+     * 
+ * + * + * string uid = 10201 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearUid() { + uid_ = getDefaultInstance().getUid(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The unique identifier of the resource. UID is unique in the
+     * time and space for this resource within the scope of the service. It is
+     * typically generated by the server on successful creation of a resource
+     * and must not be changed. UID is used to uniquely identify resources
+     * with resource name reuses. This should be a UUID4.
+     * 
+ * + * + * string uid = 10201 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for uid to set. + * @return This builder for chaining. + */ + public Builder setUidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uid_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + private java.lang.Object etag_ = ""; + + /** + * + * + *
+     * Output only. An opaque value that uniquely identifies a version or
+     * generation of a resource. It can be used to confirm that the client
+     * and server agree on the ordering of a resource being written.
+     * 
+ * + * string etag = 10202 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+     * Output only. An opaque value that uniquely identifies a version or
+     * generation of a resource. It can be used to confirm that the client
+     * and server agree on the ordering of a resource being written.
+     * 
+ * + * string etag = 10202 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+     * Output only. An opaque value that uniquely identifies a version or
+     * generation of a resource. It can be used to confirm that the client
+     * and server agree on the ordering of a resource being written.
+     * 
+ * + * string etag = 10202 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. An opaque value that uniquely identifies a version or
+     * generation of a resource. It can be used to confirm that the client
+     * and server agree on the ordering of a resource being written.
+     * 
+ * + * string etag = 10202 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. An opaque value that uniquely identifies a version or
+     * generation of a resource. It can be used to confirm that the client
+     * and server agree on the ordering of a resource being written.
+     * 
+ * + * string etag = 10202 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + bitField0_ |= 0x00000200; + 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 timestamp when the resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000400) != 0); + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.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 timestamp when the resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.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; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000400; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000400); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000400; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.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 timestamp when the resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.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 timestamp when the resource was last updated. Any
+     * change to the resource made by users must refresh this value.
+     * Changes to a resource made by the service should refresh this value.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000800) != 0); + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was last updated. Any
+     * change to the resource made by users must refresh this value.
+     * Changes to a resource made by the service should refresh this value.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.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 timestamp when the resource was last updated. Any
+     * change to the resource made by users must refresh this value.
+     * Changes to a resource made by the service should refresh this value.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.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; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was last updated. Any
+     * change to the resource made by users must refresh this value.
+     * Changes to a resource made by the service should refresh this value.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was last updated. Any
+     * change to the resource made by users must refresh this value.
+     * Changes to a resource made by the service should refresh this value.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000800) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000800; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was last updated. Any
+     * change to the resource made by users must refresh this value.
+     * Changes to a resource made by the service should refresh this value.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000800); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was last updated. Any
+     * change to the resource made by users must refresh this value.
+     * Changes to a resource made by the service should refresh this value.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000800; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was last updated. Any
+     * change to the resource made by users must refresh this value.
+     * Changes to a resource made by the service should refresh this value.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.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 timestamp when the resource was last updated. Any
+     * change to the resource made by users must refresh this value.
+     * Changes to a resource made by the service should refresh this value.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.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_; + } + + @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.saasplatform.saasservicemgmt.v1beta1.UnitKind) + } + + // @@protoc_insertion_point(class_scope:google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind) + private static final com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind(); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UnitKind parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.saasplatform.saasservicemgmt.v1beta1.UnitKind + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UnitKindName.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UnitKindName.java new file mode 100644 index 000000000000..a8065cb4f004 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UnitKindName.java @@ -0,0 +1,223 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1; + +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; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class UnitKindName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_UNITKIND = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/unitKinds/{unitKind}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String unitKind; + + @Deprecated + protected UnitKindName() { + project = null; + location = null; + unitKind = null; + } + + private UnitKindName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + unitKind = Preconditions.checkNotNull(builder.getUnitKind()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getUnitKind() { + return unitKind; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static UnitKindName of(String project, String location, String unitKind) { + return newBuilder().setProject(project).setLocation(location).setUnitKind(unitKind).build(); + } + + public static String format(String project, String location, String unitKind) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setUnitKind(unitKind) + .build() + .toString(); + } + + public static UnitKindName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_UNITKIND.validatedMatch( + formattedString, "UnitKindName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("unitKind")); + } + + 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 (UnitKindName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_UNITKIND.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (unitKind != null) { + fieldMapBuilder.put("unitKind", unitKind); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_UNITKIND.instantiate( + "project", project, "location", location, "unitKind", unitKind); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + UnitKindName that = ((UnitKindName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.unitKind, that.unitKind); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(unitKind); + return h; + } + + /** Builder for projects/{project}/locations/{location}/unitKinds/{unitKind}. */ + public static class Builder { + private String project; + private String location; + private String unitKind; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getUnitKind() { + return unitKind; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setUnitKind(String unitKind) { + this.unitKind = unitKind; + return this; + } + + private Builder(UnitKindName unitKindName) { + this.project = unitKindName.project; + this.location = unitKindName.location; + this.unitKind = unitKindName.unitKind; + } + + public UnitKindName build() { + return new UnitKindName(this); + } + } +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UnitKindOrBuilder.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UnitKindOrBuilder.java new file mode 100644 index 000000000000..022412a2f353 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UnitKindOrBuilder.java @@ -0,0 +1,690 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_resources.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +public interface UnitKindOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Identifier. The resource name (full URI of the resource) following the
+   * standard naming scheme:
+   *
+   *   "projects/{project}/locations/{location}/unitKinds/{unitKind}"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Identifier. The resource name (full URI of the resource) following the
+   * standard naming scheme:
+   *
+   *   "projects/{project}/locations/{location}/unitKinds/{unitKind}"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. A reference to the Release object to use as default for creating
+   * new units of this UnitKind (optional).
+   *
+   * If not specified, a new unit must explicitly reference which release to use
+   * for its creation.
+   * 
+ * + * + * string default_release = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The defaultRelease. + */ + java.lang.String getDefaultRelease(); + + /** + * + * + *
+   * Optional. A reference to the Release object to use as default for creating
+   * new units of this UnitKind (optional).
+   *
+   * If not specified, a new unit must explicitly reference which release to use
+   * for its creation.
+   * 
+ * + * + * string default_release = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for defaultRelease. + */ + com.google.protobuf.ByteString getDefaultReleaseBytes(); + + /** + * + * + *
+   * Optional. Immutable. List of other unit kinds that this release will depend
+   * on. Dependencies will be automatically provisioned if not found.
+   * Maximum 10.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Dependency dependencies = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + java.util.List + getDependenciesList(); + + /** + * + * + *
+   * Optional. Immutable. List of other unit kinds that this release will depend
+   * on. Dependencies will be automatically provisioned if not found.
+   * Maximum 10.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Dependency dependencies = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Dependency getDependencies(int index); + + /** + * + * + *
+   * Optional. Immutable. List of other unit kinds that this release will depend
+   * on. Dependencies will be automatically provisioned if not found.
+   * Maximum 10.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Dependency dependencies = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + int getDependenciesCount(); + + /** + * + * + *
+   * Optional. Immutable. List of other unit kinds that this release will depend
+   * on. Dependencies will be automatically provisioned if not found.
+   * Maximum 10.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Dependency dependencies = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + java.util.List< + ? extends com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DependencyOrBuilder> + getDependenciesOrBuilderList(); + + /** + * + * + *
+   * Optional. Immutable. List of other unit kinds that this release will depend
+   * on. Dependencies will be automatically provisioned if not found.
+   * Maximum 10.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.Dependency dependencies = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DependencyOrBuilder + getDependenciesOrBuilder(int index); + + /** + * + * + *
+   * Optional. List of inputVariables for this release that will either be
+   * retrieved from a dependency’s outputVariables, or will be passed on to a
+   * dependency’s inputVariables. Maximum 100.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping input_variable_mappings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getInputVariableMappingsList(); + + /** + * + * + *
+   * Optional. List of inputVariables for this release that will either be
+   * retrieved from a dependency’s outputVariables, or will be passed on to a
+   * dependency’s inputVariables. Maximum 100.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping input_variable_mappings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping getInputVariableMappings( + int index); + + /** + * + * + *
+   * Optional. List of inputVariables for this release that will either be
+   * retrieved from a dependency’s outputVariables, or will be passed on to a
+   * dependency’s inputVariables. Maximum 100.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping input_variable_mappings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getInputVariableMappingsCount(); + + /** + * + * + *
+   * Optional. List of inputVariables for this release that will either be
+   * retrieved from a dependency’s outputVariables, or will be passed on to a
+   * dependency’s inputVariables. Maximum 100.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping input_variable_mappings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + ? extends com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMappingOrBuilder> + getInputVariableMappingsOrBuilderList(); + + /** + * + * + *
+   * Optional. List of inputVariables for this release that will either be
+   * retrieved from a dependency’s outputVariables, or will be passed on to a
+   * dependency’s inputVariables. Maximum 100.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping input_variable_mappings = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMappingOrBuilder + getInputVariableMappingsOrBuilder(int index); + + /** + * + * + *
+   * Optional. List of outputVariables for this unit kind will be passed to this
+   * unit's outputVariables. Maximum 100.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping output_variable_mappings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getOutputVariableMappingsList(); + + /** + * + * + *
+   * Optional. List of outputVariables for this unit kind will be passed to this
+   * unit's outputVariables. Maximum 100.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping output_variable_mappings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping getOutputVariableMappings( + int index); + + /** + * + * + *
+   * Optional. List of outputVariables for this unit kind will be passed to this
+   * unit's outputVariables. Maximum 100.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping output_variable_mappings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getOutputVariableMappingsCount(); + + /** + * + * + *
+   * Optional. List of outputVariables for this unit kind will be passed to this
+   * unit's outputVariables. Maximum 100.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping output_variable_mappings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + ? extends com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMappingOrBuilder> + getOutputVariableMappingsOrBuilderList(); + + /** + * + * + *
+   * Optional. List of outputVariables for this unit kind will be passed to this
+   * unit's outputVariables. Maximum 100.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping output_variable_mappings = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMappingOrBuilder + getOutputVariableMappingsOrBuilder(int index); + + /** + * + * + *
+   * Required. Immutable. A reference to the Saas that defines the product
+   * (managed service) that the producer wants to manage with SaaS Runtime. Part
+   * of the SaaS Runtime common data model. Immutable once set.
+   * 
+ * + * + * string saas = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The saas. + */ + java.lang.String getSaas(); + + /** + * + * + *
+   * Required. Immutable. A reference to the Saas that defines the product
+   * (managed service) that the producer wants to manage with SaaS Runtime. Part
+   * of the SaaS Runtime common data model. Immutable once set.
+   * 
+ * + * + * string saas = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for saas. + */ + com.google.protobuf.ByteString getSaasBytes(); + + /** + * + * + *
+   * Optional. The labels on the resource, which can be used for categorization.
+   * similar to Kubernetes resource labels.
+   * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getLabelsCount(); + + /** + * + * + *
+   * Optional. The labels on the resource, which can be used for categorization.
+   * similar to Kubernetes resource labels.
+   * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsLabels(java.lang.String key); + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + + /** + * + * + *
+   * Optional. The labels on the resource, which can be used for categorization.
+   * similar to Kubernetes resource labels.
+   * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map getLabelsMap(); + + /** + * + * + *
+   * Optional. The labels on the resource, which can be used for categorization.
+   * similar to Kubernetes resource labels.
+   * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
+   * Optional. The labels on the resource, which can be used for categorization.
+   * similar to Kubernetes resource labels.
+   * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
+   * Optional. Annotations is an unstructured key-value map stored with a
+   * resource that may be set by external tools to store and retrieve arbitrary
+   * metadata. They are not queryable and should be preserved when modifying
+   * objects.
+   *
+   * More info: https://kubernetes.io/docs/user-guide/annotations
+   * 
+ * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getAnnotationsCount(); + + /** + * + * + *
+   * Optional. Annotations is an unstructured key-value map stored with a
+   * resource that may be set by external tools to store and retrieve arbitrary
+   * metadata. They are not queryable and should be preserved when modifying
+   * objects.
+   *
+   * More info: https://kubernetes.io/docs/user-guide/annotations
+   * 
+ * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsAnnotations(java.lang.String key); + + /** Use {@link #getAnnotationsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getAnnotations(); + + /** + * + * + *
+   * Optional. Annotations is an unstructured key-value map stored with a
+   * resource that may be set by external tools to store and retrieve arbitrary
+   * metadata. They are not queryable and should be preserved when modifying
+   * objects.
+   *
+   * More info: https://kubernetes.io/docs/user-guide/annotations
+   * 
+ * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map getAnnotationsMap(); + + /** + * + * + *
+   * Optional. Annotations is an unstructured key-value map stored with a
+   * resource that may be set by external tools to store and retrieve arbitrary
+   * metadata. They are not queryable and should be preserved when modifying
+   * objects.
+   *
+   * More info: https://kubernetes.io/docs/user-guide/annotations
+   * 
+ * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + java.lang.String getAnnotationsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
+   * Optional. Annotations is an unstructured key-value map stored with a
+   * resource that may be set by external tools to store and retrieve arbitrary
+   * metadata. They are not queryable and should be preserved when modifying
+   * objects.
+   *
+   * More info: https://kubernetes.io/docs/user-guide/annotations
+   * 
+ * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.lang.String getAnnotationsOrThrow(java.lang.String key); + + /** + * + * + *
+   * Output only. The unique identifier of the resource. UID is unique in the
+   * time and space for this resource within the scope of the service. It is
+   * typically generated by the server on successful creation of a resource
+   * and must not be changed. UID is used to uniquely identify resources
+   * with resource name reuses. This should be a UUID4.
+   * 
+ * + * + * string uid = 10201 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The uid. + */ + java.lang.String getUid(); + + /** + * + * + *
+   * Output only. The unique identifier of the resource. UID is unique in the
+   * time and space for this resource within the scope of the service. It is
+   * typically generated by the server on successful creation of a resource
+   * and must not be changed. UID is used to uniquely identify resources
+   * with resource name reuses. This should be a UUID4.
+   * 
+ * + * + * string uid = 10201 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The bytes for uid. + */ + com.google.protobuf.ByteString getUidBytes(); + + /** + * + * + *
+   * Output only. An opaque value that uniquely identifies a version or
+   * generation of a resource. It can be used to confirm that the client
+   * and server agree on the ordering of a resource being written.
+   * 
+ * + * string etag = 10202 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The etag. + */ + java.lang.String getEtag(); + + /** + * + * + *
+   * Output only. An opaque value that uniquely identifies a version or
+   * generation of a resource. It can be used to confirm that the client
+   * and server agree on the ordering of a resource being written.
+   * 
+ * + * string etag = 10202 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); + + /** + * + * + *
+   * Output only. The timestamp when the resource was created.
+   * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
+   * Output only. The timestamp when the resource was created.
+   * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
+   * Output only. The timestamp when the resource was created.
+   * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. The timestamp when the resource was last updated. Any
+   * change to the resource made by users must refresh this value.
+   * Changes to a resource made by the service should refresh this value.
+   * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
+   * Output only. The timestamp when the resource was last updated. Any
+   * change to the resource made by users must refresh this value.
+   * Changes to a resource made by the service should refresh this value.
+   * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
+   * Output only. The timestamp when the resource was last updated. Any
+   * change to the resource made by users must refresh this value.
+   * Changes to a resource made by the service should refresh this value.
+   * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UnitName.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UnitName.java new file mode 100644 index 000000000000..7ac8f27a8482 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UnitName.java @@ -0,0 +1,217 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1; + +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; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class UnitName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_UNIT = + PathTemplate.createWithoutUrlEncoding("projects/{project}/locations/{location}/units/{unit}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String unit; + + @Deprecated + protected UnitName() { + project = null; + location = null; + unit = null; + } + + private UnitName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + unit = Preconditions.checkNotNull(builder.getUnit()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getUnit() { + return unit; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static UnitName of(String project, String location, String unit) { + return newBuilder().setProject(project).setLocation(location).setUnit(unit).build(); + } + + public static String format(String project, String location, String unit) { + return newBuilder().setProject(project).setLocation(location).setUnit(unit).build().toString(); + } + + public static UnitName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_UNIT.validatedMatch( + formattedString, "UnitName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("unit")); + } + + 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 (UnitName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_UNIT.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (unit != null) { + fieldMapBuilder.put("unit", unit); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_UNIT.instantiate( + "project", project, "location", location, "unit", unit); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + UnitName that = ((UnitName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.unit, that.unit); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(unit); + return h; + } + + /** Builder for projects/{project}/locations/{location}/units/{unit}. */ + public static class Builder { + private String project; + private String location; + private String unit; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getUnit() { + return unit; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setUnit(String unit) { + this.unit = unit; + return this; + } + + private Builder(UnitName unitName) { + this.project = unitName.project; + this.location = unitName.location; + this.unit = unitName.unit; + } + + public UnitName build() { + return new UnitName(this); + } + } +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UnitOperation.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UnitOperation.java new file mode 100644 index 000000000000..aa3cdd15beb2 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UnitOperation.java @@ -0,0 +1,5969 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_resources.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +/** + * + * + *
+ * UnitOperation encapsulates the intent of changing/interacting with the
+ * service component represented by the specific Unit. Multiple UnitOperations
+ * can be created (requested) and scheduled in the future, however only one will
+ * be allowed to execute at a time (that can change in the future for
+ * non-mutating operations).
+ *
+ * UnitOperations allow different actors interacting with the same
+ * unit to focus only on the change they have requested.
+ *
+ * This is a base object that contains the common fields in all unit operations.
+ * Next: 19
+ * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation} + */ +public final class UnitOperation extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation) + UnitOperationOrBuilder { + private static final long serialVersionUID = 0L; + + // Use UnitOperation.newBuilder() to construct. + private UnitOperation(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UnitOperation() { + name_ = ""; + unit_ = ""; + parentUnitOperation_ = ""; + rollout_ = ""; + state_ = 0; + conditions_ = java.util.Collections.emptyList(); + engineState_ = ""; + errorCategory_ = 0; + uid_ = ""; + etag_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UnitOperation(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UnitOperation_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 10401: + return internalGetLabels(); + case 10402: + return internalGetAnnotations(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UnitOperation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation.Builder.class); + } + + /** + * + * + *
+   * UnitOperationState describes the current state of the unit operation.
+   * 
+ * + * Protobuf enum {@code + * google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation.UnitOperationState} + */ + public enum UnitOperationState implements com.google.protobuf.ProtocolMessageEnum { + /** UNIT_OPERATION_STATE_UNKNOWN = 0; */ + UNIT_OPERATION_STATE_UNKNOWN(0), + /** + * + * + *
+     * Unit operation is accepted but not ready to run.
+     * 
+ * + * UNIT_OPERATION_STATE_PENDING = 1; + */ + UNIT_OPERATION_STATE_PENDING(1), + /** + * + * + *
+     * Unit operation is accepted and scheduled.
+     * 
+ * + * UNIT_OPERATION_STATE_SCHEDULED = 2; + */ + UNIT_OPERATION_STATE_SCHEDULED(2), + /** + * + * + *
+     * Unit operation is running.
+     * 
+ * + * UNIT_OPERATION_STATE_RUNNING = 4; + */ + UNIT_OPERATION_STATE_RUNNING(4), + /** + * + * + *
+     * Unit operation has completed successfully.
+     * 
+ * + * UNIT_OPERATION_STATE_SUCCEEDED = 5; + */ + UNIT_OPERATION_STATE_SUCCEEDED(5), + /** + * + * + *
+     * Unit operation has failed.
+     * 
+ * + * UNIT_OPERATION_STATE_FAILED = 6; + */ + UNIT_OPERATION_STATE_FAILED(6), + /** + * + * + *
+     * Unit operation was cancelled.
+     * 
+ * + * UNIT_OPERATION_STATE_CANCELLED = 7; + */ + UNIT_OPERATION_STATE_CANCELLED(7), + UNRECOGNIZED(-1), + ; + + /** UNIT_OPERATION_STATE_UNKNOWN = 0; */ + public static final int UNIT_OPERATION_STATE_UNKNOWN_VALUE = 0; + + /** + * + * + *
+     * Unit operation is accepted but not ready to run.
+     * 
+ * + * UNIT_OPERATION_STATE_PENDING = 1; + */ + public static final int UNIT_OPERATION_STATE_PENDING_VALUE = 1; + + /** + * + * + *
+     * Unit operation is accepted and scheduled.
+     * 
+ * + * UNIT_OPERATION_STATE_SCHEDULED = 2; + */ + public static final int UNIT_OPERATION_STATE_SCHEDULED_VALUE = 2; + + /** + * + * + *
+     * Unit operation is running.
+     * 
+ * + * UNIT_OPERATION_STATE_RUNNING = 4; + */ + public static final int UNIT_OPERATION_STATE_RUNNING_VALUE = 4; + + /** + * + * + *
+     * Unit operation has completed successfully.
+     * 
+ * + * UNIT_OPERATION_STATE_SUCCEEDED = 5; + */ + public static final int UNIT_OPERATION_STATE_SUCCEEDED_VALUE = 5; + + /** + * + * + *
+     * Unit operation has failed.
+     * 
+ * + * UNIT_OPERATION_STATE_FAILED = 6; + */ + public static final int UNIT_OPERATION_STATE_FAILED_VALUE = 6; + + /** + * + * + *
+     * Unit operation was cancelled.
+     * 
+ * + * UNIT_OPERATION_STATE_CANCELLED = 7; + */ + public static final int UNIT_OPERATION_STATE_CANCELLED_VALUE = 7; + + 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 UnitOperationState 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 UnitOperationState forNumber(int value) { + switch (value) { + case 0: + return UNIT_OPERATION_STATE_UNKNOWN; + case 1: + return UNIT_OPERATION_STATE_PENDING; + case 2: + return UNIT_OPERATION_STATE_SCHEDULED; + case 4: + return UNIT_OPERATION_STATE_RUNNING; + case 5: + return UNIT_OPERATION_STATE_SUCCEEDED; + case 6: + return UNIT_OPERATION_STATE_FAILED; + case 7: + return UNIT_OPERATION_STATE_CANCELLED; + 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 UnitOperationState findValueByNumber(int number) { + return UnitOperationState.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + 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.saasplatform.saasservicemgmt.v1beta1.UnitOperation.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final UnitOperationState[] VALUES = values(); + + public static UnitOperationState 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 UnitOperationState(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation.UnitOperationState) + } + + private int bitField0_; + private int unitOperationTypeCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object unitOperationType_; + + public enum UnitOperationTypeCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + PROVISION(8), + UPGRADE(9), + DEPROVISION(10), + UNITOPERATIONTYPE_NOT_SET(0); + private final int value; + + private UnitOperationTypeCase(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 UnitOperationTypeCase valueOf(int value) { + return forNumber(value); + } + + public static UnitOperationTypeCase forNumber(int value) { + switch (value) { + case 8: + return PROVISION; + case 9: + return UPGRADE; + case 10: + return DEPROVISION; + case 0: + return UNITOPERATIONTYPE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public UnitOperationTypeCase getUnitOperationTypeCase() { + return UnitOperationTypeCase.forNumber(unitOperationTypeCase_); + } + + public static final int PROVISION_FIELD_NUMBER = 8; + + /** + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Provision provision = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the provision field is set. + */ + @java.lang.Override + public boolean hasProvision() { + return unitOperationTypeCase_ == 8; + } + + /** + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Provision provision = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The provision. + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Provision getProvision() { + if (unitOperationTypeCase_ == 8) { + return (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Provision) unitOperationType_; + } + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Provision.getDefaultInstance(); + } + + /** + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Provision provision = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ProvisionOrBuilder + getProvisionOrBuilder() { + if (unitOperationTypeCase_ == 8) { + return (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Provision) unitOperationType_; + } + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Provision.getDefaultInstance(); + } + + public static final int UPGRADE_FIELD_NUMBER = 9; + + /** + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Upgrade upgrade = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the upgrade field is set. + */ + @java.lang.Override + public boolean hasUpgrade() { + return unitOperationTypeCase_ == 9; + } + + /** + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Upgrade upgrade = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The upgrade. + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Upgrade getUpgrade() { + if (unitOperationTypeCase_ == 9) { + return (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Upgrade) unitOperationType_; + } + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Upgrade.getDefaultInstance(); + } + + /** + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Upgrade upgrade = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpgradeOrBuilder + getUpgradeOrBuilder() { + if (unitOperationTypeCase_ == 9) { + return (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Upgrade) unitOperationType_; + } + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Upgrade.getDefaultInstance(); + } + + public static final int DEPROVISION_FIELD_NUMBER = 10; + + /** + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Deprovision deprovision = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the deprovision field is set. + */ + @java.lang.Override + public boolean hasDeprovision() { + return unitOperationTypeCase_ == 10; + } + + /** + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Deprovision deprovision = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The deprovision. + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Deprovision getDeprovision() { + if (unitOperationTypeCase_ == 10) { + return (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Deprovision) unitOperationType_; + } + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Deprovision.getDefaultInstance(); + } + + /** + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Deprovision deprovision = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeprovisionOrBuilder + getDeprovisionOrBuilder() { + if (unitOperationTypeCase_ == 10) { + return (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Deprovision) unitOperationType_; + } + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Deprovision.getDefaultInstance(); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Identifier. The resource name (full URI of the resource) following the
+   * standard naming scheme:
+   *
+   *  "projects/{project}/locations/{location}/unitOperations/{unitOperation}"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + @java.lang.Override + 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; + } + } + + /** + * + * + *
+   * Identifier. The resource name (full URI of the resource) following the
+   * standard naming scheme:
+   *
+   *  "projects/{project}/locations/{location}/unitOperations/{unitOperation}"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + @java.lang.Override + 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 UNIT_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object unit_ = ""; + + /** + * + * + *
+   * Required. Immutable. The Unit a given UnitOperation will act upon.
+   * 
+ * + * + * string unit = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The unit. + */ + @java.lang.Override + public java.lang.String getUnit() { + java.lang.Object ref = unit_; + 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(); + unit_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. Immutable. The Unit a given UnitOperation will act upon.
+   * 
+ * + * + * string unit = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for unit. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUnitBytes() { + java.lang.Object ref = unit_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + unit_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PARENT_UNIT_OPERATION_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object parentUnitOperation_ = ""; + + /** + * + * + *
+   * Optional. Reference to parent resource: UnitOperation. If an operation
+   * needs to create other operations as part of its workflow, each of the child
+   * operations should have this field set to the parent. This can be used for
+   * tracing. (Optional)
+   * 
+ * + * + * string parent_unit_operation = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The parentUnitOperation. + */ + @java.lang.Override + public java.lang.String getParentUnitOperation() { + java.lang.Object ref = parentUnitOperation_; + 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(); + parentUnitOperation_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Reference to parent resource: UnitOperation. If an operation
+   * needs to create other operations as part of its workflow, each of the child
+   * operations should have this field set to the parent. This can be used for
+   * tracing. (Optional)
+   * 
+ * + * + * string parent_unit_operation = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parentUnitOperation. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentUnitOperationBytes() { + java.lang.Object ref = parentUnitOperation_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parentUnitOperation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ROLLOUT_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object rollout_ = ""; + + /** + * + * + *
+   * Optional. Specifies which rollout created this Unit Operation. This cannot
+   * be modified and is used for filtering purposes only. If a dependent unit
+   * and unit operation are created as part of another unit operation, they will
+   * use the same rolloutId.
+   * 
+ * + * + * string rollout = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The rollout. + */ + @java.lang.Override + public java.lang.String getRollout() { + java.lang.Object ref = rollout_; + 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(); + rollout_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Specifies which rollout created this Unit Operation. This cannot
+   * be modified and is used for filtering purposes only. If a dependent unit
+   * and unit operation are created as part of another unit operation, they will
+   * use the same rolloutId.
+   * 
+ * + * + * string rollout = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for rollout. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRolloutBytes() { + java.lang.Object ref = rollout_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rollout_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CANCEL_FIELD_NUMBER = 5; + private boolean cancel_ = false; + + /** + * + * + *
+   * Optional. When true, attempt to cancel the operation. Cancellation may fail
+   * if the operation is already executing. (Optional)
+   * 
+ * + * bool cancel = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The cancel. + */ + @java.lang.Override + public boolean getCancel() { + return cancel_; + } + + public static final int STATE_FIELD_NUMBER = 6; + private int state_ = 0; + + /** + * + * + *
+   * Optional. Output only. UnitOperationState describes the current state of
+   * the unit operation.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation.UnitOperationState state = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
+   * Optional. Output only. UnitOperationState describes the current state of
+   * the unit operation.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation.UnitOperationState state = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation.UnitOperationState + getState() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation.UnitOperationState result = + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation.UnitOperationState + .forNumber(state_); + return result == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation.UnitOperationState + .UNRECOGNIZED + : result; + } + + public static final int CONDITIONS_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition> + conditions_; + + /** + * + * + *
+   * Optional. Output only. A set of conditions which indicate the various
+   * conditions this resource can have.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition conditions = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition> + getConditionsList() { + return conditions_; + } + + /** + * + * + *
+   * Optional. Output only. A set of conditions which indicate the various
+   * conditions this resource can have.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition conditions = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationConditionOrBuilder> + getConditionsOrBuilderList() { + return conditions_; + } + + /** + * + * + *
+   * Optional. Output only. A set of conditions which indicate the various
+   * conditions this resource can have.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition conditions = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getConditionsCount() { + return conditions_.size(); + } + + /** + * + * + *
+   * Optional. Output only. A set of conditions which indicate the various
+   * conditions this resource can have.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition conditions = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition getConditions( + int index) { + return conditions_.get(index); + } + + /** + * + * + *
+   * Optional. Output only. A set of conditions which indicate the various
+   * conditions this resource can have.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition conditions = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationConditionOrBuilder + getConditionsOrBuilder(int index) { + return conditions_.get(index); + } + + public static final int SCHEDULE_FIELD_NUMBER = 12; + private com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Schedule schedule_; + + /** + * + * + *
+   * Optional. When to schedule this operation.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Schedule schedule = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the schedule field is set. + */ + @java.lang.Override + public boolean hasSchedule() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. When to schedule this operation.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Schedule schedule = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The schedule. + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Schedule getSchedule() { + return schedule_ == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Schedule.getDefaultInstance() + : schedule_; + } + + /** + * + * + *
+   * Optional. When to schedule this operation.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Schedule schedule = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ScheduleOrBuilder + getScheduleOrBuilder() { + return schedule_ == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Schedule.getDefaultInstance() + : schedule_; + } + + public static final int ENGINE_STATE_FIELD_NUMBER = 14; + + @SuppressWarnings("serial") + private volatile java.lang.Object engineState_ = ""; + + /** + * + * + *
+   * Optional. Output only. The engine state for on-going
+   * deployment engine operation(s).
+   * This field is opaque for external usage.
+   * 
+ * + * + * string engine_state = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The engineState. + */ + @java.lang.Override + public java.lang.String getEngineState() { + java.lang.Object ref = engineState_; + 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(); + engineState_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Output only. The engine state for on-going
+   * deployment engine operation(s).
+   * This field is opaque for external usage.
+   * 
+ * + * + * string engine_state = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for engineState. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEngineStateBytes() { + java.lang.Object ref = engineState_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + engineState_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ERROR_CATEGORY_FIELD_NUMBER = 15; + private int errorCategory_ = 0; + + /** + * + * + *
+   * Optional. Output only. UnitOperationErrorCategory describe the error
+   * category.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationErrorCategory error_category = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for errorCategory. + */ + @java.lang.Override + public int getErrorCategoryValue() { + return errorCategory_; + } + + /** + * + * + *
+   * Optional. Output only. UnitOperationErrorCategory describe the error
+   * category.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationErrorCategory error_category = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The errorCategory. + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationErrorCategory + getErrorCategory() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationErrorCategory result = + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationErrorCategory.forNumber( + errorCategory_); + return result == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationErrorCategory + .UNRECOGNIZED + : result; + } + + public static final int LABELS_FIELD_NUMBER = 10401; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UnitOperation_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + 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(); + } + + /** + * + * + *
+   * Optional. The labels on the resource, which can be used for categorization.
+   * similar to Kubernetes resource labels.
+   * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** + * + * + *
+   * Optional. The labels on the resource, which can be used for categorization.
+   * similar to Kubernetes resource labels.
+   * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
+   * Optional. The labels on the resource, which can be used for categorization.
+   * similar to Kubernetes resource labels.
+   * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+   * Optional. The labels on the resource, which can be used for categorization.
+   * similar to Kubernetes resource labels.
+   * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int ANNOTATIONS_FIELD_NUMBER = 10402; + + private static final class AnnotationsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UnitOperation_AnnotationsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField annotations_; + + private com.google.protobuf.MapField + internalGetAnnotations() { + if (annotations_ == null) { + return com.google.protobuf.MapField.emptyMapField(AnnotationsDefaultEntryHolder.defaultEntry); + } + return annotations_; + } + + public int getAnnotationsCount() { + return internalGetAnnotations().getMap().size(); + } + + /** + * + * + *
+   * Optional. Annotations is an unstructured key-value map stored with a
+   * resource that may be set by external tools to store and retrieve arbitrary
+   * metadata. They are not queryable and should be preserved when modifying
+   * objects.
+   *
+   * More info: https://kubernetes.io/docs/user-guide/annotations
+   * 
+ * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetAnnotations().getMap().containsKey(key); + } + + /** Use {@link #getAnnotationsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getAnnotations() { + return getAnnotationsMap(); + } + + /** + * + * + *
+   * Optional. Annotations is an unstructured key-value map stored with a
+   * resource that may be set by external tools to store and retrieve arbitrary
+   * metadata. They are not queryable and should be preserved when modifying
+   * objects.
+   *
+   * More info: https://kubernetes.io/docs/user-guide/annotations
+   * 
+ * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getAnnotationsMap() { + return internalGetAnnotations().getMap(); + } + + /** + * + * + *
+   * Optional. Annotations is an unstructured key-value map stored with a
+   * resource that may be set by external tools to store and retrieve arbitrary
+   * metadata. They are not queryable and should be preserved when modifying
+   * objects.
+   *
+   * More info: https://kubernetes.io/docs/user-guide/annotations
+   * 
+ * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getAnnotationsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+   * Optional. Annotations is an unstructured key-value map stored with a
+   * resource that may be set by external tools to store and retrieve arbitrary
+   * metadata. They are not queryable and should be preserved when modifying
+   * objects.
+   *
+   * More info: https://kubernetes.io/docs/user-guide/annotations
+   * 
+ * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int UID_FIELD_NUMBER = 10201; + + @SuppressWarnings("serial") + private volatile java.lang.Object uid_ = ""; + + /** + * + * + *
+   * Output only. The unique identifier of the resource. UID is unique in the
+   * time and space for this resource within the scope of the service. It is
+   * typically generated by the server on successful creation of a resource
+   * and must not be changed. UID is used to uniquely identify resources
+   * with resource name reuses. This should be a UUID4.
+   * 
+ * + * + * string uid = 10201 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The uid. + */ + @java.lang.Override + public java.lang.String getUid() { + java.lang.Object ref = uid_; + 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(); + uid_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The unique identifier of the resource. UID is unique in the
+   * time and space for this resource within the scope of the service. It is
+   * typically generated by the server on successful creation of a resource
+   * and must not be changed. UID is used to uniquely identify resources
+   * with resource name reuses. This should be a UUID4.
+   * 
+ * + * + * string uid = 10201 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The bytes for uid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ETAG_FIELD_NUMBER = 10202; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + + /** + * + * + *
+   * Output only. An opaque value that uniquely identifies a version or
+   * generation of a resource. It can be used to confirm that the client
+   * and server agree on the ordering of a resource being written.
+   * 
+ * + * string etag = 10202 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The etag. + */ + @java.lang.Override + 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. An opaque value that uniquely identifies a version or
+   * generation of a resource. It can be used to confirm that the client
+   * and server agree on the ordering of a resource being written.
+   * 
+ * + * string etag = 10202 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for etag. + */ + @java.lang.Override + 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 CREATE_TIME_FIELD_NUMBER = 10303; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
+   * Output only. The timestamp when the resource was created.
+   * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Output only. The timestamp when the resource was created.
+   * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
+   * Output only. The timestamp when the resource was created.
+   * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 10304; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
+   * Output only. The timestamp when the resource was last updated. Any
+   * change to the resource made by users must refresh this value.
+   * Changes to a resource made by the service should refresh this value.
+   * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Output only. The timestamp when the resource was last updated. Any
+   * change to the resource made by users must refresh this value.
+   * Changes to a resource made by the service should refresh this value.
+   * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
+   * Output only. The timestamp when the resource was last updated. Any
+   * change to the resource made by users must refresh this value.
+   * Changes to a resource made by the service should refresh this value.
+   * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(unit_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, unit_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parentUnitOperation_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, parentUnitOperation_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rollout_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, rollout_); + } + if (cancel_ != false) { + output.writeBool(5, cancel_); + } + if (state_ + != com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation.UnitOperationState + .UNIT_OPERATION_STATE_UNKNOWN + .getNumber()) { + output.writeEnum(6, state_); + } + for (int i = 0; i < conditions_.size(); i++) { + output.writeMessage(7, conditions_.get(i)); + } + if (unitOperationTypeCase_ == 8) { + output.writeMessage( + 8, (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Provision) unitOperationType_); + } + if (unitOperationTypeCase_ == 9) { + output.writeMessage( + 9, (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Upgrade) unitOperationType_); + } + if (unitOperationTypeCase_ == 10) { + output.writeMessage( + 10, + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Deprovision) unitOperationType_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(12, getSchedule()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(engineState_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 14, engineState_); + } + if (errorCategory_ + != com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationErrorCategory + .UNIT_OPERATION_ERROR_CATEGORY_UNSPECIFIED + .getNumber()) { + output.writeEnum(15, errorCategory_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10201, uid_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10202, etag_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(10303, getCreateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(10304, getUpdateTime()); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 10401); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetAnnotations(), AnnotationsDefaultEntryHolder.defaultEntry, 10402); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(unit_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, unit_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parentUnitOperation_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, parentUnitOperation_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rollout_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, rollout_); + } + if (cancel_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, cancel_); + } + if (state_ + != com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation.UnitOperationState + .UNIT_OPERATION_STATE_UNKNOWN + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, state_); + } + for (int i = 0; i < conditions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, conditions_.get(i)); + } + if (unitOperationTypeCase_ == 8) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Provision) unitOperationType_); + } + if (unitOperationTypeCase_ == 9) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 9, + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Upgrade) unitOperationType_); + } + if (unitOperationTypeCase_ == 10) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 10, + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Deprovision) + unitOperationType_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getSchedule()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(engineState_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, engineState_); + } + if (errorCategory_ + != com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationErrorCategory + .UNIT_OPERATION_ERROR_CATEGORY_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(15, errorCategory_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10201, uid_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10202, etag_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10303, getCreateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10304, 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(10401, labels__); + } + for (java.util.Map.Entry entry : + internalGetAnnotations().getMap().entrySet()) { + com.google.protobuf.MapEntry annotations__ = + AnnotationsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10402, annotations__); + } + size += getUnknownFields().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.saasplatform.saasservicemgmt.v1beta1.UnitOperation)) { + return super.equals(obj); + } + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation other = + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnit().equals(other.getUnit())) return false; + if (!getParentUnitOperation().equals(other.getParentUnitOperation())) return false; + if (!getRollout().equals(other.getRollout())) return false; + if (getCancel() != other.getCancel()) return false; + if (state_ != other.state_) return false; + if (!getConditionsList().equals(other.getConditionsList())) return false; + if (hasSchedule() != other.hasSchedule()) return false; + if (hasSchedule()) { + if (!getSchedule().equals(other.getSchedule())) return false; + } + if (!getEngineState().equals(other.getEngineState())) return false; + if (errorCategory_ != other.errorCategory_) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!internalGetAnnotations().equals(other.internalGetAnnotations())) return false; + if (!getUid().equals(other.getUid())) return false; + if (!getEtag().equals(other.getEtag())) 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 (!getUnitOperationTypeCase().equals(other.getUnitOperationTypeCase())) return false; + switch (unitOperationTypeCase_) { + case 8: + if (!getProvision().equals(other.getProvision())) return false; + break; + case 9: + if (!getUpgrade().equals(other.getUpgrade())) return false; + break; + case 10: + if (!getDeprovision().equals(other.getDeprovision())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + UNIT_FIELD_NUMBER; + hash = (53 * hash) + getUnit().hashCode(); + hash = (37 * hash) + PARENT_UNIT_OPERATION_FIELD_NUMBER; + hash = (53 * hash) + getParentUnitOperation().hashCode(); + hash = (37 * hash) + ROLLOUT_FIELD_NUMBER; + hash = (53 * hash) + getRollout().hashCode(); + hash = (37 * hash) + CANCEL_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCancel()); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + if (getConditionsCount() > 0) { + hash = (37 * hash) + CONDITIONS_FIELD_NUMBER; + hash = (53 * hash) + getConditionsList().hashCode(); + } + if (hasSchedule()) { + hash = (37 * hash) + SCHEDULE_FIELD_NUMBER; + hash = (53 * hash) + getSchedule().hashCode(); + } + hash = (37 * hash) + ENGINE_STATE_FIELD_NUMBER; + hash = (53 * hash) + getEngineState().hashCode(); + hash = (37 * hash) + ERROR_CATEGORY_FIELD_NUMBER; + hash = (53 * hash) + errorCategory_; + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + if (!internalGetAnnotations().getMap().isEmpty()) { + hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; + hash = (53 * hash) + internalGetAnnotations().hashCode(); + } + hash = (37 * hash) + UID_FIELD_NUMBER; + hash = (53 * hash) + getUid().hashCode(); + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().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(); + } + switch (unitOperationTypeCase_) { + case 8: + hash = (37 * hash) + PROVISION_FIELD_NUMBER; + hash = (53 * hash) + getProvision().hashCode(); + break; + case 9: + hash = (37 * hash) + UPGRADE_FIELD_NUMBER; + hash = (53 * hash) + getUpgrade().hashCode(); + break; + case 10: + hash = (37 * hash) + DEPROVISION_FIELD_NUMBER; + hash = (53 * hash) + getDeprovision().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation 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.saasplatform.saasservicemgmt.v1beta1.UnitOperation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation 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.saasplatform.saasservicemgmt.v1beta1.UnitOperation parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation 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.saasplatform.saasservicemgmt.v1beta1.UnitOperation + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation + 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.saasplatform.saasservicemgmt.v1beta1.UnitOperation parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation 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.saasplatform.saasservicemgmt.v1beta1.UnitOperation 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; + } + + /** + * + * + *
+   * UnitOperation encapsulates the intent of changing/interacting with the
+   * service component represented by the specific Unit. Multiple UnitOperations
+   * can be created (requested) and scheduled in the future, however only one will
+   * be allowed to execute at a time (that can change in the future for
+   * non-mutating operations).
+   *
+   * UnitOperations allow different actors interacting with the same
+   * unit to focus only on the change they have requested.
+   *
+   * This is a base object that contains the common fields in all unit operations.
+   * Next: 19
+   * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation) + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UnitOperation_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 10401: + return internalGetLabels(); + case 10402: + return internalGetAnnotations(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 10401: + return internalGetMutableLabels(); + case 10402: + return internalGetMutableAnnotations(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UnitOperation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation.Builder.class); + } + + // Construct using + // com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getConditionsFieldBuilder(); + getScheduleFieldBuilder(); + getCreateTimeFieldBuilder(); + getUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (provisionBuilder_ != null) { + provisionBuilder_.clear(); + } + if (upgradeBuilder_ != null) { + upgradeBuilder_.clear(); + } + if (deprovisionBuilder_ != null) { + deprovisionBuilder_.clear(); + } + name_ = ""; + unit_ = ""; + parentUnitOperation_ = ""; + rollout_ = ""; + cancel_ = false; + state_ = 0; + if (conditionsBuilder_ == null) { + conditions_ = java.util.Collections.emptyList(); + } else { + conditions_ = null; + conditionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000200); + schedule_ = null; + if (scheduleBuilder_ != null) { + scheduleBuilder_.dispose(); + scheduleBuilder_ = null; + } + engineState_ = ""; + errorCategory_ = 0; + internalGetMutableLabels().clear(); + internalGetMutableAnnotations().clear(); + uid_ = ""; + etag_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + unitOperationTypeCase_ = 0; + unitOperationType_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UnitOperation_descriptor; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation + getDefaultInstanceForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation build() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation buildPartial() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation result = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation result) { + if (conditionsBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0)) { + conditions_ = java.util.Collections.unmodifiableList(conditions_); + bitField0_ = (bitField0_ & ~0x00000200); + } + result.conditions_ = conditions_; + } else { + result.conditions_ = conditionsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.unit_ = unit_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.parentUnitOperation_ = parentUnitOperation_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.rollout_ = rollout_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.cancel_ = cancel_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.state_ = state_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000400) != 0)) { + result.schedule_ = scheduleBuilder_ == null ? schedule_ : scheduleBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.engineState_ = engineState_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.errorCategory_ = errorCategory_; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.annotations_ = internalGetAnnotations(); + result.annotations_.makeImmutable(); + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.uid_ = uid_; + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.etag_ = etag_; + } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00040000) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation result) { + result.unitOperationTypeCase_ = unitOperationTypeCase_; + result.unitOperationType_ = this.unitOperationType_; + if (unitOperationTypeCase_ == 8 && provisionBuilder_ != null) { + result.unitOperationType_ = provisionBuilder_.build(); + } + if (unitOperationTypeCase_ == 9 && upgradeBuilder_ != null) { + result.unitOperationType_ = upgradeBuilder_.build(); + } + if (unitOperationTypeCase_ == 10 && deprovisionBuilder_ != null) { + result.unitOperationType_ = deprovisionBuilder_.build(); + } + } + + @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.saasplatform.saasservicemgmt.v1beta1.UnitOperation) { + return mergeFrom( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation other) { + if (other + == com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getUnit().isEmpty()) { + unit_ = other.unit_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getParentUnitOperation().isEmpty()) { + parentUnitOperation_ = other.parentUnitOperation_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.getRollout().isEmpty()) { + rollout_ = other.rollout_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (other.getCancel() != false) { + setCancel(other.getCancel()); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (conditionsBuilder_ == null) { + if (!other.conditions_.isEmpty()) { + if (conditions_.isEmpty()) { + conditions_ = other.conditions_; + bitField0_ = (bitField0_ & ~0x00000200); + } else { + ensureConditionsIsMutable(); + conditions_.addAll(other.conditions_); + } + onChanged(); + } + } else { + if (!other.conditions_.isEmpty()) { + if (conditionsBuilder_.isEmpty()) { + conditionsBuilder_.dispose(); + conditionsBuilder_ = null; + conditions_ = other.conditions_; + bitField0_ = (bitField0_ & ~0x00000200); + conditionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getConditionsFieldBuilder() + : null; + } else { + conditionsBuilder_.addAllMessages(other.conditions_); + } + } + } + if (other.hasSchedule()) { + mergeSchedule(other.getSchedule()); + } + if (!other.getEngineState().isEmpty()) { + engineState_ = other.engineState_; + bitField0_ |= 0x00000800; + onChanged(); + } + if (other.errorCategory_ != 0) { + setErrorCategoryValue(other.getErrorCategoryValue()); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00002000; + internalGetMutableAnnotations().mergeFrom(other.internalGetAnnotations()); + bitField0_ |= 0x00004000; + if (!other.getUid().isEmpty()) { + uid_ = other.uid_; + bitField0_ |= 0x00008000; + onChanged(); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + bitField0_ |= 0x00010000; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + switch (other.getUnitOperationTypeCase()) { + case PROVISION: + { + mergeProvision(other.getProvision()); + break; + } + case UPGRADE: + { + mergeUpgrade(other.getUpgrade()); + break; + } + case DEPROVISION: + { + mergeDeprovision(other.getDeprovision()); + break; + } + case UNITOPERATIONTYPE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 10 + case 18: + { + unit_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 18 + case 26: + { + parentUnitOperation_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 26 + case 34: + { + rollout_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 34 + case 40: + { + cancel_ = input.readBool(); + bitField0_ |= 0x00000080; + break; + } // case 40 + case 48: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000100; + break; + } // case 48 + case 58: + { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition m = + input.readMessage( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition + .parser(), + extensionRegistry); + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.add(m); + } else { + conditionsBuilder_.addMessage(m); + } + break; + } // case 58 + case 66: + { + input.readMessage(getProvisionFieldBuilder().getBuilder(), extensionRegistry); + unitOperationTypeCase_ = 8; + break; + } // case 66 + case 74: + { + input.readMessage(getUpgradeFieldBuilder().getBuilder(), extensionRegistry); + unitOperationTypeCase_ = 9; + break; + } // case 74 + case 82: + { + input.readMessage(getDeprovisionFieldBuilder().getBuilder(), extensionRegistry); + unitOperationTypeCase_ = 10; + break; + } // case 82 + case 98: + { + input.readMessage(getScheduleFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000400; + break; + } // case 98 + case 114: + { + engineState_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000800; + break; + } // case 114 + case 120: + { + errorCategory_ = input.readEnum(); + bitField0_ |= 0x00001000; + break; + } // case 120 + case 81610: + { + uid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00008000; + break; + } // case 81610 + case 81618: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00010000; + break; + } // case 81618 + case 82426: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00020000; + break; + } // case 82426 + case 82434: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00040000; + break; + } // case 82434 + case 83210: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00002000; + break; + } // case 83210 + case 83218: + { + com.google.protobuf.MapEntry annotations__ = + input.readMessage( + AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableAnnotations() + .getMutableMap() + .put(annotations__.getKey(), annotations__.getValue()); + bitField0_ |= 0x00004000; + break; + } // case 83218 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int unitOperationTypeCase_ = 0; + private java.lang.Object unitOperationType_; + + public UnitOperationTypeCase getUnitOperationTypeCase() { + return UnitOperationTypeCase.forNumber(unitOperationTypeCase_); + } + + public Builder clearUnitOperationType() { + unitOperationTypeCase_ = 0; + unitOperationType_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Provision, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Provision.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ProvisionOrBuilder> + provisionBuilder_; + + /** + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Provision provision = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the provision field is set. + */ + @java.lang.Override + public boolean hasProvision() { + return unitOperationTypeCase_ == 8; + } + + /** + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Provision provision = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The provision. + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Provision getProvision() { + if (provisionBuilder_ == null) { + if (unitOperationTypeCase_ == 8) { + return (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Provision) + unitOperationType_; + } + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Provision.getDefaultInstance(); + } else { + if (unitOperationTypeCase_ == 8) { + return provisionBuilder_.getMessage(); + } + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Provision.getDefaultInstance(); + } + } + + /** + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Provision provision = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setProvision( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Provision value) { + if (provisionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + unitOperationType_ = value; + onChanged(); + } else { + provisionBuilder_.setMessage(value); + } + unitOperationTypeCase_ = 8; + return this; + } + + /** + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Provision provision = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setProvision( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Provision.Builder builderForValue) { + if (provisionBuilder_ == null) { + unitOperationType_ = builderForValue.build(); + onChanged(); + } else { + provisionBuilder_.setMessage(builderForValue.build()); + } + unitOperationTypeCase_ = 8; + return this; + } + + /** + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Provision provision = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeProvision( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Provision value) { + if (provisionBuilder_ == null) { + if (unitOperationTypeCase_ == 8 + && unitOperationType_ + != com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Provision + .getDefaultInstance()) { + unitOperationType_ = + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Provision.newBuilder( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Provision) + unitOperationType_) + .mergeFrom(value) + .buildPartial(); + } else { + unitOperationType_ = value; + } + onChanged(); + } else { + if (unitOperationTypeCase_ == 8) { + provisionBuilder_.mergeFrom(value); + } else { + provisionBuilder_.setMessage(value); + } + } + unitOperationTypeCase_ = 8; + return this; + } + + /** + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Provision provision = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearProvision() { + if (provisionBuilder_ == null) { + if (unitOperationTypeCase_ == 8) { + unitOperationTypeCase_ = 0; + unitOperationType_ = null; + onChanged(); + } + } else { + if (unitOperationTypeCase_ == 8) { + unitOperationTypeCase_ = 0; + unitOperationType_ = null; + } + provisionBuilder_.clear(); + } + return this; + } + + /** + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Provision provision = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Provision.Builder + getProvisionBuilder() { + return getProvisionFieldBuilder().getBuilder(); + } + + /** + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Provision provision = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ProvisionOrBuilder + getProvisionOrBuilder() { + if ((unitOperationTypeCase_ == 8) && (provisionBuilder_ != null)) { + return provisionBuilder_.getMessageOrBuilder(); + } else { + if (unitOperationTypeCase_ == 8) { + return (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Provision) + unitOperationType_; + } + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Provision.getDefaultInstance(); + } + } + + /** + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Provision provision = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Provision, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Provision.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ProvisionOrBuilder> + getProvisionFieldBuilder() { + if (provisionBuilder_ == null) { + if (!(unitOperationTypeCase_ == 8)) { + unitOperationType_ = + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Provision.getDefaultInstance(); + } + provisionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Provision, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Provision.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ProvisionOrBuilder>( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Provision) + unitOperationType_, + getParentForChildren(), + isClean()); + unitOperationType_ = null; + } + unitOperationTypeCase_ = 8; + onChanged(); + return provisionBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Upgrade, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Upgrade.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpgradeOrBuilder> + upgradeBuilder_; + + /** + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Upgrade upgrade = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the upgrade field is set. + */ + @java.lang.Override + public boolean hasUpgrade() { + return unitOperationTypeCase_ == 9; + } + + /** + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Upgrade upgrade = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The upgrade. + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Upgrade getUpgrade() { + if (upgradeBuilder_ == null) { + if (unitOperationTypeCase_ == 9) { + return (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Upgrade) unitOperationType_; + } + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Upgrade.getDefaultInstance(); + } else { + if (unitOperationTypeCase_ == 9) { + return upgradeBuilder_.getMessage(); + } + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Upgrade.getDefaultInstance(); + } + } + + /** + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Upgrade upgrade = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpgrade(com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Upgrade value) { + if (upgradeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + unitOperationType_ = value; + onChanged(); + } else { + upgradeBuilder_.setMessage(value); + } + unitOperationTypeCase_ = 9; + return this; + } + + /** + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Upgrade upgrade = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpgrade( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Upgrade.Builder builderForValue) { + if (upgradeBuilder_ == null) { + unitOperationType_ = builderForValue.build(); + onChanged(); + } else { + upgradeBuilder_.setMessage(builderForValue.build()); + } + unitOperationTypeCase_ = 9; + return this; + } + + /** + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Upgrade upgrade = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUpgrade( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Upgrade value) { + if (upgradeBuilder_ == null) { + if (unitOperationTypeCase_ == 9 + && unitOperationType_ + != com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Upgrade + .getDefaultInstance()) { + unitOperationType_ = + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Upgrade.newBuilder( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Upgrade) + unitOperationType_) + .mergeFrom(value) + .buildPartial(); + } else { + unitOperationType_ = value; + } + onChanged(); + } else { + if (unitOperationTypeCase_ == 9) { + upgradeBuilder_.mergeFrom(value); + } else { + upgradeBuilder_.setMessage(value); + } + } + unitOperationTypeCase_ = 9; + return this; + } + + /** + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Upgrade upgrade = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUpgrade() { + if (upgradeBuilder_ == null) { + if (unitOperationTypeCase_ == 9) { + unitOperationTypeCase_ = 0; + unitOperationType_ = null; + onChanged(); + } + } else { + if (unitOperationTypeCase_ == 9) { + unitOperationTypeCase_ = 0; + unitOperationType_ = null; + } + upgradeBuilder_.clear(); + } + return this; + } + + /** + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Upgrade upgrade = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Upgrade.Builder + getUpgradeBuilder() { + return getUpgradeFieldBuilder().getBuilder(); + } + + /** + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Upgrade upgrade = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpgradeOrBuilder + getUpgradeOrBuilder() { + if ((unitOperationTypeCase_ == 9) && (upgradeBuilder_ != null)) { + return upgradeBuilder_.getMessageOrBuilder(); + } else { + if (unitOperationTypeCase_ == 9) { + return (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Upgrade) unitOperationType_; + } + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Upgrade.getDefaultInstance(); + } + } + + /** + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Upgrade upgrade = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Upgrade, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Upgrade.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpgradeOrBuilder> + getUpgradeFieldBuilder() { + if (upgradeBuilder_ == null) { + if (!(unitOperationTypeCase_ == 9)) { + unitOperationType_ = + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Upgrade.getDefaultInstance(); + } + upgradeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Upgrade, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Upgrade.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpgradeOrBuilder>( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Upgrade) unitOperationType_, + getParentForChildren(), + isClean()); + unitOperationType_ = null; + } + unitOperationTypeCase_ = 9; + onChanged(); + return upgradeBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Deprovision, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Deprovision.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeprovisionOrBuilder> + deprovisionBuilder_; + + /** + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Deprovision deprovision = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the deprovision field is set. + */ + @java.lang.Override + public boolean hasDeprovision() { + return unitOperationTypeCase_ == 10; + } + + /** + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Deprovision deprovision = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The deprovision. + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Deprovision getDeprovision() { + if (deprovisionBuilder_ == null) { + if (unitOperationTypeCase_ == 10) { + return (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Deprovision) + unitOperationType_; + } + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Deprovision + .getDefaultInstance(); + } else { + if (unitOperationTypeCase_ == 10) { + return deprovisionBuilder_.getMessage(); + } + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Deprovision + .getDefaultInstance(); + } + } + + /** + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Deprovision deprovision = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDeprovision( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Deprovision value) { + if (deprovisionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + unitOperationType_ = value; + onChanged(); + } else { + deprovisionBuilder_.setMessage(value); + } + unitOperationTypeCase_ = 10; + return this; + } + + /** + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Deprovision deprovision = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDeprovision( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Deprovision.Builder builderForValue) { + if (deprovisionBuilder_ == null) { + unitOperationType_ = builderForValue.build(); + onChanged(); + } else { + deprovisionBuilder_.setMessage(builderForValue.build()); + } + unitOperationTypeCase_ = 10; + return this; + } + + /** + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Deprovision deprovision = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeDeprovision( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Deprovision value) { + if (deprovisionBuilder_ == null) { + if (unitOperationTypeCase_ == 10 + && unitOperationType_ + != com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Deprovision + .getDefaultInstance()) { + unitOperationType_ = + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Deprovision.newBuilder( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Deprovision) + unitOperationType_) + .mergeFrom(value) + .buildPartial(); + } else { + unitOperationType_ = value; + } + onChanged(); + } else { + if (unitOperationTypeCase_ == 10) { + deprovisionBuilder_.mergeFrom(value); + } else { + deprovisionBuilder_.setMessage(value); + } + } + unitOperationTypeCase_ = 10; + return this; + } + + /** + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Deprovision deprovision = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearDeprovision() { + if (deprovisionBuilder_ == null) { + if (unitOperationTypeCase_ == 10) { + unitOperationTypeCase_ = 0; + unitOperationType_ = null; + onChanged(); + } + } else { + if (unitOperationTypeCase_ == 10) { + unitOperationTypeCase_ = 0; + unitOperationType_ = null; + } + deprovisionBuilder_.clear(); + } + return this; + } + + /** + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Deprovision deprovision = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Deprovision.Builder + getDeprovisionBuilder() { + return getDeprovisionFieldBuilder().getBuilder(); + } + + /** + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Deprovision deprovision = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeprovisionOrBuilder + getDeprovisionOrBuilder() { + if ((unitOperationTypeCase_ == 10) && (deprovisionBuilder_ != null)) { + return deprovisionBuilder_.getMessageOrBuilder(); + } else { + if (unitOperationTypeCase_ == 10) { + return (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Deprovision) + unitOperationType_; + } + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Deprovision + .getDefaultInstance(); + } + } + + /** + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Deprovision deprovision = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Deprovision, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Deprovision.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeprovisionOrBuilder> + getDeprovisionFieldBuilder() { + if (deprovisionBuilder_ == null) { + if (!(unitOperationTypeCase_ == 10)) { + unitOperationType_ = + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Deprovision + .getDefaultInstance(); + } + deprovisionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Deprovision, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Deprovision.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeprovisionOrBuilder>( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Deprovision) + unitOperationType_, + getParentForChildren(), + isClean()); + unitOperationType_ = null; + } + unitOperationTypeCase_ = 10; + onChanged(); + return deprovisionBuilder_; + } + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Identifier. The resource name (full URI of the resource) following the
+     * standard naming scheme:
+     *
+     *  "projects/{project}/locations/{location}/unitOperations/{unitOperation}"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + } + } + + /** + * + * + *
+     * Identifier. The resource name (full URI of the resource) following the
+     * standard naming scheme:
+     *
+     *  "projects/{project}/locations/{location}/unitOperations/{unitOperation}"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + } + } + + /** + * + * + *
+     * Identifier. The resource name (full URI of the resource) following the
+     * standard naming scheme:
+     *
+     *  "projects/{project}/locations/{location}/unitOperations/{unitOperation}"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Identifier. The resource name (full URI of the resource) following the
+     * standard naming scheme:
+     *
+     *  "projects/{project}/locations/{location}/unitOperations/{unitOperation}"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Identifier. The resource name (full URI of the resource) following the
+     * standard naming scheme:
+     *
+     *  "projects/{project}/locations/{location}/unitOperations/{unitOperation}"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object unit_ = ""; + + /** + * + * + *
+     * Required. Immutable. The Unit a given UnitOperation will act upon.
+     * 
+ * + * + * string unit = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The unit. + */ + public java.lang.String getUnit() { + java.lang.Object ref = unit_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + unit_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. Immutable. The Unit a given UnitOperation will act upon.
+     * 
+ * + * + * string unit = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for unit. + */ + public com.google.protobuf.ByteString getUnitBytes() { + java.lang.Object ref = unit_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + unit_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. Immutable. The Unit a given UnitOperation will act upon.
+     * 
+ * + * + * string unit = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @param value The unit to set. + * @return This builder for chaining. + */ + public Builder setUnit(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + unit_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Immutable. The Unit a given UnitOperation will act upon.
+     * 
+ * + * + * string unit = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearUnit() { + unit_ = getDefaultInstance().getUnit(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Immutable. The Unit a given UnitOperation will act upon.
+     * 
+ * + * + * string unit = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for unit to set. + * @return This builder for chaining. + */ + public Builder setUnitBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + unit_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object parentUnitOperation_ = ""; + + /** + * + * + *
+     * Optional. Reference to parent resource: UnitOperation. If an operation
+     * needs to create other operations as part of its workflow, each of the child
+     * operations should have this field set to the parent. This can be used for
+     * tracing. (Optional)
+     * 
+ * + * + * string parent_unit_operation = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The parentUnitOperation. + */ + public java.lang.String getParentUnitOperation() { + java.lang.Object ref = parentUnitOperation_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parentUnitOperation_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Reference to parent resource: UnitOperation. If an operation
+     * needs to create other operations as part of its workflow, each of the child
+     * operations should have this field set to the parent. This can be used for
+     * tracing. (Optional)
+     * 
+ * + * + * string parent_unit_operation = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parentUnitOperation. + */ + public com.google.protobuf.ByteString getParentUnitOperationBytes() { + java.lang.Object ref = parentUnitOperation_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parentUnitOperation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Reference to parent resource: UnitOperation. If an operation
+     * needs to create other operations as part of its workflow, each of the child
+     * operations should have this field set to the parent. This can be used for
+     * tracing. (Optional)
+     * 
+ * + * + * string parent_unit_operation = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The parentUnitOperation to set. + * @return This builder for chaining. + */ + public Builder setParentUnitOperation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parentUnitOperation_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Reference to parent resource: UnitOperation. If an operation
+     * needs to create other operations as part of its workflow, each of the child
+     * operations should have this field set to the parent. This can be used for
+     * tracing. (Optional)
+     * 
+ * + * + * string parent_unit_operation = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParentUnitOperation() { + parentUnitOperation_ = getDefaultInstance().getParentUnitOperation(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Reference to parent resource: UnitOperation. If an operation
+     * needs to create other operations as part of its workflow, each of the child
+     * operations should have this field set to the parent. This can be used for
+     * tracing. (Optional)
+     * 
+ * + * + * string parent_unit_operation = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parentUnitOperation to set. + * @return This builder for chaining. + */ + public Builder setParentUnitOperationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parentUnitOperation_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object rollout_ = ""; + + /** + * + * + *
+     * Optional. Specifies which rollout created this Unit Operation. This cannot
+     * be modified and is used for filtering purposes only. If a dependent unit
+     * and unit operation are created as part of another unit operation, they will
+     * use the same rolloutId.
+     * 
+ * + * + * string rollout = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The rollout. + */ + public java.lang.String getRollout() { + java.lang.Object ref = rollout_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rollout_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Specifies which rollout created this Unit Operation. This cannot
+     * be modified and is used for filtering purposes only. If a dependent unit
+     * and unit operation are created as part of another unit operation, they will
+     * use the same rolloutId.
+     * 
+ * + * + * string rollout = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for rollout. + */ + public com.google.protobuf.ByteString getRolloutBytes() { + java.lang.Object ref = rollout_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rollout_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Specifies which rollout created this Unit Operation. This cannot
+     * be modified and is used for filtering purposes only. If a dependent unit
+     * and unit operation are created as part of another unit operation, they will
+     * use the same rolloutId.
+     * 
+ * + * + * string rollout = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The rollout to set. + * @return This builder for chaining. + */ + public Builder setRollout(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + rollout_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Specifies which rollout created this Unit Operation. This cannot
+     * be modified and is used for filtering purposes only. If a dependent unit
+     * and unit operation are created as part of another unit operation, they will
+     * use the same rolloutId.
+     * 
+ * + * + * string rollout = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRollout() { + rollout_ = getDefaultInstance().getRollout(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Specifies which rollout created this Unit Operation. This cannot
+     * be modified and is used for filtering purposes only. If a dependent unit
+     * and unit operation are created as part of another unit operation, they will
+     * use the same rolloutId.
+     * 
+ * + * + * string rollout = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for rollout to set. + * @return This builder for chaining. + */ + public Builder setRolloutBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + rollout_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private boolean cancel_; + + /** + * + * + *
+     * Optional. When true, attempt to cancel the operation. Cancellation may fail
+     * if the operation is already executing. (Optional)
+     * 
+ * + * bool cancel = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The cancel. + */ + @java.lang.Override + public boolean getCancel() { + return cancel_; + } + + /** + * + * + *
+     * Optional. When true, attempt to cancel the operation. Cancellation may fail
+     * if the operation is already executing. (Optional)
+     * 
+ * + * bool cancel = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The cancel to set. + * @return This builder for chaining. + */ + public Builder setCancel(boolean value) { + + cancel_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. When true, attempt to cancel the operation. Cancellation may fail
+     * if the operation is already executing. (Optional)
+     * 
+ * + * bool cancel = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearCancel() { + bitField0_ = (bitField0_ & ~0x00000080); + cancel_ = false; + onChanged(); + return this; + } + + private int state_ = 0; + + /** + * + * + *
+     * Optional. Output only. UnitOperationState describes the current state of
+     * the unit operation.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation.UnitOperationState state = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
+     * Optional. Output only. UnitOperationState describes the current state of
+     * the unit operation.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation.UnitOperationState state = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Output only. UnitOperationState describes the current state of
+     * the unit operation.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation.UnitOperationState state = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation.UnitOperationState + getState() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation.UnitOperationState + result = + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation.UnitOperationState + .forNumber(state_); + return result == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation.UnitOperationState + .UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Optional. Output only. UnitOperationState describes the current state of
+     * the unit operation.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation.UnitOperationState state = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation.UnitOperationState + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000100; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Output only. UnitOperationState describes the current state of
+     * the unit operation.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation.UnitOperationState state = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000100); + state_ = 0; + onChanged(); + return this; + } + + private java.util.List< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition> + conditions_ = java.util.Collections.emptyList(); + + private void ensureConditionsIsMutable() { + if (!((bitField0_ & 0x00000200) != 0)) { + conditions_ = + new java.util.ArrayList< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition>( + conditions_); + bitField0_ |= 0x00000200; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationConditionOrBuilder> + conditionsBuilder_; + + /** + * + * + *
+     * Optional. Output only. A set of conditions which indicate the various
+     * conditions this resource can have.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition conditions = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition> + getConditionsList() { + if (conditionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(conditions_); + } else { + return conditionsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. Output only. A set of conditions which indicate the various
+     * conditions this resource can have.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition conditions = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getConditionsCount() { + if (conditionsBuilder_ == null) { + return conditions_.size(); + } else { + return conditionsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. Output only. A set of conditions which indicate the various
+     * conditions this resource can have.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition conditions = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition + getConditions(int index) { + if (conditionsBuilder_ == null) { + return conditions_.get(index); + } else { + return conditionsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. Output only. A set of conditions which indicate the various
+     * conditions this resource can have.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition conditions = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setConditions( + int index, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition value) { + if (conditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConditionsIsMutable(); + conditions_.set(index, value); + onChanged(); + } else { + conditionsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Output only. A set of conditions which indicate the various
+     * conditions this resource can have.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition conditions = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setConditions( + int index, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition.Builder + builderForValue) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.set(index, builderForValue.build()); + onChanged(); + } else { + conditionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Output only. A set of conditions which indicate the various
+     * conditions this resource can have.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition conditions = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addConditions( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition value) { + if (conditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConditionsIsMutable(); + conditions_.add(value); + onChanged(); + } else { + conditionsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. Output only. A set of conditions which indicate the various
+     * conditions this resource can have.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition conditions = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addConditions( + int index, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition value) { + if (conditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConditionsIsMutable(); + conditions_.add(index, value); + onChanged(); + } else { + conditionsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Output only. A set of conditions which indicate the various
+     * conditions this resource can have.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition conditions = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addConditions( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition.Builder + builderForValue) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.add(builderForValue.build()); + onChanged(); + } else { + conditionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Output only. A set of conditions which indicate the various
+     * conditions this resource can have.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition conditions = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addConditions( + int index, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition.Builder + builderForValue) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.add(index, builderForValue.build()); + onChanged(); + } else { + conditionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Output only. A set of conditions which indicate the various
+     * conditions this resource can have.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition conditions = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllConditions( + java.lang.Iterable< + ? extends + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition> + values) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, conditions_); + onChanged(); + } else { + conditionsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. Output only. A set of conditions which indicate the various
+     * conditions this resource can have.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition conditions = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearConditions() { + if (conditionsBuilder_ == null) { + conditions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + } else { + conditionsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. Output only. A set of conditions which indicate the various
+     * conditions this resource can have.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition conditions = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeConditions(int index) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.remove(index); + onChanged(); + } else { + conditionsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. Output only. A set of conditions which indicate the various
+     * conditions this resource can have.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition conditions = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition.Builder + getConditionsBuilder(int index) { + return getConditionsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. Output only. A set of conditions which indicate the various
+     * conditions this resource can have.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition conditions = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationConditionOrBuilder + getConditionsOrBuilder(int index) { + if (conditionsBuilder_ == null) { + return conditions_.get(index); + } else { + return conditionsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. Output only. A set of conditions which indicate the various
+     * conditions this resource can have.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition conditions = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends + com.google.cloud.saasplatform.saasservicemgmt.v1beta1 + .UnitOperationConditionOrBuilder> + getConditionsOrBuilderList() { + if (conditionsBuilder_ != null) { + return conditionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(conditions_); + } + } + + /** + * + * + *
+     * Optional. Output only. A set of conditions which indicate the various
+     * conditions this resource can have.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition conditions = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition.Builder + addConditionsBuilder() { + return getConditionsFieldBuilder() + .addBuilder( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition + .getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Output only. A set of conditions which indicate the various
+     * conditions this resource can have.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition conditions = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition.Builder + addConditionsBuilder(int index) { + return getConditionsFieldBuilder() + .addBuilder( + index, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition + .getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Output only. A set of conditions which indicate the various
+     * conditions this resource can have.
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition conditions = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition.Builder> + getConditionsBuilderList() { + return getConditionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationConditionOrBuilder> + getConditionsFieldBuilder() { + if (conditionsBuilder_ == null) { + conditionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition + .Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1 + .UnitOperationConditionOrBuilder>( + conditions_, ((bitField0_ & 0x00000200) != 0), getParentForChildren(), isClean()); + conditions_ = null; + } + return conditionsBuilder_; + } + + private com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Schedule schedule_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Schedule, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Schedule.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ScheduleOrBuilder> + scheduleBuilder_; + + /** + * + * + *
+     * Optional. When to schedule this operation.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Schedule schedule = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the schedule field is set. + */ + public boolean hasSchedule() { + return ((bitField0_ & 0x00000400) != 0); + } + + /** + * + * + *
+     * Optional. When to schedule this operation.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Schedule schedule = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The schedule. + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Schedule getSchedule() { + if (scheduleBuilder_ == null) { + return schedule_ == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Schedule.getDefaultInstance() + : schedule_; + } else { + return scheduleBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. When to schedule this operation.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Schedule schedule = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSchedule( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Schedule value) { + if (scheduleBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + schedule_ = value; + } else { + scheduleBuilder_.setMessage(value); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. When to schedule this operation.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Schedule schedule = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSchedule( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Schedule.Builder builderForValue) { + if (scheduleBuilder_ == null) { + schedule_ = builderForValue.build(); + } else { + scheduleBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. When to schedule this operation.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Schedule schedule = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeSchedule( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Schedule value) { + if (scheduleBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0) + && schedule_ != null + && schedule_ + != com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Schedule + .getDefaultInstance()) { + getScheduleBuilder().mergeFrom(value); + } else { + schedule_ = value; + } + } else { + scheduleBuilder_.mergeFrom(value); + } + if (schedule_ != null) { + bitField0_ |= 0x00000400; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. When to schedule this operation.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Schedule schedule = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSchedule() { + bitField0_ = (bitField0_ & ~0x00000400); + schedule_ = null; + if (scheduleBuilder_ != null) { + scheduleBuilder_.dispose(); + scheduleBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. When to schedule this operation.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Schedule schedule = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Schedule.Builder + getScheduleBuilder() { + bitField0_ |= 0x00000400; + onChanged(); + return getScheduleFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. When to schedule this operation.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Schedule schedule = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ScheduleOrBuilder + getScheduleOrBuilder() { + if (scheduleBuilder_ != null) { + return scheduleBuilder_.getMessageOrBuilder(); + } else { + return schedule_ == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Schedule.getDefaultInstance() + : schedule_; + } + } + + /** + * + * + *
+     * Optional. When to schedule this operation.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Schedule schedule = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Schedule, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Schedule.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ScheduleOrBuilder> + getScheduleFieldBuilder() { + if (scheduleBuilder_ == null) { + scheduleBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Schedule, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Schedule.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ScheduleOrBuilder>( + getSchedule(), getParentForChildren(), isClean()); + schedule_ = null; + } + return scheduleBuilder_; + } + + private java.lang.Object engineState_ = ""; + + /** + * + * + *
+     * Optional. Output only. The engine state for on-going
+     * deployment engine operation(s).
+     * This field is opaque for external usage.
+     * 
+ * + * + * string engine_state = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The engineState. + */ + public java.lang.String getEngineState() { + java.lang.Object ref = engineState_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + engineState_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Output only. The engine state for on-going
+     * deployment engine operation(s).
+     * This field is opaque for external usage.
+     * 
+ * + * + * string engine_state = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for engineState. + */ + public com.google.protobuf.ByteString getEngineStateBytes() { + java.lang.Object ref = engineState_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + engineState_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Output only. The engine state for on-going
+     * deployment engine operation(s).
+     * This field is opaque for external usage.
+     * 
+ * + * + * string engine_state = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The engineState to set. + * @return This builder for chaining. + */ + public Builder setEngineState(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + engineState_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Output only. The engine state for on-going
+     * deployment engine operation(s).
+     * This field is opaque for external usage.
+     * 
+ * + * + * string engine_state = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearEngineState() { + engineState_ = getDefaultInstance().getEngineState(); + bitField0_ = (bitField0_ & ~0x00000800); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Output only. The engine state for on-going
+     * deployment engine operation(s).
+     * This field is opaque for external usage.
+     * 
+ * + * + * string engine_state = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes for engineState to set. + * @return This builder for chaining. + */ + public Builder setEngineStateBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + engineState_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + private int errorCategory_ = 0; + + /** + * + * + *
+     * Optional. Output only. UnitOperationErrorCategory describe the error
+     * category.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationErrorCategory error_category = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for errorCategory. + */ + @java.lang.Override + public int getErrorCategoryValue() { + return errorCategory_; + } + + /** + * + * + *
+     * Optional. Output only. UnitOperationErrorCategory describe the error
+     * category.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationErrorCategory error_category = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for errorCategory to set. + * @return This builder for chaining. + */ + public Builder setErrorCategoryValue(int value) { + errorCategory_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Output only. UnitOperationErrorCategory describe the error
+     * category.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationErrorCategory error_category = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The errorCategory. + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationErrorCategory + getErrorCategory() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationErrorCategory result = + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationErrorCategory + .forNumber(errorCategory_); + return result == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationErrorCategory + .UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Optional. Output only. UnitOperationErrorCategory describe the error
+     * category.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationErrorCategory error_category = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The errorCategory to set. + * @return This builder for chaining. + */ + public Builder setErrorCategory( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationErrorCategory value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00001000; + errorCategory_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Output only. UnitOperationErrorCategory describe the error
+     * category.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationErrorCategory error_category = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearErrorCategory() { + bitField0_ = (bitField0_ & ~0x00001000); + errorCategory_ = 0; + onChanged(); + return this; + } + + 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() { + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + bitField0_ |= 0x00002000; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
+     * Optional. The labels on the resource, which can be used for categorization.
+     * similar to Kubernetes resource labels.
+     * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** + * + * + *
+     * Optional. The labels on the resource, which can be used for categorization.
+     * similar to Kubernetes resource labels.
+     * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
+     * Optional. The labels on the resource, which can be used for categorization.
+     * similar to Kubernetes resource labels.
+     * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+     * Optional. The labels on the resource, which can be used for categorization.
+     * similar to Kubernetes resource labels.
+     * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00002000); + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + + /** + * + * + *
+     * Optional. The labels on the resource, which can be used for categorization.
+     * similar to Kubernetes resource labels.
+     * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableLabels() { + bitField0_ |= 0x00002000; + return internalGetMutableLabels().getMutableMap(); + } + + /** + * + * + *
+     * Optional. The labels on the resource, which can be used for categorization.
+     * similar to Kubernetes resource labels.
+     * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00002000; + return this; + } + + /** + * + * + *
+     * Optional. The labels on the resource, which can be used for categorization.
+     * similar to Kubernetes resource labels.
+     * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00002000; + return this; + } + + private com.google.protobuf.MapField annotations_; + + private com.google.protobuf.MapField + internalGetAnnotations() { + if (annotations_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AnnotationsDefaultEntryHolder.defaultEntry); + } + return annotations_; + } + + private com.google.protobuf.MapField + internalGetMutableAnnotations() { + if (annotations_ == null) { + annotations_ = + com.google.protobuf.MapField.newMapField(AnnotationsDefaultEntryHolder.defaultEntry); + } + if (!annotations_.isMutable()) { + annotations_ = annotations_.copy(); + } + bitField0_ |= 0x00004000; + onChanged(); + return annotations_; + } + + public int getAnnotationsCount() { + return internalGetAnnotations().getMap().size(); + } + + /** + * + * + *
+     * Optional. Annotations is an unstructured key-value map stored with a
+     * resource that may be set by external tools to store and retrieve arbitrary
+     * metadata. They are not queryable and should be preserved when modifying
+     * objects.
+     *
+     * More info: https://kubernetes.io/docs/user-guide/annotations
+     * 
+ * + * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetAnnotations().getMap().containsKey(key); + } + + /** Use {@link #getAnnotationsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getAnnotations() { + return getAnnotationsMap(); + } + + /** + * + * + *
+     * Optional. Annotations is an unstructured key-value map stored with a
+     * resource that may be set by external tools to store and retrieve arbitrary
+     * metadata. They are not queryable and should be preserved when modifying
+     * objects.
+     *
+     * More info: https://kubernetes.io/docs/user-guide/annotations
+     * 
+ * + * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getAnnotationsMap() { + return internalGetAnnotations().getMap(); + } + + /** + * + * + *
+     * Optional. Annotations is an unstructured key-value map stored with a
+     * resource that may be set by external tools to store and retrieve arbitrary
+     * metadata. They are not queryable and should be preserved when modifying
+     * objects.
+     *
+     * More info: https://kubernetes.io/docs/user-guide/annotations
+     * 
+ * + * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getAnnotationsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+     * Optional. Annotations is an unstructured key-value map stored with a
+     * resource that may be set by external tools to store and retrieve arbitrary
+     * metadata. They are not queryable and should be preserved when modifying
+     * objects.
+     *
+     * More info: https://kubernetes.io/docs/user-guide/annotations
+     * 
+ * + * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearAnnotations() { + bitField0_ = (bitField0_ & ~0x00004000); + internalGetMutableAnnotations().getMutableMap().clear(); + return this; + } + + /** + * + * + *
+     * Optional. Annotations is an unstructured key-value map stored with a
+     * resource that may be set by external tools to store and retrieve arbitrary
+     * metadata. They are not queryable and should be preserved when modifying
+     * objects.
+     *
+     * More info: https://kubernetes.io/docs/user-guide/annotations
+     * 
+ * + * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableAnnotations().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableAnnotations() { + bitField0_ |= 0x00004000; + return internalGetMutableAnnotations().getMutableMap(); + } + + /** + * + * + *
+     * Optional. Annotations is an unstructured key-value map stored with a
+     * resource that may be set by external tools to store and retrieve arbitrary
+     * metadata. They are not queryable and should be preserved when modifying
+     * objects.
+     *
+     * More info: https://kubernetes.io/docs/user-guide/annotations
+     * 
+ * + * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAnnotations(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableAnnotations().getMutableMap().put(key, value); + bitField0_ |= 0x00004000; + return this; + } + + /** + * + * + *
+     * Optional. Annotations is an unstructured key-value map stored with a
+     * resource that may be set by external tools to store and retrieve arbitrary
+     * metadata. They are not queryable and should be preserved when modifying
+     * objects.
+     *
+     * More info: https://kubernetes.io/docs/user-guide/annotations
+     * 
+ * + * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllAnnotations(java.util.Map values) { + internalGetMutableAnnotations().getMutableMap().putAll(values); + bitField0_ |= 0x00004000; + return this; + } + + private java.lang.Object uid_ = ""; + + /** + * + * + *
+     * Output only. The unique identifier of the resource. UID is unique in the
+     * time and space for this resource within the scope of the service. It is
+     * typically generated by the server on successful creation of a resource
+     * and must not be changed. UID is used to uniquely identify resources
+     * with resource name reuses. This should be a UUID4.
+     * 
+ * + * + * string uid = 10201 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The uid. + */ + public java.lang.String getUid() { + java.lang.Object ref = uid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The unique identifier of the resource. UID is unique in the
+     * time and space for this resource within the scope of the service. It is
+     * typically generated by the server on successful creation of a resource
+     * and must not be changed. UID is used to uniquely identify resources
+     * with resource name reuses. This should be a UUID4.
+     * 
+ * + * + * string uid = 10201 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The bytes for uid. + */ + public com.google.protobuf.ByteString getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The unique identifier of the resource. UID is unique in the
+     * time and space for this resource within the scope of the service. It is
+     * typically generated by the server on successful creation of a resource
+     * and must not be changed. UID is used to uniquely identify resources
+     * with resource name reuses. This should be a UUID4.
+     * 
+ * + * + * string uid = 10201 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @param value The uid to set. + * @return This builder for chaining. + */ + public Builder setUid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uid_ = value; + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The unique identifier of the resource. UID is unique in the
+     * time and space for this resource within the scope of the service. It is
+     * typically generated by the server on successful creation of a resource
+     * and must not be changed. UID is used to uniquely identify resources
+     * with resource name reuses. This should be a UUID4.
+     * 
+ * + * + * string uid = 10201 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearUid() { + uid_ = getDefaultInstance().getUid(); + bitField0_ = (bitField0_ & ~0x00008000); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The unique identifier of the resource. UID is unique in the
+     * time and space for this resource within the scope of the service. It is
+     * typically generated by the server on successful creation of a resource
+     * and must not be changed. UID is used to uniquely identify resources
+     * with resource name reuses. This should be a UUID4.
+     * 
+ * + * + * string uid = 10201 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for uid to set. + * @return This builder for chaining. + */ + public Builder setUidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uid_ = value; + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + + private java.lang.Object etag_ = ""; + + /** + * + * + *
+     * Output only. An opaque value that uniquely identifies a version or
+     * generation of a resource. It can be used to confirm that the client
+     * and server agree on the ordering of a resource being written.
+     * 
+ * + * string etag = 10202 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+     * Output only. An opaque value that uniquely identifies a version or
+     * generation of a resource. It can be used to confirm that the client
+     * and server agree on the ordering of a resource being written.
+     * 
+ * + * string etag = 10202 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+     * Output only. An opaque value that uniquely identifies a version or
+     * generation of a resource. It can be used to confirm that the client
+     * and server agree on the ordering of a resource being written.
+     * 
+ * + * string etag = 10202 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. An opaque value that uniquely identifies a version or
+     * generation of a resource. It can be used to confirm that the client
+     * and server agree on the ordering of a resource being written.
+     * 
+ * + * string etag = 10202 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00010000); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. An opaque value that uniquely identifies a version or
+     * generation of a resource. It can be used to confirm that the client
+     * and server agree on the ordering of a resource being written.
+     * 
+ * + * string etag = 10202 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + bitField0_ |= 0x00010000; + 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 timestamp when the resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00020000) != 0); + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.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 timestamp when the resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.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; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00020000) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00020000; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00020000); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00020000; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.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 timestamp when the resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.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 timestamp when the resource was last updated. Any
+     * change to the resource made by users must refresh this value.
+     * Changes to a resource made by the service should refresh this value.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00040000) != 0); + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was last updated. Any
+     * change to the resource made by users must refresh this value.
+     * Changes to a resource made by the service should refresh this value.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.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 timestamp when the resource was last updated. Any
+     * change to the resource made by users must refresh this value.
+     * Changes to a resource made by the service should refresh this value.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.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; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was last updated. Any
+     * change to the resource made by users must refresh this value.
+     * Changes to a resource made by the service should refresh this value.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was last updated. Any
+     * change to the resource made by users must refresh this value.
+     * Changes to a resource made by the service should refresh this value.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00040000) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00040000; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was last updated. Any
+     * change to the resource made by users must refresh this value.
+     * Changes to a resource made by the service should refresh this value.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00040000); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was last updated. Any
+     * change to the resource made by users must refresh this value.
+     * Changes to a resource made by the service should refresh this value.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00040000; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The timestamp when the resource was last updated. Any
+     * change to the resource made by users must refresh this value.
+     * Changes to a resource made by the service should refresh this value.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.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 timestamp when the resource was last updated. Any
+     * change to the resource made by users must refresh this value.
+     * Changes to a resource made by the service should refresh this value.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.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_; + } + + @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.saasplatform.saasservicemgmt.v1beta1.UnitOperation) + } + + // @@protoc_insertion_point(class_scope:google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation) + private static final com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation(); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UnitOperation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.saasplatform.saasservicemgmt.v1beta1.UnitOperation + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UnitOperationCondition.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UnitOperationCondition.java new file mode 100644 index 000000000000..8abf43f6845a --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UnitOperationCondition.java @@ -0,0 +1,1944 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/common.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +/** + * + * + *
+ * UnitOperationCondition describes the status of an Unit Operation.
+ * UnitOperationCondition is individual components that contribute to an overall
+ * state.
+ * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition} + */ +public final class UnitOperationCondition extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition) + UnitOperationConditionOrBuilder { + private static final long serialVersionUID = 0L; + + // Use UnitOperationCondition.newBuilder() to construct. + private UnitOperationCondition(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UnitOperationCondition() { + status_ = 0; + type_ = 0; + message_ = ""; + reason_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UnitOperationCondition(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CommonProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UnitOperationCondition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CommonProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UnitOperationCondition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition.Builder + .class); + } + + /** + * + * + *
+   * Enumeration of condition statuses.
+   * 
+ * + * Protobuf enum {@code + * google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition.Status} + */ + public enum Status implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Condition status is unspecified.
+     * 
+ * + * STATUS_UNSPECIFIED = 0; + */ + STATUS_UNSPECIFIED(0), + /** + * + * + *
+     * Condition is unknown.
+     * 
+ * + * STATUS_UNKNOWN = 1; + */ + STATUS_UNKNOWN(1), + /** + * + * + *
+     * Condition is true.
+     * 
+ * + * STATUS_TRUE = 2; + */ + STATUS_TRUE(2), + /** + * + * + *
+     * Condition is false.
+     * 
+ * + * STATUS_FALSE = 3; + */ + STATUS_FALSE(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Condition status is unspecified.
+     * 
+ * + * STATUS_UNSPECIFIED = 0; + */ + public static final int STATUS_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Condition is unknown.
+     * 
+ * + * STATUS_UNKNOWN = 1; + */ + public static final int STATUS_UNKNOWN_VALUE = 1; + + /** + * + * + *
+     * Condition is true.
+     * 
+ * + * STATUS_TRUE = 2; + */ + public static final int STATUS_TRUE_VALUE = 2; + + /** + * + * + *
+     * Condition is false.
+     * 
+ * + * STATUS_FALSE = 3; + */ + public static final int STATUS_FALSE_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 Status 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 Status forNumber(int value) { + switch (value) { + case 0: + return STATUS_UNSPECIFIED; + case 1: + return STATUS_UNKNOWN; + case 2: + return STATUS_TRUE; + case 3: + return STATUS_FALSE; + 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 Status findValueByNumber(int number) { + return Status.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + 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.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition + .getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Status[] VALUES = values(); + + public static Status 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 Status(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition.Status) + } + + /** + * + * + *
+   * Enumeration of condition types.
+   * 
+ * + * Protobuf enum {@code + * google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition.Type} + */ + public enum Type implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Condition type is unspecified.
+     * 
+ * + * TYPE_UNSPECIFIED = 0; + */ + TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * Condition type is scheduled.
+     * 
+ * + * TYPE_SCHEDULED = 2; + */ + TYPE_SCHEDULED(2), + /** + * + * + *
+     * Condition type is running.
+     * 
+ * + * TYPE_RUNNING = 3; + */ + TYPE_RUNNING(3), + /** + * + * + *
+     * Condition type is succeeded.
+     * 
+ * + * TYPE_SUCCEEDED = 4; + */ + TYPE_SUCCEEDED(4), + /** + * + * + *
+     * Condition type is cancelled.
+     * 
+ * + * TYPE_CANCELLED = 5; + */ + TYPE_CANCELLED(5), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Condition type is unspecified.
+     * 
+ * + * TYPE_UNSPECIFIED = 0; + */ + public static final int TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Condition type is scheduled.
+     * 
+ * + * TYPE_SCHEDULED = 2; + */ + public static final int TYPE_SCHEDULED_VALUE = 2; + + /** + * + * + *
+     * Condition type is running.
+     * 
+ * + * TYPE_RUNNING = 3; + */ + public static final int TYPE_RUNNING_VALUE = 3; + + /** + * + * + *
+     * Condition type is succeeded.
+     * 
+ * + * TYPE_SUCCEEDED = 4; + */ + public static final int TYPE_SUCCEEDED_VALUE = 4; + + /** + * + * + *
+     * Condition type is cancelled.
+     * 
+ * + * TYPE_CANCELLED = 5; + */ + public static final int TYPE_CANCELLED_VALUE = 5; + + 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 Type 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 Type forNumber(int value) { + switch (value) { + case 0: + return TYPE_UNSPECIFIED; + case 2: + return TYPE_SCHEDULED; + case 3: + return TYPE_RUNNING; + case 4: + return TYPE_SUCCEEDED; + case 5: + return TYPE_CANCELLED; + 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 Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + 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.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition + .getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final Type[] VALUES = values(); + + public static Type 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 Type(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition.Type) + } + + private int bitField0_; + public static final int STATUS_FIELD_NUMBER = 1; + private int status_ = 0; + + /** + * + * + *
+   * Required. Status of the condition.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition.Status status = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override + public int getStatusValue() { + return status_; + } + + /** + * + * + *
+   * Required. Status of the condition.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition.Status status = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The status. + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition.Status + getStatus() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition.Status result = + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition.Status + .forNumber(status_); + return result == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition.Status + .UNRECOGNIZED + : result; + } + + public static final int TYPE_FIELD_NUMBER = 2; + private int type_ = 0; + + /** + * + * + *
+   * Required. Type of the condition.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + + /** + * + * + *
+   * Required. Type of the condition.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition.Type + getType() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition.Type result = + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition.Type.forNumber( + type_); + return result == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition.Type + .UNRECOGNIZED + : result; + } + + public static final int LAST_TRANSITION_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp lastTransitionTime_; + + /** + * + * + *
+   * Required. Last time the condition transited from one status to another.
+   * 
+ * + * + * .google.protobuf.Timestamp last_transition_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the lastTransitionTime field is set. + */ + @java.lang.Override + public boolean hasLastTransitionTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. Last time the condition transited from one status to another.
+   * 
+ * + * + * .google.protobuf.Timestamp last_transition_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The lastTransitionTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getLastTransitionTime() { + return lastTransitionTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastTransitionTime_; + } + + /** + * + * + *
+   * Required. Last time the condition transited from one status to another.
+   * 
+ * + * + * .google.protobuf.Timestamp last_transition_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getLastTransitionTimeOrBuilder() { + return lastTransitionTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastTransitionTime_; + } + + public static final int MESSAGE_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object message_ = ""; + + /** + * + * + *
+   * Required. Human readable message indicating details about the last
+   * transition.
+   * 
+ * + * string message = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The message. + */ + @java.lang.Override + public java.lang.String getMessage() { + java.lang.Object ref = message_; + 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(); + message_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. Human readable message indicating details about the last
+   * transition.
+   * 
+ * + * string message = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for message. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REASON_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object reason_ = ""; + + /** + * + * + *
+   * Required. Brief reason for the condition's last transition.
+   * 
+ * + * string reason = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The reason. + */ + @java.lang.Override + public java.lang.String getReason() { + java.lang.Object ref = reason_; + 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(); + reason_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. Brief reason for the condition's last transition.
+   * 
+ * + * string reason = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for reason. + */ + @java.lang.Override + public com.google.protobuf.ByteString getReasonBytes() { + java.lang.Object ref = reason_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + reason_ = 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 (status_ + != com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition.Status + .STATUS_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, status_); + } + if (type_ + != com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition.Type + .TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, type_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getLastTransitionTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, message_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reason_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, reason_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (status_ + != com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition.Status + .STATUS_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, status_); + } + if (type_ + != com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition.Type + .TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, type_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getLastTransitionTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, message_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reason_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, reason_); + } + size += getUnknownFields().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.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition)) { + return super.equals(obj); + } + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition other = + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition) obj; + + if (status_ != other.status_) return false; + if (type_ != other.type_) return false; + if (hasLastTransitionTime() != other.hasLastTransitionTime()) return false; + if (hasLastTransitionTime()) { + if (!getLastTransitionTime().equals(other.getLastTransitionTime())) return false; + } + if (!getMessage().equals(other.getMessage())) return false; + if (!getReason().equals(other.getReason())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + if (hasLastTransitionTime()) { + hash = (37 * hash) + LAST_TRANSITION_TIME_FIELD_NUMBER; + hash = (53 * hash) + getLastTransitionTime().hashCode(); + } + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + hash = (37 * hash) + REASON_FIELD_NUMBER; + hash = (53 * hash) + getReason().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition + 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.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition + 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.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition + 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.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition + 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.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition + 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.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition 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; + } + + /** + * + * + *
+   * UnitOperationCondition describes the status of an Unit Operation.
+   * UnitOperationCondition is individual components that contribute to an overall
+   * state.
+   * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition) + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationConditionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CommonProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UnitOperationCondition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CommonProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UnitOperationCondition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition.Builder + .class); + } + + // Construct using + // com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getLastTransitionTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + status_ = 0; + type_ = 0; + lastTransitionTime_ = null; + if (lastTransitionTimeBuilder_ != null) { + lastTransitionTimeBuilder_.dispose(); + lastTransitionTimeBuilder_ = null; + } + message_ = ""; + reason_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CommonProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UnitOperationCondition_descriptor; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition + getDefaultInstanceForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition build() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition + buildPartial() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition result = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.status_ = status_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.type_ = type_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.lastTransitionTime_ = + lastTransitionTimeBuilder_ == null + ? lastTransitionTime_ + : lastTransitionTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.message_ = message_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.reason_ = reason_; + } + result.bitField0_ |= to_bitField0_; + } + + @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.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition) { + return mergeFrom( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition other) { + if (other + == com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition + .getDefaultInstance()) return this; + if (other.status_ != 0) { + setStatusValue(other.getStatusValue()); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (other.hasLastTransitionTime()) { + mergeLastTransitionTime(other.getLastTransitionTime()); + } + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getReason().isEmpty()) { + reason_ = other.reason_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + status_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + type_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + input.readMessage( + getLastTransitionTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + message_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + reason_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int status_ = 0; + + /** + * + * + *
+     * Required. Status of the condition.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition.Status status = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override + public int getStatusValue() { + return status_; + } + + /** + * + * + *
+     * Required. Status of the condition.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition.Status status = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for status to set. + * @return This builder for chaining. + */ + public Builder setStatusValue(int value) { + status_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Status of the condition.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition.Status status = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The status. + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition.Status + getStatus() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition.Status result = + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition.Status + .forNumber(status_); + return result == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition.Status + .UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Required. Status of the condition.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition.Status status = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The status to set. + * @return This builder for chaining. + */ + public Builder setStatus( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition.Status value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + status_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Status of the condition.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition.Status status = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearStatus() { + bitField0_ = (bitField0_ & ~0x00000001); + status_ = 0; + onChanged(); + return this; + } + + private int type_ = 0; + + /** + * + * + *
+     * Required. Type of the condition.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + + /** + * + * + *
+     * Required. Type of the condition.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. + */ + public Builder setTypeValue(int value) { + type_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Type of the condition.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition.Type + getType() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition.Type result = + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition.Type + .forNumber(type_); + return result == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition.Type + .UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Required. Type of the condition.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition.Type value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + type_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Type of the condition.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000002); + type_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp lastTransitionTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + lastTransitionTimeBuilder_; + + /** + * + * + *
+     * Required. Last time the condition transited from one status to another.
+     * 
+ * + * + * .google.protobuf.Timestamp last_transition_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the lastTransitionTime field is set. + */ + public boolean hasLastTransitionTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Required. Last time the condition transited from one status to another.
+     * 
+ * + * + * .google.protobuf.Timestamp last_transition_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The lastTransitionTime. + */ + public com.google.protobuf.Timestamp getLastTransitionTime() { + if (lastTransitionTimeBuilder_ == null) { + return lastTransitionTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastTransitionTime_; + } else { + return lastTransitionTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. Last time the condition transited from one status to another.
+     * 
+ * + * + * .google.protobuf.Timestamp last_transition_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setLastTransitionTime(com.google.protobuf.Timestamp value) { + if (lastTransitionTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + lastTransitionTime_ = value; + } else { + lastTransitionTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Last time the condition transited from one status to another.
+     * 
+ * + * + * .google.protobuf.Timestamp last_transition_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setLastTransitionTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (lastTransitionTimeBuilder_ == null) { + lastTransitionTime_ = builderForValue.build(); + } else { + lastTransitionTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Last time the condition transited from one status to another.
+     * 
+ * + * + * .google.protobuf.Timestamp last_transition_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeLastTransitionTime(com.google.protobuf.Timestamp value) { + if (lastTransitionTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && lastTransitionTime_ != null + && lastTransitionTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getLastTransitionTimeBuilder().mergeFrom(value); + } else { + lastTransitionTime_ = value; + } + } else { + lastTransitionTimeBuilder_.mergeFrom(value); + } + if (lastTransitionTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. Last time the condition transited from one status to another.
+     * 
+ * + * + * .google.protobuf.Timestamp last_transition_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearLastTransitionTime() { + bitField0_ = (bitField0_ & ~0x00000004); + lastTransitionTime_ = null; + if (lastTransitionTimeBuilder_ != null) { + lastTransitionTimeBuilder_.dispose(); + lastTransitionTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Last time the condition transited from one status to another.
+     * 
+ * + * + * .google.protobuf.Timestamp last_transition_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.Timestamp.Builder getLastTransitionTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getLastTransitionTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. Last time the condition transited from one status to another.
+     * 
+ * + * + * .google.protobuf.Timestamp last_transition_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.TimestampOrBuilder getLastTransitionTimeOrBuilder() { + if (lastTransitionTimeBuilder_ != null) { + return lastTransitionTimeBuilder_.getMessageOrBuilder(); + } else { + return lastTransitionTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastTransitionTime_; + } + } + + /** + * + * + *
+     * Required. Last time the condition transited from one status to another.
+     * 
+ * + * + * .google.protobuf.Timestamp last_transition_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getLastTransitionTimeFieldBuilder() { + if (lastTransitionTimeBuilder_ == null) { + lastTransitionTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getLastTransitionTime(), getParentForChildren(), isClean()); + lastTransitionTime_ = null; + } + return lastTransitionTimeBuilder_; + } + + private java.lang.Object message_ = ""; + + /** + * + * + *
+     * Required. Human readable message indicating details about the last
+     * transition.
+     * 
+ * + * string message = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The message. + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. Human readable message indicating details about the last
+     * transition.
+     * 
+ * + * string message = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for message. + */ + public com.google.protobuf.ByteString getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. Human readable message indicating details about the last
+     * transition.
+     * 
+ * + * string message = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The message to set. + * @return This builder for chaining. + */ + public Builder setMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + message_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Human readable message indicating details about the last
+     * transition.
+     * 
+ * + * string message = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearMessage() { + message_ = getDefaultInstance().getMessage(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Human readable message indicating details about the last
+     * transition.
+     * 
+ * + * string message = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for message to set. + * @return This builder for chaining. + */ + public Builder setMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + message_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object reason_ = ""; + + /** + * + * + *
+     * Required. Brief reason for the condition's last transition.
+     * 
+ * + * string reason = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The reason. + */ + public java.lang.String getReason() { + java.lang.Object ref = reason_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + reason_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. Brief reason for the condition's last transition.
+     * 
+ * + * string reason = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for reason. + */ + public com.google.protobuf.ByteString getReasonBytes() { + java.lang.Object ref = reason_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + reason_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. Brief reason for the condition's last transition.
+     * 
+ * + * string reason = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The reason to set. + * @return This builder for chaining. + */ + public Builder setReason(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + reason_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Brief reason for the condition's last transition.
+     * 
+ * + * string reason = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearReason() { + reason_ = getDefaultInstance().getReason(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Brief reason for the condition's last transition.
+     * 
+ * + * string reason = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for reason to set. + * @return This builder for chaining. + */ + public Builder setReasonBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + reason_ = value; + bitField0_ |= 0x00000010; + 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.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition) + } + + // @@protoc_insertion_point(class_scope:google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition) + private static final com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition(); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UnitOperationCondition parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UnitOperationConditionOrBuilder.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UnitOperationConditionOrBuilder.java new file mode 100644 index 000000000000..647d9bb96f46 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UnitOperationConditionOrBuilder.java @@ -0,0 +1,183 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/common.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +public interface UnitOperationConditionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Status of the condition.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition.Status status = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for status. + */ + int getStatusValue(); + + /** + * + * + *
+   * Required. Status of the condition.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition.Status status = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The status. + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition.Status getStatus(); + + /** + * + * + *
+   * Required. Type of the condition.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + + /** + * + * + *
+   * Required. Type of the condition.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition.Type type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The type. + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition.Type getType(); + + /** + * + * + *
+   * Required. Last time the condition transited from one status to another.
+   * 
+ * + * + * .google.protobuf.Timestamp last_transition_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the lastTransitionTime field is set. + */ + boolean hasLastTransitionTime(); + + /** + * + * + *
+   * Required. Last time the condition transited from one status to another.
+   * 
+ * + * + * .google.protobuf.Timestamp last_transition_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The lastTransitionTime. + */ + com.google.protobuf.Timestamp getLastTransitionTime(); + + /** + * + * + *
+   * Required. Last time the condition transited from one status to another.
+   * 
+ * + * + * .google.protobuf.Timestamp last_transition_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.TimestampOrBuilder getLastTransitionTimeOrBuilder(); + + /** + * + * + *
+   * Required. Human readable message indicating details about the last
+   * transition.
+   * 
+ * + * string message = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The message. + */ + java.lang.String getMessage(); + + /** + * + * + *
+   * Required. Human readable message indicating details about the last
+   * transition.
+   * 
+ * + * string message = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for message. + */ + com.google.protobuf.ByteString getMessageBytes(); + + /** + * + * + *
+   * Required. Brief reason for the condition's last transition.
+   * 
+ * + * string reason = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The reason. + */ + java.lang.String getReason(); + + /** + * + * + *
+   * Required. Brief reason for the condition's last transition.
+   * 
+ * + * string reason = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for reason. + */ + com.google.protobuf.ByteString getReasonBytes(); +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UnitOperationErrorCategory.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UnitOperationErrorCategory.java new file mode 100644 index 000000000000..5d071df52a20 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UnitOperationErrorCategory.java @@ -0,0 +1,257 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/common.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +/** + * + * + *
+ * UnitOperationErrorCategory describes the error category of the unit
+ * operation.
+ * 
+ * + * Protobuf enum {@code + * google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationErrorCategory} + */ +public enum UnitOperationErrorCategory implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Unit operation error category is unspecified
+   * 
+ * + * UNIT_OPERATION_ERROR_CATEGORY_UNSPECIFIED = 0; + */ + UNIT_OPERATION_ERROR_CATEGORY_UNSPECIFIED(0), + /** + * + * + *
+   * Unit operation error category is not applicable, or it is not an error
+   * 
+ * + * NOT_APPLICABLE = 1; + */ + NOT_APPLICABLE(1), + /** + * + * + *
+   * Unit operation error category is fatal
+   * 
+ * + * FATAL = 2; + */ + FATAL(2), + /** + * + * + *
+   * Unit operation error category is retriable
+   * 
+ * + * RETRIABLE = 3; + */ + RETRIABLE(3), + /** + * + * + *
+   * Unit operation error category is ignorable
+   * 
+ * + * IGNORABLE = 4; + */ + IGNORABLE(4), + /** + * + * + *
+   * Unit operation error category is standard, counts towards Rollout error
+   * budget
+   * 
+ * + * STANDARD = 5; + */ + STANDARD(5), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Unit operation error category is unspecified
+   * 
+ * + * UNIT_OPERATION_ERROR_CATEGORY_UNSPECIFIED = 0; + */ + public static final int UNIT_OPERATION_ERROR_CATEGORY_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+   * Unit operation error category is not applicable, or it is not an error
+   * 
+ * + * NOT_APPLICABLE = 1; + */ + public static final int NOT_APPLICABLE_VALUE = 1; + + /** + * + * + *
+   * Unit operation error category is fatal
+   * 
+ * + * FATAL = 2; + */ + public static final int FATAL_VALUE = 2; + + /** + * + * + *
+   * Unit operation error category is retriable
+   * 
+ * + * RETRIABLE = 3; + */ + public static final int RETRIABLE_VALUE = 3; + + /** + * + * + *
+   * Unit operation error category is ignorable
+   * 
+ * + * IGNORABLE = 4; + */ + public static final int IGNORABLE_VALUE = 4; + + /** + * + * + *
+   * Unit operation error category is standard, counts towards Rollout error
+   * budget
+   * 
+ * + * STANDARD = 5; + */ + public static final int STANDARD_VALUE = 5; + + 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 UnitOperationErrorCategory 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 UnitOperationErrorCategory forNumber(int value) { + switch (value) { + case 0: + return UNIT_OPERATION_ERROR_CATEGORY_UNSPECIFIED; + case 1: + return NOT_APPLICABLE; + case 2: + return FATAL; + case 3: + return RETRIABLE; + case 4: + return IGNORABLE; + case 5: + return STANDARD; + 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 UnitOperationErrorCategory findValueByNumber(int number) { + return UnitOperationErrorCategory.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + 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.saasplatform.saasservicemgmt.v1beta1.CommonProto.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final UnitOperationErrorCategory[] VALUES = values(); + + public static UnitOperationErrorCategory 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 UnitOperationErrorCategory(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationErrorCategory) +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UnitOperationName.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UnitOperationName.java new file mode 100644 index 000000000000..cc8bdffd14bf --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UnitOperationName.java @@ -0,0 +1,227 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1; + +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; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class UnitOperationName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_UNITOPERATION = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/unitOperations/{unitOperation}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String unitOperation; + + @Deprecated + protected UnitOperationName() { + project = null; + location = null; + unitOperation = null; + } + + private UnitOperationName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + unitOperation = Preconditions.checkNotNull(builder.getUnitOperation()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getUnitOperation() { + return unitOperation; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static UnitOperationName of(String project, String location, String unitOperation) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setUnitOperation(unitOperation) + .build(); + } + + public static String format(String project, String location, String unitOperation) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setUnitOperation(unitOperation) + .build() + .toString(); + } + + public static UnitOperationName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_UNITOPERATION.validatedMatch( + formattedString, "UnitOperationName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("unitOperation")); + } + + 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 (UnitOperationName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_UNITOPERATION.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (unitOperation != null) { + fieldMapBuilder.put("unitOperation", unitOperation); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_UNITOPERATION.instantiate( + "project", project, "location", location, "unitOperation", unitOperation); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + UnitOperationName that = ((UnitOperationName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.unitOperation, that.unitOperation); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(unitOperation); + return h; + } + + /** Builder for projects/{project}/locations/{location}/unitOperations/{unitOperation}. */ + public static class Builder { + private String project; + private String location; + private String unitOperation; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getUnitOperation() { + return unitOperation; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setUnitOperation(String unitOperation) { + this.unitOperation = unitOperation; + return this; + } + + private Builder(UnitOperationName unitOperationName) { + this.project = unitOperationName.project; + this.location = unitOperationName.location; + this.unitOperation = unitOperationName.unitOperation; + } + + public UnitOperationName build() { + return new UnitOperationName(this); + } + } +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UnitOperationOrBuilder.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UnitOperationOrBuilder.java new file mode 100644 index 000000000000..4dc4935c1e55 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UnitOperationOrBuilder.java @@ -0,0 +1,797 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_resources.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +public interface UnitOperationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation) + com.google.protobuf.MessageOrBuilder { + + /** + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Provision provision = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the provision field is set. + */ + boolean hasProvision(); + + /** + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Provision provision = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The provision. + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Provision getProvision(); + + /** + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Provision provision = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ProvisionOrBuilder getProvisionOrBuilder(); + + /** + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Upgrade upgrade = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the upgrade field is set. + */ + boolean hasUpgrade(); + + /** + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Upgrade upgrade = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The upgrade. + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Upgrade getUpgrade(); + + /** + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Upgrade upgrade = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpgradeOrBuilder getUpgradeOrBuilder(); + + /** + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Deprovision deprovision = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the deprovision field is set. + */ + boolean hasDeprovision(); + + /** + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Deprovision deprovision = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The deprovision. + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Deprovision getDeprovision(); + + /** + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Deprovision deprovision = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeprovisionOrBuilder + getDeprovisionOrBuilder(); + + /** + * + * + *
+   * Identifier. The resource name (full URI of the resource) following the
+   * standard naming scheme:
+   *
+   *  "projects/{project}/locations/{location}/unitOperations/{unitOperation}"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Identifier. The resource name (full URI of the resource) following the
+   * standard naming scheme:
+   *
+   *  "projects/{project}/locations/{location}/unitOperations/{unitOperation}"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. Immutable. The Unit a given UnitOperation will act upon.
+   * 
+ * + * + * string unit = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The unit. + */ + java.lang.String getUnit(); + + /** + * + * + *
+   * Required. Immutable. The Unit a given UnitOperation will act upon.
+   * 
+ * + * + * string unit = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for unit. + */ + com.google.protobuf.ByteString getUnitBytes(); + + /** + * + * + *
+   * Optional. Reference to parent resource: UnitOperation. If an operation
+   * needs to create other operations as part of its workflow, each of the child
+   * operations should have this field set to the parent. This can be used for
+   * tracing. (Optional)
+   * 
+ * + * + * string parent_unit_operation = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The parentUnitOperation. + */ + java.lang.String getParentUnitOperation(); + + /** + * + * + *
+   * Optional. Reference to parent resource: UnitOperation. If an operation
+   * needs to create other operations as part of its workflow, each of the child
+   * operations should have this field set to the parent. This can be used for
+   * tracing. (Optional)
+   * 
+ * + * + * string parent_unit_operation = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parentUnitOperation. + */ + com.google.protobuf.ByteString getParentUnitOperationBytes(); + + /** + * + * + *
+   * Optional. Specifies which rollout created this Unit Operation. This cannot
+   * be modified and is used for filtering purposes only. If a dependent unit
+   * and unit operation are created as part of another unit operation, they will
+   * use the same rolloutId.
+   * 
+ * + * + * string rollout = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The rollout. + */ + java.lang.String getRollout(); + + /** + * + * + *
+   * Optional. Specifies which rollout created this Unit Operation. This cannot
+   * be modified and is used for filtering purposes only. If a dependent unit
+   * and unit operation are created as part of another unit operation, they will
+   * use the same rolloutId.
+   * 
+ * + * + * string rollout = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for rollout. + */ + com.google.protobuf.ByteString getRolloutBytes(); + + /** + * + * + *
+   * Optional. When true, attempt to cancel the operation. Cancellation may fail
+   * if the operation is already executing. (Optional)
+   * 
+ * + * bool cancel = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The cancel. + */ + boolean getCancel(); + + /** + * + * + *
+   * Optional. Output only. UnitOperationState describes the current state of
+   * the unit operation.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation.UnitOperationState state = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
+   * Optional. Output only. UnitOperationState describes the current state of
+   * the unit operation.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation.UnitOperationState state = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation.UnitOperationState getState(); + + /** + * + * + *
+   * Optional. Output only. A set of conditions which indicate the various
+   * conditions this resource can have.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition conditions = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getConditionsList(); + + /** + * + * + *
+   * Optional. Output only. A set of conditions which indicate the various
+   * conditions this resource can have.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition conditions = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition getConditions( + int index); + + /** + * + * + *
+   * Optional. Output only. A set of conditions which indicate the various
+   * conditions this resource can have.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition conditions = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getConditionsCount(); + + /** + * + * + *
+   * Optional. Output only. A set of conditions which indicate the various
+   * conditions this resource can have.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition conditions = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List< + ? extends + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationConditionOrBuilder> + getConditionsOrBuilderList(); + + /** + * + * + *
+   * Optional. Output only. A set of conditions which indicate the various
+   * conditions this resource can have.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationCondition conditions = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationConditionOrBuilder + getConditionsOrBuilder(int index); + + /** + * + * + *
+   * Optional. When to schedule this operation.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Schedule schedule = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the schedule field is set. + */ + boolean hasSchedule(); + + /** + * + * + *
+   * Optional. When to schedule this operation.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Schedule schedule = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The schedule. + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Schedule getSchedule(); + + /** + * + * + *
+   * Optional. When to schedule this operation.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Schedule schedule = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ScheduleOrBuilder getScheduleOrBuilder(); + + /** + * + * + *
+   * Optional. Output only. The engine state for on-going
+   * deployment engine operation(s).
+   * This field is opaque for external usage.
+   * 
+ * + * + * string engine_state = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The engineState. + */ + java.lang.String getEngineState(); + + /** + * + * + *
+   * Optional. Output only. The engine state for on-going
+   * deployment engine operation(s).
+   * This field is opaque for external usage.
+   * 
+ * + * + * string engine_state = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for engineState. + */ + com.google.protobuf.ByteString getEngineStateBytes(); + + /** + * + * + *
+   * Optional. Output only. UnitOperationErrorCategory describe the error
+   * category.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationErrorCategory error_category = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for errorCategory. + */ + int getErrorCategoryValue(); + + /** + * + * + *
+   * Optional. Output only. UnitOperationErrorCategory describe the error
+   * category.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationErrorCategory error_category = 15 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The errorCategory. + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationErrorCategory + getErrorCategory(); + + /** + * + * + *
+   * Optional. The labels on the resource, which can be used for categorization.
+   * similar to Kubernetes resource labels.
+   * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getLabelsCount(); + + /** + * + * + *
+   * Optional. The labels on the resource, which can be used for categorization.
+   * similar to Kubernetes resource labels.
+   * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsLabels(java.lang.String key); + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + + /** + * + * + *
+   * Optional. The labels on the resource, which can be used for categorization.
+   * similar to Kubernetes resource labels.
+   * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map getLabelsMap(); + + /** + * + * + *
+   * Optional. The labels on the resource, which can be used for categorization.
+   * similar to Kubernetes resource labels.
+   * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
+   * Optional. The labels on the resource, which can be used for categorization.
+   * similar to Kubernetes resource labels.
+   * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
+   * Optional. Annotations is an unstructured key-value map stored with a
+   * resource that may be set by external tools to store and retrieve arbitrary
+   * metadata. They are not queryable and should be preserved when modifying
+   * objects.
+   *
+   * More info: https://kubernetes.io/docs/user-guide/annotations
+   * 
+ * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getAnnotationsCount(); + + /** + * + * + *
+   * Optional. Annotations is an unstructured key-value map stored with a
+   * resource that may be set by external tools to store and retrieve arbitrary
+   * metadata. They are not queryable and should be preserved when modifying
+   * objects.
+   *
+   * More info: https://kubernetes.io/docs/user-guide/annotations
+   * 
+ * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsAnnotations(java.lang.String key); + + /** Use {@link #getAnnotationsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getAnnotations(); + + /** + * + * + *
+   * Optional. Annotations is an unstructured key-value map stored with a
+   * resource that may be set by external tools to store and retrieve arbitrary
+   * metadata. They are not queryable and should be preserved when modifying
+   * objects.
+   *
+   * More info: https://kubernetes.io/docs/user-guide/annotations
+   * 
+ * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map getAnnotationsMap(); + + /** + * + * + *
+   * Optional. Annotations is an unstructured key-value map stored with a
+   * resource that may be set by external tools to store and retrieve arbitrary
+   * metadata. They are not queryable and should be preserved when modifying
+   * objects.
+   *
+   * More info: https://kubernetes.io/docs/user-guide/annotations
+   * 
+ * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + java.lang.String getAnnotationsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
+   * Optional. Annotations is an unstructured key-value map stored with a
+   * resource that may be set by external tools to store and retrieve arbitrary
+   * metadata. They are not queryable and should be preserved when modifying
+   * objects.
+   *
+   * More info: https://kubernetes.io/docs/user-guide/annotations
+   * 
+ * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.lang.String getAnnotationsOrThrow(java.lang.String key); + + /** + * + * + *
+   * Output only. The unique identifier of the resource. UID is unique in the
+   * time and space for this resource within the scope of the service. It is
+   * typically generated by the server on successful creation of a resource
+   * and must not be changed. UID is used to uniquely identify resources
+   * with resource name reuses. This should be a UUID4.
+   * 
+ * + * + * string uid = 10201 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The uid. + */ + java.lang.String getUid(); + + /** + * + * + *
+   * Output only. The unique identifier of the resource. UID is unique in the
+   * time and space for this resource within the scope of the service. It is
+   * typically generated by the server on successful creation of a resource
+   * and must not be changed. UID is used to uniquely identify resources
+   * with resource name reuses. This should be a UUID4.
+   * 
+ * + * + * string uid = 10201 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The bytes for uid. + */ + com.google.protobuf.ByteString getUidBytes(); + + /** + * + * + *
+   * Output only. An opaque value that uniquely identifies a version or
+   * generation of a resource. It can be used to confirm that the client
+   * and server agree on the ordering of a resource being written.
+   * 
+ * + * string etag = 10202 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The etag. + */ + java.lang.String getEtag(); + + /** + * + * + *
+   * Output only. An opaque value that uniquely identifies a version or
+   * generation of a resource. It can be used to confirm that the client
+   * and server agree on the ordering of a resource being written.
+   * 
+ * + * string etag = 10202 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); + + /** + * + * + *
+   * Output only. The timestamp when the resource was created.
+   * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
+   * Output only. The timestamp when the resource was created.
+   * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
+   * Output only. The timestamp when the resource was created.
+   * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. The timestamp when the resource was last updated. Any
+   * change to the resource made by users must refresh this value.
+   * Changes to a resource made by the service should refresh this value.
+   * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
+   * Output only. The timestamp when the resource was last updated. Any
+   * change to the resource made by users must refresh this value.
+   * Changes to a resource made by the service should refresh this value.
+   * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
+   * Output only. The timestamp when the resource was last updated. Any
+   * change to the resource made by users must refresh this value.
+   * Changes to a resource made by the service should refresh this value.
+   * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation.UnitOperationTypeCase + getUnitOperationTypeCase(); +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UnitOrBuilder.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UnitOrBuilder.java new file mode 100644 index 000000000000..d57e3b00e90b --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UnitOrBuilder.java @@ -0,0 +1,1245 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_resources.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +public interface UnitOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Identifier. The resource name (full URI of the resource) following the
+   * standard naming scheme:
+   *
+   *   "projects/{project}/locations/{location}/units/{unit}"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Identifier. The resource name (full URI of the resource) following the
+   * standard naming scheme:
+   *
+   *   "projects/{project}/locations/{location}/units/{unit}"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. Reference to the UnitKind this Unit belongs to. Immutable once
+   * set.
+   * 
+ * + * + * string unit_kind = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The unitKind. + */ + java.lang.String getUnitKind(); + + /** + * + * + *
+   * Optional. Reference to the UnitKind this Unit belongs to. Immutable once
+   * set.
+   * 
+ * + * + * string unit_kind = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for unitKind. + */ + com.google.protobuf.ByteString getUnitKindBytes(); + + /** + * + * + *
+   * Optional. Output only. The current Release object for this Unit.
+   * 
+ * + * + * string release = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The release. + */ + java.lang.String getRelease(); + + /** + * + * + *
+   * Optional. Output only. The current Release object for this Unit.
+   * 
+ * + * + * string release = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for release. + */ + com.google.protobuf.ByteString getReleaseBytes(); + + /** + * + * + *
+   * Optional. Reference to the Saas Tenant resource this unit belongs to. This
+   * for example informs the maintenance policies to use for scheduling future
+   * updates on a unit. (optional and immutable once created)
+   * 
+ * + * + * string tenant = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The tenant. + */ + java.lang.String getTenant(); + + /** + * + * + *
+   * Optional. Reference to the Saas Tenant resource this unit belongs to. This
+   * for example informs the maintenance policies to use for scheduling future
+   * updates on a unit. (optional and immutable once created)
+   * 
+ * + * + * string tenant = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for tenant. + */ + com.google.protobuf.ByteString getTenantBytes(); + + /** + * + * + *
+   * Optional. Output only. List of concurrent UnitOperations that are operating
+   * on this Unit.
+   * 
+ * + * + * repeated string ongoing_operations = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the ongoingOperations. + */ + java.util.List getOngoingOperationsList(); + + /** + * + * + *
+   * Optional. Output only. List of concurrent UnitOperations that are operating
+   * on this Unit.
+   * 
+ * + * + * repeated string ongoing_operations = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The count of ongoingOperations. + */ + int getOngoingOperationsCount(); + + /** + * + * + *
+   * Optional. Output only. List of concurrent UnitOperations that are operating
+   * on this Unit.
+   * 
+ * + * + * repeated string ongoing_operations = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The ongoingOperations at the given index. + */ + java.lang.String getOngoingOperations(int index); + + /** + * + * + *
+   * Optional. Output only. List of concurrent UnitOperations that are operating
+   * on this Unit.
+   * 
+ * + * + * repeated string ongoing_operations = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the ongoingOperations at the given index. + */ + com.google.protobuf.ByteString getOngoingOperationsBytes(int index); + + /** + * + * + *
+   * Optional. Output only. List of pending (wait to be executed) UnitOperations
+   * for this unit.
+   * 
+ * + * + * repeated string pending_operations = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the pendingOperations. + */ + java.util.List getPendingOperationsList(); + + /** + * + * + *
+   * Optional. Output only. List of pending (wait to be executed) UnitOperations
+   * for this unit.
+   * 
+ * + * + * repeated string pending_operations = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The count of pendingOperations. + */ + int getPendingOperationsCount(); + + /** + * + * + *
+   * Optional. Output only. List of pending (wait to be executed) UnitOperations
+   * for this unit.
+   * 
+ * + * + * repeated string pending_operations = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The pendingOperations at the given index. + */ + java.lang.String getPendingOperations(int index); + + /** + * + * + *
+   * Optional. Output only. List of pending (wait to be executed) UnitOperations
+   * for this unit.
+   * 
+ * + * + * repeated string pending_operations = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the pendingOperations at the given index. + */ + com.google.protobuf.ByteString getPendingOperationsBytes(int index); + + /** + * + * + *
+   * Optional. Output only. List of scheduled UnitOperations for this unit.
+   * 
+ * + * + * repeated string scheduled_operations = 24 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the scheduledOperations. + */ + java.util.List getScheduledOperationsList(); + + /** + * + * + *
+   * Optional. Output only. List of scheduled UnitOperations for this unit.
+   * 
+ * + * + * repeated string scheduled_operations = 24 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The count of scheduledOperations. + */ + int getScheduledOperationsCount(); + + /** + * + * + *
+   * Optional. Output only. List of scheduled UnitOperations for this unit.
+   * 
+ * + * + * repeated string scheduled_operations = 24 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The scheduledOperations at the given index. + */ + java.lang.String getScheduledOperations(int index); + + /** + * + * + *
+   * Optional. Output only. List of scheduled UnitOperations for this unit.
+   * 
+ * + * + * repeated string scheduled_operations = 24 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the scheduledOperations at the given index. + */ + com.google.protobuf.ByteString getScheduledOperationsBytes(int index); + + /** + * + * + *
+   * Optional. Output only. List of Units that depend on this unit. Unit can
+   * only be deprovisioned if this list is empty. Maximum 1000.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency dependents = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getDependentsList(); + + /** + * + * + *
+   * Optional. Output only. List of Units that depend on this unit. Unit can
+   * only be deprovisioned if this list is empty. Maximum 1000.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency dependents = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency getDependents(int index); + + /** + * + * + *
+   * Optional. Output only. List of Units that depend on this unit. Unit can
+   * only be deprovisioned if this list is empty. Maximum 1000.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency dependents = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getDependentsCount(); + + /** + * + * + *
+   * Optional. Output only. List of Units that depend on this unit. Unit can
+   * only be deprovisioned if this list is empty. Maximum 1000.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency dependents = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List< + ? extends com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependencyOrBuilder> + getDependentsOrBuilderList(); + + /** + * + * + *
+   * Optional. Output only. List of Units that depend on this unit. Unit can
+   * only be deprovisioned if this list is empty. Maximum 1000.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency dependents = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependencyOrBuilder + getDependentsOrBuilder(int index); + + /** + * + * + *
+   * Optional. Output only. Set of dependencies for this unit. Maximum 10.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency dependencies = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getDependenciesList(); + + /** + * + * + *
+   * Optional. Output only. Set of dependencies for this unit. Maximum 10.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency dependencies = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency getDependencies(int index); + + /** + * + * + *
+   * Optional. Output only. Set of dependencies for this unit. Maximum 10.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency dependencies = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getDependenciesCount(); + + /** + * + * + *
+   * Optional. Output only. Set of dependencies for this unit. Maximum 10.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency dependencies = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List< + ? extends com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependencyOrBuilder> + getDependenciesOrBuilderList(); + + /** + * + * + *
+   * Optional. Output only. Set of dependencies for this unit. Maximum 10.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependency dependencies = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitDependencyOrBuilder + getDependenciesOrBuilder(int index); + + /** + * + * + *
+   * Optional. Output only. Indicates the current input variables deployed by
+   * the unit
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getInputVariablesList(); + + /** + * + * + *
+   * Optional. Output only. Indicates the current input variables deployed by
+   * the unit
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable getInputVariables(int index); + + /** + * + * + *
+   * Optional. Output only. Indicates the current input variables deployed by
+   * the unit
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getInputVariablesCount(); + + /** + * + * + *
+   * Optional. Output only. Indicates the current input variables deployed by
+   * the unit
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List< + ? extends com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariableOrBuilder> + getInputVariablesOrBuilderList(); + + /** + * + * + *
+   * Optional. Output only. Indicates the current input variables deployed by
+   * the unit
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariableOrBuilder + getInputVariablesOrBuilder(int index); + + /** + * + * + *
+   * Optional. Output only. Set of key/value pairs corresponding to output
+   * variables from execution of actuation templates. The variables are declared
+   * in actuation configs (e.g in helm chart or terraform) and the values are
+   * fetched and returned by the actuation engine upon completion of execution.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable output_variables = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getOutputVariablesList(); + + /** + * + * + *
+   * Optional. Output only. Set of key/value pairs corresponding to output
+   * variables from execution of actuation templates. The variables are declared
+   * in actuation configs (e.g in helm chart or terraform) and the values are
+   * fetched and returned by the actuation engine upon completion of execution.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable output_variables = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable getOutputVariables(int index); + + /** + * + * + *
+   * Optional. Output only. Set of key/value pairs corresponding to output
+   * variables from execution of actuation templates. The variables are declared
+   * in actuation configs (e.g in helm chart or terraform) and the values are
+   * fetched and returned by the actuation engine upon completion of execution.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable output_variables = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getOutputVariablesCount(); + + /** + * + * + *
+   * Optional. Output only. Set of key/value pairs corresponding to output
+   * variables from execution of actuation templates. The variables are declared
+   * in actuation configs (e.g in helm chart or terraform) and the values are
+   * fetched and returned by the actuation engine upon completion of execution.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable output_variables = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List< + ? extends com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariableOrBuilder> + getOutputVariablesOrBuilderList(); + + /** + * + * + *
+   * Optional. Output only. Set of key/value pairs corresponding to output
+   * variables from execution of actuation templates. The variables are declared
+   * in actuation configs (e.g in helm chart or terraform) and the values are
+   * fetched and returned by the actuation engine upon completion of execution.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable output_variables = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariableOrBuilder + getOutputVariablesOrBuilder(int index); + + /** + * + * + *
+   * Optional. Captures requested directives for performing future maintenance
+   * on the unit. This includes a request for the unit to skip maintenance for a
+   * period of time and remain pinned to its current release as well as controls
+   * for postponing maintenance scheduled in future.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.MaintenanceSettings maintenance = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the maintenance field is set. + */ + boolean hasMaintenance(); + + /** + * + * + *
+   * Optional. Captures requested directives for performing future maintenance
+   * on the unit. This includes a request for the unit to skip maintenance for a
+   * period of time and remain pinned to its current release as well as controls
+   * for postponing maintenance scheduled in future.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.MaintenanceSettings maintenance = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The maintenance. + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.MaintenanceSettings getMaintenance(); + + /** + * + * + *
+   * Optional. Captures requested directives for performing future maintenance
+   * on the unit. This includes a request for the unit to skip maintenance for a
+   * period of time and remain pinned to its current release as well as controls
+   * for postponing maintenance scheduled in future.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.MaintenanceSettings maintenance = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.MaintenanceSettingsOrBuilder + getMaintenanceOrBuilder(); + + /** + * + * + *
+   * Optional. Output only. Current lifecycle state of the resource (e.g. if
+   * it's being created or ready to use).
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.UnitState state = 16 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
+   * Optional. Output only. Current lifecycle state of the resource (e.g. if
+   * it's being created or ready to use).
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.UnitState state = 16 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.UnitState getState(); + + /** + * + * + *
+   * Optional. Output only. A set of conditions which indicate the various
+   * conditions this resource can have.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition conditions = 20 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getConditionsList(); + + /** + * + * + *
+   * Optional. Output only. A set of conditions which indicate the various
+   * conditions this resource can have.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition conditions = 20 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition getConditions(int index); + + /** + * + * + *
+   * Optional. Output only. A set of conditions which indicate the various
+   * conditions this resource can have.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition conditions = 20 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getConditionsCount(); + + /** + * + * + *
+   * Optional. Output only. A set of conditions which indicate the various
+   * conditions this resource can have.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition conditions = 20 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List< + ? extends com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitConditionOrBuilder> + getConditionsOrBuilderList(); + + /** + * + * + *
+   * Optional. Output only. A set of conditions which indicate the various
+   * conditions this resource can have.
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitCondition conditions = 20 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitConditionOrBuilder + getConditionsOrBuilder(int index); + + /** + * + * + *
+   * Optional. Immutable. Indicates whether the Unit life cycle is controlled
+   * by the user or by the system.
+   * Immutable once created.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.ManagementMode management_mode = 22 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for managementMode. + */ + int getManagementModeValue(); + + /** + * + * + *
+   * Optional. Immutable. Indicates whether the Unit life cycle is controlled
+   * by the user or by the system.
+   * Immutable once created.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.ManagementMode management_mode = 22 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The managementMode. + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.ManagementMode getManagementMode(); + + /** + * + * + *
+   * Optional. Output only. Indicates the system managed state of the unit.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.SystemManagedState system_managed_state = 25 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for systemManagedState. + */ + int getSystemManagedStateValue(); + + /** + * + * + *
+   * Optional. Output only. Indicates the system managed state of the unit.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.SystemManagedState system_managed_state = 25 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The systemManagedState. + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.SystemManagedState + getSystemManagedState(); + + /** + * + * + *
+   * Optional. Output only. If set, indicates the time when the system will
+   * start removing the unit.
+   * 
+ * + * + * .google.protobuf.Timestamp system_cleanup_at = 26 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the systemCleanupAt field is set. + */ + boolean hasSystemCleanupAt(); + + /** + * + * + *
+   * Optional. Output only. If set, indicates the time when the system will
+   * start removing the unit.
+   * 
+ * + * + * .google.protobuf.Timestamp system_cleanup_at = 26 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The systemCleanupAt. + */ + com.google.protobuf.Timestamp getSystemCleanupAt(); + + /** + * + * + *
+   * Optional. Output only. If set, indicates the time when the system will
+   * start removing the unit.
+   * 
+ * + * + * .google.protobuf.Timestamp system_cleanup_at = 26 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getSystemCleanupAtOrBuilder(); + + /** + * + * + *
+   * Optional. The labels on the resource, which can be used for categorization.
+   * similar to Kubernetes resource labels.
+   * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getLabelsCount(); + + /** + * + * + *
+   * Optional. The labels on the resource, which can be used for categorization.
+   * similar to Kubernetes resource labels.
+   * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsLabels(java.lang.String key); + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + + /** + * + * + *
+   * Optional. The labels on the resource, which can be used for categorization.
+   * similar to Kubernetes resource labels.
+   * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map getLabelsMap(); + + /** + * + * + *
+   * Optional. The labels on the resource, which can be used for categorization.
+   * similar to Kubernetes resource labels.
+   * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
+   * Optional. The labels on the resource, which can be used for categorization.
+   * similar to Kubernetes resource labels.
+   * 
+ * + * map<string, string> labels = 10401 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
+   * Optional. Annotations is an unstructured key-value map stored with a
+   * resource that may be set by external tools to store and retrieve arbitrary
+   * metadata. They are not queryable and should be preserved when modifying
+   * objects.
+   *
+   * More info: https://kubernetes.io/docs/user-guide/annotations
+   * 
+ * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getAnnotationsCount(); + + /** + * + * + *
+   * Optional. Annotations is an unstructured key-value map stored with a
+   * resource that may be set by external tools to store and retrieve arbitrary
+   * metadata. They are not queryable and should be preserved when modifying
+   * objects.
+   *
+   * More info: https://kubernetes.io/docs/user-guide/annotations
+   * 
+ * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsAnnotations(java.lang.String key); + + /** Use {@link #getAnnotationsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getAnnotations(); + + /** + * + * + *
+   * Optional. Annotations is an unstructured key-value map stored with a
+   * resource that may be set by external tools to store and retrieve arbitrary
+   * metadata. They are not queryable and should be preserved when modifying
+   * objects.
+   *
+   * More info: https://kubernetes.io/docs/user-guide/annotations
+   * 
+ * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map getAnnotationsMap(); + + /** + * + * + *
+   * Optional. Annotations is an unstructured key-value map stored with a
+   * resource that may be set by external tools to store and retrieve arbitrary
+   * metadata. They are not queryable and should be preserved when modifying
+   * objects.
+   *
+   * More info: https://kubernetes.io/docs/user-guide/annotations
+   * 
+ * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + java.lang.String getAnnotationsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
+   * Optional. Annotations is an unstructured key-value map stored with a
+   * resource that may be set by external tools to store and retrieve arbitrary
+   * metadata. They are not queryable and should be preserved when modifying
+   * objects.
+   *
+   * More info: https://kubernetes.io/docs/user-guide/annotations
+   * 
+ * + * map<string, string> annotations = 10402 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.lang.String getAnnotationsOrThrow(java.lang.String key); + + /** + * + * + *
+   * Output only. The unique identifier of the resource. UID is unique in the
+   * time and space for this resource within the scope of the service. It is
+   * typically generated by the server on successful creation of a resource
+   * and must not be changed. UID is used to uniquely identify resources
+   * with resource name reuses. This should be a UUID4.
+   * 
+ * + * + * string uid = 10201 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The uid. + */ + java.lang.String getUid(); + + /** + * + * + *
+   * Output only. The unique identifier of the resource. UID is unique in the
+   * time and space for this resource within the scope of the service. It is
+   * typically generated by the server on successful creation of a resource
+   * and must not be changed. UID is used to uniquely identify resources
+   * with resource name reuses. This should be a UUID4.
+   * 
+ * + * + * string uid = 10201 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The bytes for uid. + */ + com.google.protobuf.ByteString getUidBytes(); + + /** + * + * + *
+   * Output only. An opaque value that uniquely identifies a version or
+   * generation of a resource. It can be used to confirm that the client
+   * and server agree on the ordering of a resource being written.
+   * 
+ * + * string etag = 10202 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The etag. + */ + java.lang.String getEtag(); + + /** + * + * + *
+   * Output only. An opaque value that uniquely identifies a version or
+   * generation of a resource. It can be used to confirm that the client
+   * and server agree on the ordering of a resource being written.
+   * 
+ * + * string etag = 10202 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); + + /** + * + * + *
+   * Output only. The timestamp when the resource was created.
+   * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
+   * Output only. The timestamp when the resource was created.
+   * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
+   * Output only. The timestamp when the resource was created.
+   * 
+ * + * + * .google.protobuf.Timestamp create_time = 10303 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. The timestamp when the resource was last updated. Any
+   * change to the resource made by users must refresh this value.
+   * Changes to a resource made by the service should refresh this value.
+   * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
+   * Output only. The timestamp when the resource was last updated. Any
+   * change to the resource made by users must refresh this value.
+   * Changes to a resource made by the service should refresh this value.
+   * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
+   * Output only. The timestamp when the resource was last updated. Any
+   * change to the resource made by users must refresh this value.
+   * Changes to a resource made by the service should refresh this value.
+   * 
+ * + * + * .google.protobuf.Timestamp update_time = 10304 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UnitVariable.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UnitVariable.java new file mode 100644 index 000000000000..df0130dbabb6 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UnitVariable.java @@ -0,0 +1,1218 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/common.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +/** + * + * + *
+ * UnitVariable describes a parameter for a Unit.
+ * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable} + */ +public final class UnitVariable extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable) + UnitVariableOrBuilder { + private static final long serialVersionUID = 0L; + + // Use UnitVariable.newBuilder() to construct. + private UnitVariable(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UnitVariable() { + variable_ = ""; + type_ = 0; + value_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UnitVariable(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CommonProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UnitVariable_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CommonProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UnitVariable_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Builder.class); + } + + /** + * + * + *
+   * Enumeration of variable types.
+   * 
+ * + * Protobuf enum {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Type} + */ + public enum Type implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Variable type is unspecified.
+     * 
+ * + * TYPE_UNSPECIFIED = 0; + */ + TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * Variable type is string.
+     * 
+ * + * STRING = 1; + */ + STRING(1), + /** + * + * + *
+     * Variable type is int.
+     * 
+ * + * INT = 2; + */ + INT(2), + /** + * + * + *
+     * Variable type is bool.
+     * 
+ * + * BOOL = 3; + */ + BOOL(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Variable type is unspecified.
+     * 
+ * + * TYPE_UNSPECIFIED = 0; + */ + public static final int TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Variable type is string.
+     * 
+ * + * STRING = 1; + */ + public static final int STRING_VALUE = 1; + + /** + * + * + *
+     * Variable type is int.
+     * 
+ * + * INT = 2; + */ + public static final int INT_VALUE = 2; + + /** + * + * + *
+     * Variable type is bool.
+     * 
+ * + * BOOL = 3; + */ + public static final int BOOL_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 Type 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 Type forNumber(int value) { + switch (value) { + case 0: + return TYPE_UNSPECIFIED; + case 1: + return STRING; + case 2: + return INT; + case 3: + return BOOL; + 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 Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + 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.saasplatform.saasservicemgmt.v1beta1.UnitVariable.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Type[] VALUES = values(); + + public static Type 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 Type(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Type) + } + + public static final int VARIABLE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object variable_ = ""; + + /** + * + * + *
+   * Required. Immutable. Name of the variable from actuation configs.
+   * 
+ * + * + * string variable = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The variable. + */ + @java.lang.Override + public java.lang.String getVariable() { + java.lang.Object ref = variable_; + 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(); + variable_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. Immutable. Name of the variable from actuation configs.
+   * 
+ * + * + * string variable = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for variable. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVariableBytes() { + java.lang.Object ref = variable_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + variable_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TYPE_FIELD_NUMBER = 2; + private int type_ = 0; + + /** + * + * + *
+   * Optional. Immutable. Name of a supported variable type. Supported types are
+   * string, int, bool.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Type type = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + + /** + * + * + *
+   * Optional. Immutable. Name of a supported variable type. Supported types are
+   * string, int, bool.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Type type = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Type getType() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Type result = + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Type.forNumber(type_); + return result == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Type.UNRECOGNIZED + : result; + } + + public static final int VALUE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object value_ = ""; + + /** + * + * + *
+   * Optional. String encoded value for the variable.
+   * 
+ * + * string value = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The value. + */ + @java.lang.Override + public java.lang.String getValue() { + java.lang.Object ref = value_; + 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(); + value_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. String encoded value for the variable.
+   * 
+ * + * string value = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for value. + */ + @java.lang.Override + public com.google.protobuf.ByteString getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + value_ = 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(variable_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, variable_); + } + if (type_ + != com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Type.TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, type_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, value_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(variable_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, variable_); + } + if (type_ + != com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Type.TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, type_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, value_); + } + size += getUnknownFields().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.saasplatform.saasservicemgmt.v1beta1.UnitVariable)) { + return super.equals(obj); + } + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable other = + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable) obj; + + if (!getVariable().equals(other.getVariable())) return false; + if (type_ != other.type_) return false; + if (!getValue().equals(other.getValue())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + VARIABLE_FIELD_NUMBER; + hash = (53 * hash) + getVariable().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable 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.saasplatform.saasservicemgmt.v1beta1.UnitVariable parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable 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.saasplatform.saasservicemgmt.v1beta1.UnitVariable parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable 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.saasplatform.saasservicemgmt.v1beta1.UnitVariable + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable + 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.saasplatform.saasservicemgmt.v1beta1.UnitVariable parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable 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.saasplatform.saasservicemgmt.v1beta1.UnitVariable 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; + } + + /** + * + * + *
+   * UnitVariable describes a parameter for a Unit.
+   * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable) + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariableOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CommonProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UnitVariable_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CommonProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UnitVariable_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Builder.class); + } + + // Construct using + // com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + variable_ = ""; + type_ = 0; + value_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CommonProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UnitVariable_descriptor; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable + getDefaultInstanceForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable build() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable buildPartial() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable result = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.variable_ = variable_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.type_ = type_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.value_ = value_; + } + } + + @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.saasplatform.saasservicemgmt.v1beta1.UnitVariable) { + return mergeFrom( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable other) { + if (other + == com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable + .getDefaultInstance()) return this; + if (!other.getVariable().isEmpty()) { + variable_ = other.variable_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (!other.getValue().isEmpty()) { + value_ = other.value_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + variable_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + type_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + value_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object variable_ = ""; + + /** + * + * + *
+     * Required. Immutable. Name of the variable from actuation configs.
+     * 
+ * + * + * string variable = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The variable. + */ + public java.lang.String getVariable() { + java.lang.Object ref = variable_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + variable_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. Immutable. Name of the variable from actuation configs.
+     * 
+ * + * + * string variable = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for variable. + */ + public com.google.protobuf.ByteString getVariableBytes() { + java.lang.Object ref = variable_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + variable_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. Immutable. Name of the variable from actuation configs.
+     * 
+ * + * + * string variable = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The variable to set. + * @return This builder for chaining. + */ + public Builder setVariable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + variable_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Immutable. Name of the variable from actuation configs.
+     * 
+ * + * + * string variable = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearVariable() { + variable_ = getDefaultInstance().getVariable(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Immutable. Name of the variable from actuation configs.
+     * 
+ * + * + * string variable = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The bytes for variable to set. + * @return This builder for chaining. + */ + public Builder setVariableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + variable_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int type_ = 0; + + /** + * + * + *
+     * Optional. Immutable. Name of a supported variable type. Supported types are
+     * string, int, bool.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Type type = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + + /** + * + * + *
+     * Optional. Immutable. Name of a supported variable type. Supported types are
+     * string, int, bool.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Type type = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. + */ + public Builder setTypeValue(int value) { + type_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Immutable. Name of a supported variable type. Supported types are
+     * string, int, bool.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Type type = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Type getType() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Type result = + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Type.forNumber(type_); + return result == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Type.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Optional. Immutable. Name of a supported variable type. Supported types are
+     * string, int, bool.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Type type = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Type value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + type_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Immutable. Name of a supported variable type. Supported types are
+     * string, int, bool.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Type type = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000002); + type_ = 0; + onChanged(); + return this; + } + + private java.lang.Object value_ = ""; + + /** + * + * + *
+     * Optional. String encoded value for the variable.
+     * 
+ * + * string value = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The value. + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. String encoded value for the variable.
+     * 
+ * + * string value = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for value. + */ + public com.google.protobuf.ByteString getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. String encoded value for the variable.
+     * 
+ * + * string value = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The value to set. + * @return This builder for chaining. + */ + public Builder setValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. String encoded value for the variable.
+     * 
+ * + * string value = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearValue() { + value_ = getDefaultInstance().getValue(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. String encoded value for the variable.
+     * 
+ * + * string value = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for value to set. + * @return This builder for chaining. + */ + public Builder setValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + value_ = value; + bitField0_ |= 0x00000004; + 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.saasplatform.saasservicemgmt.v1beta1.UnitVariable) + } + + // @@protoc_insertion_point(class_scope:google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable) + private static final com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable(); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UnitVariable parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.saasplatform.saasservicemgmt.v1beta1.UnitVariable + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UnitVariableOrBuilder.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UnitVariableOrBuilder.java new file mode 100644 index 000000000000..c71a93c3bebf --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UnitVariableOrBuilder.java @@ -0,0 +1,114 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/common.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +public interface UnitVariableOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Immutable. Name of the variable from actuation configs.
+   * 
+ * + * + * string variable = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The variable. + */ + java.lang.String getVariable(); + + /** + * + * + *
+   * Required. Immutable. Name of the variable from actuation configs.
+   * 
+ * + * + * string variable = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for variable. + */ + com.google.protobuf.ByteString getVariableBytes(); + + /** + * + * + *
+   * Optional. Immutable. Name of a supported variable type. Supported types are
+   * string, int, bool.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Type type = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + + /** + * + * + *
+   * Optional. Immutable. Name of a supported variable type. Supported types are
+   * string, int, bool.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Type type = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The type. + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Type getType(); + + /** + * + * + *
+   * Optional. String encoded value for the variable.
+   * 
+ * + * string value = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The value. + */ + java.lang.String getValue(); + + /** + * + * + *
+   * Optional. String encoded value for the variable.
+   * 
+ * + * string value = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for value. + */ + com.google.protobuf.ByteString getValueBytes(); +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UpdateReleaseRequest.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UpdateReleaseRequest.java new file mode 100644 index 000000000000..11804a54e9cc --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UpdateReleaseRequest.java @@ -0,0 +1,1525 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +/** + * + * + *
+ * The request structure for the UpdateRelease method.
+ * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateReleaseRequest} + */ +public final class UpdateReleaseRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateReleaseRequest) + UpdateReleaseRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use UpdateReleaseRequest.newBuilder() to construct. + private UpdateReleaseRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateReleaseRequest() { + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateReleaseRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UpdateReleaseRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UpdateReleaseRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateReleaseRequest.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateReleaseRequest.Builder + .class); + } + + private int bitField0_; + public static final int RELEASE_FIELD_NUMBER = 10504; + private com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release release_; + + /** + * + * + *
+   * Required. The desired state for the release.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Release release = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the release field is set. + */ + @java.lang.Override + public boolean hasRelease() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The desired state for the release.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Release release = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The release. + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release getRelease() { + return release_ == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.getDefaultInstance() + : release_; + } + + /** + * + * + *
+   * Required. The desired state for the release.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Release release = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ReleaseOrBuilder + getReleaseOrBuilder() { + return release_ == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.getDefaultInstance() + : release_; + } + + public static final int VALIDATE_ONLY_FIELD_NUMBER = 10501; + private boolean validateOnly_ = false; + + /** + * + * + *
+   * If "validate_only" is set to true, the service will try to validate
+   * that this request would succeed, but will not actually make changes.
+   * 
+ * + * bool validate_only = 10501; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 10502; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 10502; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 10502; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 10512; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
+   * Field mask is used to specify the fields to be overwritten in the
+   * Release resource by the update.
+   *
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask.
+   *
+   * If the user does not provide a mask then all fields in the
+   * Release will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Field mask is used to specify the fields to be overwritten in the
+   * Release resource by the update.
+   *
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask.
+   *
+   * If the user does not provide a mask then all fields in the
+   * Release will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
+   * Field mask is used to specify the fields to be overwritten in the
+   * Release resource by the update.
+   *
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask.
+   *
+   * If the user does not provide a mask then all fields in the
+   * Release will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + 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 (validateOnly_ != false) { + output.writeBool(10501, validateOnly_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10502, requestId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(10504, getRelease()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(10512, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(10501, validateOnly_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10502, requestId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10504, getRelease()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10512, getUpdateMask()); + } + size += getUnknownFields().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.saasplatform.saasservicemgmt.v1beta1.UpdateReleaseRequest)) { + return super.equals(obj); + } + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateReleaseRequest other = + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateReleaseRequest) obj; + + if (hasRelease() != other.hasRelease()) return false; + if (hasRelease()) { + if (!getRelease().equals(other.getRelease())) return false; + } + if (getValidateOnly() != other.getValidateOnly()) return false; + if (!getRequestId().equals(other.getRequestId())) return false; + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRelease()) { + hash = (37 * hash) + RELEASE_FIELD_NUMBER; + hash = (53 * hash) + getRelease().hashCode(); + } + hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateReleaseRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateReleaseRequest + 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.saasplatform.saasservicemgmt.v1beta1.UpdateReleaseRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateReleaseRequest + 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.saasplatform.saasservicemgmt.v1beta1.UpdateReleaseRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateReleaseRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateReleaseRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateReleaseRequest + 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.saasplatform.saasservicemgmt.v1beta1.UpdateReleaseRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateReleaseRequest + 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.saasplatform.saasservicemgmt.v1beta1.UpdateReleaseRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateReleaseRequest + 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.saasplatform.saasservicemgmt.v1beta1.UpdateReleaseRequest 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 request structure for the UpdateRelease method.
+   * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateReleaseRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateReleaseRequest) + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateReleaseRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UpdateReleaseRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UpdateReleaseRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateReleaseRequest.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateReleaseRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateReleaseRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getReleaseFieldBuilder(); + getUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + release_ = null; + if (releaseBuilder_ != null) { + releaseBuilder_.dispose(); + releaseBuilder_ = null; + } + validateOnly_ = false; + requestId_ = ""; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UpdateReleaseRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateReleaseRequest + getDefaultInstanceForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateReleaseRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateReleaseRequest build() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateReleaseRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateReleaseRequest + buildPartial() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateReleaseRequest result = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateReleaseRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateReleaseRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.release_ = releaseBuilder_ == null ? release_ : releaseBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.validateOnly_ = validateOnly_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.requestId_ = requestId_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @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.saasplatform.saasservicemgmt.v1beta1.UpdateReleaseRequest) { + return mergeFrom( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateReleaseRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateReleaseRequest other) { + if (other + == com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateReleaseRequest + .getDefaultInstance()) return this; + if (other.hasRelease()) { + mergeRelease(other.getRelease()); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 84008: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 84008 + case 84018: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 84018 + case 84034: + { + input.readMessage(getReleaseFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 84034 + case 84098: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 84098 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release release_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ReleaseOrBuilder> + releaseBuilder_; + + /** + * + * + *
+     * Required. The desired state for the release.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Release release = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the release field is set. + */ + public boolean hasRelease() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Required. The desired state for the release.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Release release = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The release. + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release getRelease() { + if (releaseBuilder_ == null) { + return release_ == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.getDefaultInstance() + : release_; + } else { + return releaseBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The desired state for the release.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Release release = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRelease(com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release value) { + if (releaseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + release_ = value; + } else { + releaseBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The desired state for the release.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Release release = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRelease( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.Builder builderForValue) { + if (releaseBuilder_ == null) { + release_ = builderForValue.build(); + } else { + releaseBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The desired state for the release.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Release release = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeRelease( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release value) { + if (releaseBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && release_ != null + && release_ + != com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release + .getDefaultInstance()) { + getReleaseBuilder().mergeFrom(value); + } else { + release_ = value; + } + } else { + releaseBuilder_.mergeFrom(value); + } + if (release_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The desired state for the release.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Release release = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearRelease() { + bitField0_ = (bitField0_ & ~0x00000001); + release_ = null; + if (releaseBuilder_ != null) { + releaseBuilder_.dispose(); + releaseBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The desired state for the release.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Release release = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.Builder + getReleaseBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getReleaseFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The desired state for the release.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Release release = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ReleaseOrBuilder + getReleaseOrBuilder() { + if (releaseBuilder_ != null) { + return releaseBuilder_.getMessageOrBuilder(); + } else { + return release_ == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.getDefaultInstance() + : release_; + } + } + + /** + * + * + *
+     * Required. The desired state for the release.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Release release = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ReleaseOrBuilder> + getReleaseFieldBuilder() { + if (releaseBuilder_ == null) { + releaseBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ReleaseOrBuilder>( + getRelease(), getParentForChildren(), isClean()); + release_ = null; + } + return releaseBuilder_; + } + + private boolean validateOnly_; + + /** + * + * + *
+     * If "validate_only" is set to true, the service will try to validate
+     * that this request would succeed, but will not actually make changes.
+     * 
+ * + * bool validate_only = 10501; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + /** + * + * + *
+     * If "validate_only" is set to true, the service will try to validate
+     * that this request would succeed, but will not actually make changes.
+     * 
+ * + * bool validate_only = 10501; + * + * @param value The validateOnly to set. + * @return This builder for chaining. + */ + public Builder setValidateOnly(boolean value) { + + validateOnly_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * If "validate_only" is set to true, the service will try to validate
+     * that this request would succeed, but will not actually make changes.
+     * 
+ * + * bool validate_only = 10501; + * + * @return This builder for chaining. + */ + public Builder clearValidateOnly() { + bitField0_ = (bitField0_ & ~0x00000002); + validateOnly_ = false; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + 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_; + + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * Release resource by the update.
+     *
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask.
+     *
+     * If the user does not provide a mask then all fields in the
+     * Release will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * Release resource by the update.
+     *
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask.
+     *
+     * If the user does not provide a mask then all fields in the
+     * Release will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + * + * @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(); + } + } + + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * Release resource by the update.
+     *
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask.
+     *
+     * If the user does not provide a mask then all fields in the
+     * Release will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * Release resource by the update.
+     *
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask.
+     *
+     * If the user does not provide a mask then all fields in the
+     * Release will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * Release resource by the update.
+     *
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask.
+     *
+     * If the user does not provide a mask then all fields in the
+     * Release will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * Release resource by the update.
+     *
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask.
+     *
+     * If the user does not provide a mask then all fields in the
+     * Release will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000008); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * Release resource by the update.
+     *
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask.
+     *
+     * If the user does not provide a mask then all fields in the
+     * Release will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * Release resource by the update.
+     *
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask.
+     *
+     * If the user does not provide a mask then all fields in the
+     * Release will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * Release resource by the update.
+     *
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask.
+     *
+     * If the user does not provide a mask then all fields in the
+     * Release will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + */ + 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.saasplatform.saasservicemgmt.v1beta1.UpdateReleaseRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateReleaseRequest) + private static final com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateReleaseRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateReleaseRequest(); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateReleaseRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateReleaseRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.saasplatform.saasservicemgmt.v1beta1.UpdateReleaseRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UpdateReleaseRequestOrBuilder.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UpdateReleaseRequestOrBuilder.java new file mode 100644 index 000000000000..141263c75afb --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UpdateReleaseRequestOrBuilder.java @@ -0,0 +1,191 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +public interface UpdateReleaseRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateReleaseRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The desired state for the release.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Release release = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the release field is set. + */ + boolean hasRelease(); + + /** + * + * + *
+   * Required. The desired state for the release.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Release release = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The release. + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release getRelease(); + + /** + * + * + *
+   * Required. The desired state for the release.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Release release = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ReleaseOrBuilder getReleaseOrBuilder(); + + /** + * + * + *
+   * If "validate_only" is set to true, the service will try to validate
+   * that this request would succeed, but will not actually make changes.
+   * 
+ * + * bool validate_only = 10501; + * + * @return The validateOnly. + */ + boolean getValidateOnly(); + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 10502; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 10502; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); + + /** + * + * + *
+   * Field mask is used to specify the fields to be overwritten in the
+   * Release resource by the update.
+   *
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask.
+   *
+   * If the user does not provide a mask then all fields in the
+   * Release will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
+   * Field mask is used to specify the fields to be overwritten in the
+   * Release resource by the update.
+   *
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask.
+   *
+   * If the user does not provide a mask then all fields in the
+   * Release will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
+   * Field mask is used to specify the fields to be overwritten in the
+   * Release resource by the update.
+   *
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask.
+   *
+   * If the user does not provide a mask then all fields in the
+   * Release will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UpdateRolloutKindRequest.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UpdateRolloutKindRequest.java new file mode 100644 index 000000000000..413e469d0eeb --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UpdateRolloutKindRequest.java @@ -0,0 +1,1531 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/rollouts_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +/** + * + * + *
+ * The request structure for the UpdateRolloutKind method.
+ * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutKindRequest} + */ +public final class UpdateRolloutKindRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutKindRequest) + UpdateRolloutKindRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use UpdateRolloutKindRequest.newBuilder() to construct. + private UpdateRolloutKindRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateRolloutKindRequest() { + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateRolloutKindRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UpdateRolloutKindRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UpdateRolloutKindRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutKindRequest.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutKindRequest.Builder + .class); + } + + private int bitField0_; + public static final int ROLLOUT_KIND_FIELD_NUMBER = 10504; + private com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind rolloutKind_; + + /** + * + * + *
+   * Required. The desired state for the rollout kind.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind rollout_kind = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the rolloutKind field is set. + */ + @java.lang.Override + public boolean hasRolloutKind() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The desired state for the rollout kind.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind rollout_kind = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The rolloutKind. + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind getRolloutKind() { + return rolloutKind_ == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind.getDefaultInstance() + : rolloutKind_; + } + + /** + * + * + *
+   * Required. The desired state for the rollout kind.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind rollout_kind = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKindOrBuilder + getRolloutKindOrBuilder() { + return rolloutKind_ == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind.getDefaultInstance() + : rolloutKind_; + } + + public static final int VALIDATE_ONLY_FIELD_NUMBER = 10501; + private boolean validateOnly_ = false; + + /** + * + * + *
+   * If "validate_only" is set to true, the service will try to validate
+   * that this request would succeed, but will not actually make changes.
+   * 
+ * + * bool validate_only = 10501; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 10502; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 10502; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 10502; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 10512; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
+   * Field mask is used to specify the fields to be overwritten in the
+   * RolloutKind resource by the update.
+   *
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask.
+   *
+   * If the user does not provide a mask then all fields in the
+   * RolloutKind will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Field mask is used to specify the fields to be overwritten in the
+   * RolloutKind resource by the update.
+   *
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask.
+   *
+   * If the user does not provide a mask then all fields in the
+   * RolloutKind will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
+   * Field mask is used to specify the fields to be overwritten in the
+   * RolloutKind resource by the update.
+   *
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask.
+   *
+   * If the user does not provide a mask then all fields in the
+   * RolloutKind will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + 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 (validateOnly_ != false) { + output.writeBool(10501, validateOnly_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10502, requestId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(10504, getRolloutKind()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(10512, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(10501, validateOnly_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10502, requestId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10504, getRolloutKind()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10512, getUpdateMask()); + } + size += getUnknownFields().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.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutKindRequest)) { + return super.equals(obj); + } + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutKindRequest other = + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutKindRequest) obj; + + if (hasRolloutKind() != other.hasRolloutKind()) return false; + if (hasRolloutKind()) { + if (!getRolloutKind().equals(other.getRolloutKind())) return false; + } + if (getValidateOnly() != other.getValidateOnly()) return false; + if (!getRequestId().equals(other.getRequestId())) return false; + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRolloutKind()) { + hash = (37 * hash) + ROLLOUT_KIND_FIELD_NUMBER; + hash = (53 * hash) + getRolloutKind().hashCode(); + } + hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutKindRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutKindRequest + 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.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutKindRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutKindRequest + 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.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutKindRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutKindRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutKindRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutKindRequest + 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.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutKindRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutKindRequest + 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.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutKindRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutKindRequest + 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.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutKindRequest 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 request structure for the UpdateRolloutKind method.
+   * 
+ * + * Protobuf type {@code + * google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutKindRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutKindRequest) + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutKindRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UpdateRolloutKindRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UpdateRolloutKindRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutKindRequest.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutKindRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutKindRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getRolloutKindFieldBuilder(); + getUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + rolloutKind_ = null; + if (rolloutKindBuilder_ != null) { + rolloutKindBuilder_.dispose(); + rolloutKindBuilder_ = null; + } + validateOnly_ = false; + requestId_ = ""; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UpdateRolloutKindRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutKindRequest + getDefaultInstanceForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutKindRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutKindRequest build() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutKindRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutKindRequest + buildPartial() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutKindRequest result = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutKindRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutKindRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.rolloutKind_ = + rolloutKindBuilder_ == null ? rolloutKind_ : rolloutKindBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.validateOnly_ = validateOnly_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.requestId_ = requestId_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @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.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutKindRequest) { + return mergeFrom( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutKindRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutKindRequest other) { + if (other + == com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutKindRequest + .getDefaultInstance()) return this; + if (other.hasRolloutKind()) { + mergeRolloutKind(other.getRolloutKind()); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 84008: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 84008 + case 84018: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 84018 + case 84034: + { + input.readMessage(getRolloutKindFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 84034 + case 84098: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 84098 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind rolloutKind_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKindOrBuilder> + rolloutKindBuilder_; + + /** + * + * + *
+     * Required. The desired state for the rollout kind.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind rollout_kind = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the rolloutKind field is set. + */ + public boolean hasRolloutKind() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Required. The desired state for the rollout kind.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind rollout_kind = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The rolloutKind. + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind getRolloutKind() { + if (rolloutKindBuilder_ == null) { + return rolloutKind_ == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind.getDefaultInstance() + : rolloutKind_; + } else { + return rolloutKindBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The desired state for the rollout kind.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind rollout_kind = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRolloutKind( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind value) { + if (rolloutKindBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rolloutKind_ = value; + } else { + rolloutKindBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The desired state for the rollout kind.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind rollout_kind = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRolloutKind( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind.Builder builderForValue) { + if (rolloutKindBuilder_ == null) { + rolloutKind_ = builderForValue.build(); + } else { + rolloutKindBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The desired state for the rollout kind.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind rollout_kind = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeRolloutKind( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind value) { + if (rolloutKindBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && rolloutKind_ != null + && rolloutKind_ + != com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind + .getDefaultInstance()) { + getRolloutKindBuilder().mergeFrom(value); + } else { + rolloutKind_ = value; + } + } else { + rolloutKindBuilder_.mergeFrom(value); + } + if (rolloutKind_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The desired state for the rollout kind.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind rollout_kind = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearRolloutKind() { + bitField0_ = (bitField0_ & ~0x00000001); + rolloutKind_ = null; + if (rolloutKindBuilder_ != null) { + rolloutKindBuilder_.dispose(); + rolloutKindBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The desired state for the rollout kind.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind rollout_kind = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind.Builder + getRolloutKindBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getRolloutKindFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The desired state for the rollout kind.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind rollout_kind = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKindOrBuilder + getRolloutKindOrBuilder() { + if (rolloutKindBuilder_ != null) { + return rolloutKindBuilder_.getMessageOrBuilder(); + } else { + return rolloutKind_ == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind.getDefaultInstance() + : rolloutKind_; + } + } + + /** + * + * + *
+     * Required. The desired state for the rollout kind.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind rollout_kind = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKindOrBuilder> + getRolloutKindFieldBuilder() { + if (rolloutKindBuilder_ == null) { + rolloutKindBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKindOrBuilder>( + getRolloutKind(), getParentForChildren(), isClean()); + rolloutKind_ = null; + } + return rolloutKindBuilder_; + } + + private boolean validateOnly_; + + /** + * + * + *
+     * If "validate_only" is set to true, the service will try to validate
+     * that this request would succeed, but will not actually make changes.
+     * 
+ * + * bool validate_only = 10501; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + /** + * + * + *
+     * If "validate_only" is set to true, the service will try to validate
+     * that this request would succeed, but will not actually make changes.
+     * 
+ * + * bool validate_only = 10501; + * + * @param value The validateOnly to set. + * @return This builder for chaining. + */ + public Builder setValidateOnly(boolean value) { + + validateOnly_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * If "validate_only" is set to true, the service will try to validate
+     * that this request would succeed, but will not actually make changes.
+     * 
+ * + * bool validate_only = 10501; + * + * @return This builder for chaining. + */ + public Builder clearValidateOnly() { + bitField0_ = (bitField0_ & ~0x00000002); + validateOnly_ = false; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + 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_; + + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * RolloutKind resource by the update.
+     *
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask.
+     *
+     * If the user does not provide a mask then all fields in the
+     * RolloutKind will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * RolloutKind resource by the update.
+     *
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask.
+     *
+     * If the user does not provide a mask then all fields in the
+     * RolloutKind will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + * + * @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(); + } + } + + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * RolloutKind resource by the update.
+     *
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask.
+     *
+     * If the user does not provide a mask then all fields in the
+     * RolloutKind will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * RolloutKind resource by the update.
+     *
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask.
+     *
+     * If the user does not provide a mask then all fields in the
+     * RolloutKind will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * RolloutKind resource by the update.
+     *
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask.
+     *
+     * If the user does not provide a mask then all fields in the
+     * RolloutKind will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * RolloutKind resource by the update.
+     *
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask.
+     *
+     * If the user does not provide a mask then all fields in the
+     * RolloutKind will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000008); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * RolloutKind resource by the update.
+     *
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask.
+     *
+     * If the user does not provide a mask then all fields in the
+     * RolloutKind will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * RolloutKind resource by the update.
+     *
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask.
+     *
+     * If the user does not provide a mask then all fields in the
+     * RolloutKind will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * RolloutKind resource by the update.
+     *
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask.
+     *
+     * If the user does not provide a mask then all fields in the
+     * RolloutKind will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + */ + 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.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutKindRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutKindRequest) + private static final com.google.cloud.saasplatform.saasservicemgmt.v1beta1 + .UpdateRolloutKindRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutKindRequest(); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutKindRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateRolloutKindRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutKindRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UpdateRolloutKindRequestOrBuilder.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UpdateRolloutKindRequestOrBuilder.java new file mode 100644 index 000000000000..30004052a8b3 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UpdateRolloutKindRequestOrBuilder.java @@ -0,0 +1,192 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/rollouts_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +public interface UpdateRolloutKindRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutKindRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The desired state for the rollout kind.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind rollout_kind = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the rolloutKind field is set. + */ + boolean hasRolloutKind(); + + /** + * + * + *
+   * Required. The desired state for the rollout kind.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind rollout_kind = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The rolloutKind. + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind getRolloutKind(); + + /** + * + * + *
+   * Required. The desired state for the rollout kind.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind rollout_kind = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKindOrBuilder + getRolloutKindOrBuilder(); + + /** + * + * + *
+   * If "validate_only" is set to true, the service will try to validate
+   * that this request would succeed, but will not actually make changes.
+   * 
+ * + * bool validate_only = 10501; + * + * @return The validateOnly. + */ + boolean getValidateOnly(); + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 10502; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 10502; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); + + /** + * + * + *
+   * Field mask is used to specify the fields to be overwritten in the
+   * RolloutKind resource by the update.
+   *
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask.
+   *
+   * If the user does not provide a mask then all fields in the
+   * RolloutKind will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
+   * Field mask is used to specify the fields to be overwritten in the
+   * RolloutKind resource by the update.
+   *
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask.
+   *
+   * If the user does not provide a mask then all fields in the
+   * RolloutKind will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
+   * Field mask is used to specify the fields to be overwritten in the
+   * RolloutKind resource by the update.
+   *
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask.
+   *
+   * If the user does not provide a mask then all fields in the
+   * RolloutKind will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UpdateRolloutRequest.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UpdateRolloutRequest.java new file mode 100644 index 000000000000..3280ff93f734 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UpdateRolloutRequest.java @@ -0,0 +1,1525 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/rollouts_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +/** + * + * + *
+ * The request structure for the UpdateRollout method.
+ * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutRequest} + */ +public final class UpdateRolloutRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutRequest) + UpdateRolloutRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use UpdateRolloutRequest.newBuilder() to construct. + private UpdateRolloutRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateRolloutRequest() { + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateRolloutRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UpdateRolloutRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UpdateRolloutRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutRequest.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutRequest.Builder + .class); + } + + private int bitField0_; + public static final int ROLLOUT_FIELD_NUMBER = 10504; + private com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout rollout_; + + /** + * + * + *
+   * Required. The desired state for the rollout.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout rollout = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the rollout field is set. + */ + @java.lang.Override + public boolean hasRollout() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The desired state for the rollout.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout rollout = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The rollout. + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout getRollout() { + return rollout_ == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout.getDefaultInstance() + : rollout_; + } + + /** + * + * + *
+   * Required. The desired state for the rollout.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout rollout = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutOrBuilder + getRolloutOrBuilder() { + return rollout_ == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout.getDefaultInstance() + : rollout_; + } + + public static final int VALIDATE_ONLY_FIELD_NUMBER = 10501; + private boolean validateOnly_ = false; + + /** + * + * + *
+   * If "validate_only" is set to true, the service will try to validate
+   * that this request would succeed, but will not actually make changes.
+   * 
+ * + * bool validate_only = 10501; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 10502; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 10502; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 10502; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 10512; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
+   * Field mask is used to specify the fields to be overwritten in the
+   * Rollout resource by the update.
+   *
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask.
+   *
+   * If the user does not provide a mask then all fields in the
+   * Rollout will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Field mask is used to specify the fields to be overwritten in the
+   * Rollout resource by the update.
+   *
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask.
+   *
+   * If the user does not provide a mask then all fields in the
+   * Rollout will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
+   * Field mask is used to specify the fields to be overwritten in the
+   * Rollout resource by the update.
+   *
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask.
+   *
+   * If the user does not provide a mask then all fields in the
+   * Rollout will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + 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 (validateOnly_ != false) { + output.writeBool(10501, validateOnly_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10502, requestId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(10504, getRollout()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(10512, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(10501, validateOnly_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10502, requestId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10504, getRollout()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10512, getUpdateMask()); + } + size += getUnknownFields().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.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutRequest)) { + return super.equals(obj); + } + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutRequest other = + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutRequest) obj; + + if (hasRollout() != other.hasRollout()) return false; + if (hasRollout()) { + if (!getRollout().equals(other.getRollout())) return false; + } + if (getValidateOnly() != other.getValidateOnly()) return false; + if (!getRequestId().equals(other.getRequestId())) return false; + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) 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(); + } + hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutRequest + 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.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutRequest + 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.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutRequest + 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.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutRequest + 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.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutRequest + 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.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutRequest 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 request structure for the UpdateRollout method.
+   * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutRequest) + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UpdateRolloutRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UpdateRolloutRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutRequest.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getRolloutFieldBuilder(); + getUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + rollout_ = null; + if (rolloutBuilder_ != null) { + rolloutBuilder_.dispose(); + rolloutBuilder_ = null; + } + validateOnly_ = false; + requestId_ = ""; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UpdateRolloutRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutRequest + getDefaultInstanceForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutRequest build() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutRequest + buildPartial() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutRequest result = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.rollout_ = rolloutBuilder_ == null ? rollout_ : rolloutBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.validateOnly_ = validateOnly_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.requestId_ = requestId_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @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.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutRequest) { + return mergeFrom( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutRequest other) { + if (other + == com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutRequest + .getDefaultInstance()) return this; + if (other.hasRollout()) { + mergeRollout(other.getRollout()); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 84008: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 84008 + case 84018: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 84018 + case 84034: + { + input.readMessage(getRolloutFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 84034 + case 84098: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 84098 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout rollout_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutOrBuilder> + rolloutBuilder_; + + /** + * + * + *
+     * Required. The desired state for the rollout.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout rollout = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the rollout field is set. + */ + public boolean hasRollout() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Required. The desired state for the rollout.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout rollout = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The rollout. + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout getRollout() { + if (rolloutBuilder_ == null) { + return rollout_ == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout.getDefaultInstance() + : rollout_; + } else { + return rolloutBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The desired state for the rollout.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout rollout = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRollout(com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout value) { + if (rolloutBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rollout_ = value; + } else { + rolloutBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The desired state for the rollout.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout rollout = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRollout( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout.Builder builderForValue) { + if (rolloutBuilder_ == null) { + rollout_ = builderForValue.build(); + } else { + rolloutBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The desired state for the rollout.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout rollout = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeRollout( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout value) { + if (rolloutBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && rollout_ != null + && rollout_ + != com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout + .getDefaultInstance()) { + getRolloutBuilder().mergeFrom(value); + } else { + rollout_ = value; + } + } else { + rolloutBuilder_.mergeFrom(value); + } + if (rollout_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The desired state for the rollout.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout rollout = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearRollout() { + bitField0_ = (bitField0_ & ~0x00000001); + rollout_ = null; + if (rolloutBuilder_ != null) { + rolloutBuilder_.dispose(); + rolloutBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The desired state for the rollout.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout rollout = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout.Builder + getRolloutBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getRolloutFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The desired state for the rollout.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout rollout = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutOrBuilder + getRolloutOrBuilder() { + if (rolloutBuilder_ != null) { + return rolloutBuilder_.getMessageOrBuilder(); + } else { + return rollout_ == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout.getDefaultInstance() + : rollout_; + } + } + + /** + * + * + *
+     * Required. The desired state for the rollout.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout rollout = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutOrBuilder> + getRolloutFieldBuilder() { + if (rolloutBuilder_ == null) { + rolloutBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutOrBuilder>( + getRollout(), getParentForChildren(), isClean()); + rollout_ = null; + } + return rolloutBuilder_; + } + + private boolean validateOnly_; + + /** + * + * + *
+     * If "validate_only" is set to true, the service will try to validate
+     * that this request would succeed, but will not actually make changes.
+     * 
+ * + * bool validate_only = 10501; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + /** + * + * + *
+     * If "validate_only" is set to true, the service will try to validate
+     * that this request would succeed, but will not actually make changes.
+     * 
+ * + * bool validate_only = 10501; + * + * @param value The validateOnly to set. + * @return This builder for chaining. + */ + public Builder setValidateOnly(boolean value) { + + validateOnly_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * If "validate_only" is set to true, the service will try to validate
+     * that this request would succeed, but will not actually make changes.
+     * 
+ * + * bool validate_only = 10501; + * + * @return This builder for chaining. + */ + public Builder clearValidateOnly() { + bitField0_ = (bitField0_ & ~0x00000002); + validateOnly_ = false; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + 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_; + + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * Rollout resource by the update.
+     *
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask.
+     *
+     * If the user does not provide a mask then all fields in the
+     * Rollout will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * Rollout resource by the update.
+     *
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask.
+     *
+     * If the user does not provide a mask then all fields in the
+     * Rollout will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + * + * @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(); + } + } + + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * Rollout resource by the update.
+     *
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask.
+     *
+     * If the user does not provide a mask then all fields in the
+     * Rollout will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * Rollout resource by the update.
+     *
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask.
+     *
+     * If the user does not provide a mask then all fields in the
+     * Rollout will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * Rollout resource by the update.
+     *
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask.
+     *
+     * If the user does not provide a mask then all fields in the
+     * Rollout will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * Rollout resource by the update.
+     *
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask.
+     *
+     * If the user does not provide a mask then all fields in the
+     * Rollout will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000008); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * Rollout resource by the update.
+     *
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask.
+     *
+     * If the user does not provide a mask then all fields in the
+     * Rollout will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * Rollout resource by the update.
+     *
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask.
+     *
+     * If the user does not provide a mask then all fields in the
+     * Rollout will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * Rollout resource by the update.
+     *
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask.
+     *
+     * If the user does not provide a mask then all fields in the
+     * Rollout will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + */ + 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.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutRequest) + private static final com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutRequest(); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateRolloutRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UpdateRolloutRequestOrBuilder.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UpdateRolloutRequestOrBuilder.java new file mode 100644 index 000000000000..e0e2c1c6831b --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UpdateRolloutRequestOrBuilder.java @@ -0,0 +1,191 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/rollouts_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +public interface UpdateRolloutRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The desired state for the rollout.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout rollout = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the rollout field is set. + */ + boolean hasRollout(); + + /** + * + * + *
+   * Required. The desired state for the rollout.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout rollout = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The rollout. + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout getRollout(); + + /** + * + * + *
+   * Required. The desired state for the rollout.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout rollout = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutOrBuilder getRolloutOrBuilder(); + + /** + * + * + *
+   * If "validate_only" is set to true, the service will try to validate
+   * that this request would succeed, but will not actually make changes.
+   * 
+ * + * bool validate_only = 10501; + * + * @return The validateOnly. + */ + boolean getValidateOnly(); + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 10502; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 10502; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); + + /** + * + * + *
+   * Field mask is used to specify the fields to be overwritten in the
+   * Rollout resource by the update.
+   *
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask.
+   *
+   * If the user does not provide a mask then all fields in the
+   * Rollout will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
+   * Field mask is used to specify the fields to be overwritten in the
+   * Rollout resource by the update.
+   *
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask.
+   *
+   * If the user does not provide a mask then all fields in the
+   * Rollout will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
+   * Field mask is used to specify the fields to be overwritten in the
+   * Rollout resource by the update.
+   *
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask.
+   *
+   * If the user does not provide a mask then all fields in the
+   * Rollout will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UpdateSaasRequest.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UpdateSaasRequest.java new file mode 100644 index 000000000000..2939405e54c1 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UpdateSaasRequest.java @@ -0,0 +1,1513 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +/** + * + * + *
+ * The request structure for the UpdateSaas method.
+ * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateSaasRequest} + */ +public final class UpdateSaasRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateSaasRequest) + UpdateSaasRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use UpdateSaasRequest.newBuilder() to construct. + private UpdateSaasRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateSaasRequest() { + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateSaasRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UpdateSaasRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UpdateSaasRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateSaasRequest.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateSaasRequest.Builder.class); + } + + private int bitField0_; + public static final int SAAS_FIELD_NUMBER = 10504; + private com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas saas_; + + /** + * + * + *
+   * Required. The desired state for the saas.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas saas = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the saas field is set. + */ + @java.lang.Override + public boolean hasSaas() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The desired state for the saas.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas saas = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The saas. + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas getSaas() { + return saas_ == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas.getDefaultInstance() + : saas_; + } + + /** + * + * + *
+   * Required. The desired state for the saas.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas saas = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasOrBuilder getSaasOrBuilder() { + return saas_ == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas.getDefaultInstance() + : saas_; + } + + public static final int VALIDATE_ONLY_FIELD_NUMBER = 10501; + private boolean validateOnly_ = false; + + /** + * + * + *
+   * If "validate_only" is set to true, the service will try to validate
+   * that this request would succeed, but will not actually make changes.
+   * 
+ * + * bool validate_only = 10501; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 10502; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 10502; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 10502; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 10512; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
+   * Field mask is used to specify the fields to be overwritten in the
+   * Saas resource by the update.
+   *
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask.
+   *
+   * If the user does not provide a mask then all fields in the
+   * Saas will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Field mask is used to specify the fields to be overwritten in the
+   * Saas resource by the update.
+   *
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask.
+   *
+   * If the user does not provide a mask then all fields in the
+   * Saas will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
+   * Field mask is used to specify the fields to be overwritten in the
+   * Saas resource by the update.
+   *
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask.
+   *
+   * If the user does not provide a mask then all fields in the
+   * Saas will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + 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 (validateOnly_ != false) { + output.writeBool(10501, validateOnly_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10502, requestId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(10504, getSaas()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(10512, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(10501, validateOnly_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10502, requestId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10504, getSaas()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10512, getUpdateMask()); + } + size += getUnknownFields().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.saasplatform.saasservicemgmt.v1beta1.UpdateSaasRequest)) { + return super.equals(obj); + } + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateSaasRequest other = + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateSaasRequest) obj; + + if (hasSaas() != other.hasSaas()) return false; + if (hasSaas()) { + if (!getSaas().equals(other.getSaas())) return false; + } + if (getValidateOnly() != other.getValidateOnly()) return false; + if (!getRequestId().equals(other.getRequestId())) return false; + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasSaas()) { + hash = (37 * hash) + SAAS_FIELD_NUMBER; + hash = (53 * hash) + getSaas().hashCode(); + } + hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateSaasRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateSaasRequest 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.saasplatform.saasservicemgmt.v1beta1.UpdateSaasRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateSaasRequest 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.saasplatform.saasservicemgmt.v1beta1.UpdateSaasRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateSaasRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateSaasRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateSaasRequest 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.saasplatform.saasservicemgmt.v1beta1.UpdateSaasRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateSaasRequest + 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.saasplatform.saasservicemgmt.v1beta1.UpdateSaasRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateSaasRequest 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.saasplatform.saasservicemgmt.v1beta1.UpdateSaasRequest 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 request structure for the UpdateSaas method.
+   * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateSaasRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateSaasRequest) + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateSaasRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UpdateSaasRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UpdateSaasRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateSaasRequest.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateSaasRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateSaasRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getSaasFieldBuilder(); + getUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + saas_ = null; + if (saasBuilder_ != null) { + saasBuilder_.dispose(); + saasBuilder_ = null; + } + validateOnly_ = false; + requestId_ = ""; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UpdateSaasRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateSaasRequest + getDefaultInstanceForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateSaasRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateSaasRequest build() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateSaasRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateSaasRequest buildPartial() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateSaasRequest result = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateSaasRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateSaasRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.saas_ = saasBuilder_ == null ? saas_ : saasBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.validateOnly_ = validateOnly_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.requestId_ = requestId_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @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.saasplatform.saasservicemgmt.v1beta1.UpdateSaasRequest) { + return mergeFrom( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateSaasRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateSaasRequest other) { + if (other + == com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateSaasRequest + .getDefaultInstance()) return this; + if (other.hasSaas()) { + mergeSaas(other.getSaas()); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 84008: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 84008 + case 84018: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 84018 + case 84034: + { + input.readMessage(getSaasFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 84034 + case 84098: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 84098 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas saas_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasOrBuilder> + saasBuilder_; + + /** + * + * + *
+     * Required. The desired state for the saas.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas saas = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the saas field is set. + */ + public boolean hasSaas() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Required. The desired state for the saas.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas saas = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The saas. + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas getSaas() { + if (saasBuilder_ == null) { + return saas_ == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas.getDefaultInstance() + : saas_; + } else { + return saasBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The desired state for the saas.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas saas = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSaas(com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas value) { + if (saasBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + saas_ = value; + } else { + saasBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The desired state for the saas.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas saas = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSaas( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas.Builder builderForValue) { + if (saasBuilder_ == null) { + saas_ = builderForValue.build(); + } else { + saasBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The desired state for the saas.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas saas = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeSaas(com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas value) { + if (saasBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && saas_ != null + && saas_ + != com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas + .getDefaultInstance()) { + getSaasBuilder().mergeFrom(value); + } else { + saas_ = value; + } + } else { + saasBuilder_.mergeFrom(value); + } + if (saas_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The desired state for the saas.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas saas = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearSaas() { + bitField0_ = (bitField0_ & ~0x00000001); + saas_ = null; + if (saasBuilder_ != null) { + saasBuilder_.dispose(); + saasBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The desired state for the saas.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas saas = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas.Builder getSaasBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getSaasFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The desired state for the saas.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas saas = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasOrBuilder getSaasOrBuilder() { + if (saasBuilder_ != null) { + return saasBuilder_.getMessageOrBuilder(); + } else { + return saas_ == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas.getDefaultInstance() + : saas_; + } + } + + /** + * + * + *
+     * Required. The desired state for the saas.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas saas = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasOrBuilder> + getSaasFieldBuilder() { + if (saasBuilder_ == null) { + saasBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasOrBuilder>( + getSaas(), getParentForChildren(), isClean()); + saas_ = null; + } + return saasBuilder_; + } + + private boolean validateOnly_; + + /** + * + * + *
+     * If "validate_only" is set to true, the service will try to validate
+     * that this request would succeed, but will not actually make changes.
+     * 
+ * + * bool validate_only = 10501; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + /** + * + * + *
+     * If "validate_only" is set to true, the service will try to validate
+     * that this request would succeed, but will not actually make changes.
+     * 
+ * + * bool validate_only = 10501; + * + * @param value The validateOnly to set. + * @return This builder for chaining. + */ + public Builder setValidateOnly(boolean value) { + + validateOnly_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * If "validate_only" is set to true, the service will try to validate
+     * that this request would succeed, but will not actually make changes.
+     * 
+ * + * bool validate_only = 10501; + * + * @return This builder for chaining. + */ + public Builder clearValidateOnly() { + bitField0_ = (bitField0_ & ~0x00000002); + validateOnly_ = false; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + 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_; + + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * Saas resource by the update.
+     *
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask.
+     *
+     * If the user does not provide a mask then all fields in the
+     * Saas will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * Saas resource by the update.
+     *
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask.
+     *
+     * If the user does not provide a mask then all fields in the
+     * Saas will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + * + * @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(); + } + } + + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * Saas resource by the update.
+     *
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask.
+     *
+     * If the user does not provide a mask then all fields in the
+     * Saas will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * Saas resource by the update.
+     *
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask.
+     *
+     * If the user does not provide a mask then all fields in the
+     * Saas will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * Saas resource by the update.
+     *
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask.
+     *
+     * If the user does not provide a mask then all fields in the
+     * Saas will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * Saas resource by the update.
+     *
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask.
+     *
+     * If the user does not provide a mask then all fields in the
+     * Saas will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000008); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * Saas resource by the update.
+     *
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask.
+     *
+     * If the user does not provide a mask then all fields in the
+     * Saas will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * Saas resource by the update.
+     *
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask.
+     *
+     * If the user does not provide a mask then all fields in the
+     * Saas will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * Saas resource by the update.
+     *
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask.
+     *
+     * If the user does not provide a mask then all fields in the
+     * Saas will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + */ + 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.saasplatform.saasservicemgmt.v1beta1.UpdateSaasRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateSaasRequest) + private static final com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateSaasRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateSaasRequest(); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateSaasRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateSaasRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.saasplatform.saasservicemgmt.v1beta1.UpdateSaasRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UpdateSaasRequestOrBuilder.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UpdateSaasRequestOrBuilder.java new file mode 100644 index 000000000000..5ff61876137e --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UpdateSaasRequestOrBuilder.java @@ -0,0 +1,191 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +public interface UpdateSaasRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateSaasRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The desired state for the saas.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas saas = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the saas field is set. + */ + boolean hasSaas(); + + /** + * + * + *
+   * Required. The desired state for the saas.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas saas = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The saas. + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas getSaas(); + + /** + * + * + *
+   * Required. The desired state for the saas.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas saas = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasOrBuilder getSaasOrBuilder(); + + /** + * + * + *
+   * If "validate_only" is set to true, the service will try to validate
+   * that this request would succeed, but will not actually make changes.
+   * 
+ * + * bool validate_only = 10501; + * + * @return The validateOnly. + */ + boolean getValidateOnly(); + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 10502; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 10502; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); + + /** + * + * + *
+   * Field mask is used to specify the fields to be overwritten in the
+   * Saas resource by the update.
+   *
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask.
+   *
+   * If the user does not provide a mask then all fields in the
+   * Saas will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
+   * Field mask is used to specify the fields to be overwritten in the
+   * Saas resource by the update.
+   *
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask.
+   *
+   * If the user does not provide a mask then all fields in the
+   * Saas will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
+   * Field mask is used to specify the fields to be overwritten in the
+   * Saas resource by the update.
+   *
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask.
+   *
+   * If the user does not provide a mask then all fields in the
+   * Saas will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UpdateTenantRequest.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UpdateTenantRequest.java new file mode 100644 index 000000000000..518652da21af --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UpdateTenantRequest.java @@ -0,0 +1,1518 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +/** + * + * + *
+ * The request structure for the UpdateTenant method.
+ * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateTenantRequest} + */ +public final class UpdateTenantRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateTenantRequest) + UpdateTenantRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use UpdateTenantRequest.newBuilder() to construct. + private UpdateTenantRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateTenantRequest() { + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateTenantRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UpdateTenantRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UpdateTenantRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateTenantRequest.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateTenantRequest.Builder + .class); + } + + private int bitField0_; + public static final int TENANT_FIELD_NUMBER = 10504; + private com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant tenant_; + + /** + * + * + *
+   * Required. The desired state for the tenant.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant tenant = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the tenant field is set. + */ + @java.lang.Override + public boolean hasTenant() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The desired state for the tenant.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant tenant = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The tenant. + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant getTenant() { + return tenant_ == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant.getDefaultInstance() + : tenant_; + } + + /** + * + * + *
+   * Required. The desired state for the tenant.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant tenant = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.TenantOrBuilder + getTenantOrBuilder() { + return tenant_ == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant.getDefaultInstance() + : tenant_; + } + + public static final int VALIDATE_ONLY_FIELD_NUMBER = 10501; + private boolean validateOnly_ = false; + + /** + * + * + *
+   * If "validate_only" is set to true, the service will try to validate
+   * that this request would succeed, but will not actually make changes.
+   * 
+ * + * bool validate_only = 10501; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 10502; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 10502; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 10502; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 10512; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
+   * Field mask is used to specify the fields to be overwritten in the
+   * Tenant resource by the update.
+   *
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask.
+   *
+   * If the user does not provide a mask then all fields in the
+   * Tenant will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Field mask is used to specify the fields to be overwritten in the
+   * Tenant resource by the update.
+   *
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask.
+   *
+   * If the user does not provide a mask then all fields in the
+   * Tenant will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
+   * Field mask is used to specify the fields to be overwritten in the
+   * Tenant resource by the update.
+   *
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask.
+   *
+   * If the user does not provide a mask then all fields in the
+   * Tenant will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + 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 (validateOnly_ != false) { + output.writeBool(10501, validateOnly_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10502, requestId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(10504, getTenant()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(10512, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(10501, validateOnly_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10502, requestId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10504, getTenant()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10512, getUpdateMask()); + } + size += getUnknownFields().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.saasplatform.saasservicemgmt.v1beta1.UpdateTenantRequest)) { + return super.equals(obj); + } + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateTenantRequest other = + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateTenantRequest) obj; + + if (hasTenant() != other.hasTenant()) return false; + if (hasTenant()) { + if (!getTenant().equals(other.getTenant())) return false; + } + if (getValidateOnly() != other.getValidateOnly()) return false; + if (!getRequestId().equals(other.getRequestId())) return false; + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasTenant()) { + hash = (37 * hash) + TENANT_FIELD_NUMBER; + hash = (53 * hash) + getTenant().hashCode(); + } + hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateTenantRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateTenantRequest 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.saasplatform.saasservicemgmt.v1beta1.UpdateTenantRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateTenantRequest 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.saasplatform.saasservicemgmt.v1beta1.UpdateTenantRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateTenantRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateTenantRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateTenantRequest 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.saasplatform.saasservicemgmt.v1beta1.UpdateTenantRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateTenantRequest + 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.saasplatform.saasservicemgmt.v1beta1.UpdateTenantRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateTenantRequest 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.saasplatform.saasservicemgmt.v1beta1.UpdateTenantRequest 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 request structure for the UpdateTenant method.
+   * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateTenantRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateTenantRequest) + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateTenantRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UpdateTenantRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UpdateTenantRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateTenantRequest.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateTenantRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateTenantRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getTenantFieldBuilder(); + getUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + tenant_ = null; + if (tenantBuilder_ != null) { + tenantBuilder_.dispose(); + tenantBuilder_ = null; + } + validateOnly_ = false; + requestId_ = ""; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UpdateTenantRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateTenantRequest + getDefaultInstanceForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateTenantRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateTenantRequest build() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateTenantRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateTenantRequest + buildPartial() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateTenantRequest result = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateTenantRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateTenantRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.tenant_ = tenantBuilder_ == null ? tenant_ : tenantBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.validateOnly_ = validateOnly_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.requestId_ = requestId_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @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.saasplatform.saasservicemgmt.v1beta1.UpdateTenantRequest) { + return mergeFrom( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateTenantRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateTenantRequest other) { + if (other + == com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateTenantRequest + .getDefaultInstance()) return this; + if (other.hasTenant()) { + mergeTenant(other.getTenant()); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 84008: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 84008 + case 84018: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 84018 + case 84034: + { + input.readMessage(getTenantFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 84034 + case 84098: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 84098 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant tenant_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.TenantOrBuilder> + tenantBuilder_; + + /** + * + * + *
+     * Required. The desired state for the tenant.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant tenant = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the tenant field is set. + */ + public boolean hasTenant() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Required. The desired state for the tenant.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant tenant = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The tenant. + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant getTenant() { + if (tenantBuilder_ == null) { + return tenant_ == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant.getDefaultInstance() + : tenant_; + } else { + return tenantBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The desired state for the tenant.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant tenant = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setTenant(com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant value) { + if (tenantBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + tenant_ = value; + } else { + tenantBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The desired state for the tenant.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant tenant = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setTenant( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant.Builder builderForValue) { + if (tenantBuilder_ == null) { + tenant_ = builderForValue.build(); + } else { + tenantBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The desired state for the tenant.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant tenant = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeTenant(com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant value) { + if (tenantBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && tenant_ != null + && tenant_ + != com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant + .getDefaultInstance()) { + getTenantBuilder().mergeFrom(value); + } else { + tenant_ = value; + } + } else { + tenantBuilder_.mergeFrom(value); + } + if (tenant_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The desired state for the tenant.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant tenant = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearTenant() { + bitField0_ = (bitField0_ & ~0x00000001); + tenant_ = null; + if (tenantBuilder_ != null) { + tenantBuilder_.dispose(); + tenantBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The desired state for the tenant.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant tenant = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant.Builder getTenantBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getTenantFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The desired state for the tenant.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant tenant = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.TenantOrBuilder + getTenantOrBuilder() { + if (tenantBuilder_ != null) { + return tenantBuilder_.getMessageOrBuilder(); + } else { + return tenant_ == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant.getDefaultInstance() + : tenant_; + } + } + + /** + * + * + *
+     * Required. The desired state for the tenant.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant tenant = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.TenantOrBuilder> + getTenantFieldBuilder() { + if (tenantBuilder_ == null) { + tenantBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.TenantOrBuilder>( + getTenant(), getParentForChildren(), isClean()); + tenant_ = null; + } + return tenantBuilder_; + } + + private boolean validateOnly_; + + /** + * + * + *
+     * If "validate_only" is set to true, the service will try to validate
+     * that this request would succeed, but will not actually make changes.
+     * 
+ * + * bool validate_only = 10501; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + /** + * + * + *
+     * If "validate_only" is set to true, the service will try to validate
+     * that this request would succeed, but will not actually make changes.
+     * 
+ * + * bool validate_only = 10501; + * + * @param value The validateOnly to set. + * @return This builder for chaining. + */ + public Builder setValidateOnly(boolean value) { + + validateOnly_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * If "validate_only" is set to true, the service will try to validate
+     * that this request would succeed, but will not actually make changes.
+     * 
+ * + * bool validate_only = 10501; + * + * @return This builder for chaining. + */ + public Builder clearValidateOnly() { + bitField0_ = (bitField0_ & ~0x00000002); + validateOnly_ = false; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + 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_; + + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * Tenant resource by the update.
+     *
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask.
+     *
+     * If the user does not provide a mask then all fields in the
+     * Tenant will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * Tenant resource by the update.
+     *
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask.
+     *
+     * If the user does not provide a mask then all fields in the
+     * Tenant will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + * + * @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(); + } + } + + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * Tenant resource by the update.
+     *
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask.
+     *
+     * If the user does not provide a mask then all fields in the
+     * Tenant will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * Tenant resource by the update.
+     *
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask.
+     *
+     * If the user does not provide a mask then all fields in the
+     * Tenant will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * Tenant resource by the update.
+     *
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask.
+     *
+     * If the user does not provide a mask then all fields in the
+     * Tenant will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * Tenant resource by the update.
+     *
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask.
+     *
+     * If the user does not provide a mask then all fields in the
+     * Tenant will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000008); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * Tenant resource by the update.
+     *
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask.
+     *
+     * If the user does not provide a mask then all fields in the
+     * Tenant will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * Tenant resource by the update.
+     *
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask.
+     *
+     * If the user does not provide a mask then all fields in the
+     * Tenant will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * Tenant resource by the update.
+     *
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask.
+     *
+     * If the user does not provide a mask then all fields in the
+     * Tenant will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + */ + 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.saasplatform.saasservicemgmt.v1beta1.UpdateTenantRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateTenantRequest) + private static final com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateTenantRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateTenantRequest(); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateTenantRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateTenantRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.saasplatform.saasservicemgmt.v1beta1.UpdateTenantRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UpdateTenantRequestOrBuilder.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UpdateTenantRequestOrBuilder.java new file mode 100644 index 000000000000..67f02b177e31 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UpdateTenantRequestOrBuilder.java @@ -0,0 +1,191 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +public interface UpdateTenantRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateTenantRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The desired state for the tenant.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant tenant = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the tenant field is set. + */ + boolean hasTenant(); + + /** + * + * + *
+   * Required. The desired state for the tenant.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant tenant = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The tenant. + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant getTenant(); + + /** + * + * + *
+   * Required. The desired state for the tenant.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant tenant = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.TenantOrBuilder getTenantOrBuilder(); + + /** + * + * + *
+   * If "validate_only" is set to true, the service will try to validate
+   * that this request would succeed, but will not actually make changes.
+   * 
+ * + * bool validate_only = 10501; + * + * @return The validateOnly. + */ + boolean getValidateOnly(); + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 10502; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 10502; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); + + /** + * + * + *
+   * Field mask is used to specify the fields to be overwritten in the
+   * Tenant resource by the update.
+   *
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask.
+   *
+   * If the user does not provide a mask then all fields in the
+   * Tenant will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
+   * Field mask is used to specify the fields to be overwritten in the
+   * Tenant resource by the update.
+   *
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask.
+   *
+   * If the user does not provide a mask then all fields in the
+   * Tenant will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
+   * Field mask is used to specify the fields to be overwritten in the
+   * Tenant resource by the update.
+   *
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask.
+   *
+   * If the user does not provide a mask then all fields in the
+   * Tenant will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UpdateUnitKindRequest.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UpdateUnitKindRequest.java new file mode 100644 index 000000000000..75401110e37b --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UpdateUnitKindRequest.java @@ -0,0 +1,1526 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +/** + * + * + *
+ * The request structure for the UpdateUnitKind method.
+ * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitKindRequest} + */ +public final class UpdateUnitKindRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitKindRequest) + UpdateUnitKindRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use UpdateUnitKindRequest.newBuilder() to construct. + private UpdateUnitKindRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateUnitKindRequest() { + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateUnitKindRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UpdateUnitKindRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UpdateUnitKindRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitKindRequest.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitKindRequest.Builder + .class); + } + + private int bitField0_; + public static final int UNIT_KIND_FIELD_NUMBER = 10504; + private com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind unitKind_; + + /** + * + * + *
+   * Required. The desired state for the unit kind.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind unit_kind = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the unitKind field is set. + */ + @java.lang.Override + public boolean hasUnitKind() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The desired state for the unit kind.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind unit_kind = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The unitKind. + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind getUnitKind() { + return unitKind_ == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind.getDefaultInstance() + : unitKind_; + } + + /** + * + * + *
+   * Required. The desired state for the unit kind.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind unit_kind = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKindOrBuilder + getUnitKindOrBuilder() { + return unitKind_ == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind.getDefaultInstance() + : unitKind_; + } + + public static final int VALIDATE_ONLY_FIELD_NUMBER = 10501; + private boolean validateOnly_ = false; + + /** + * + * + *
+   * If "validate_only" is set to true, the service will try to validate
+   * that this request would succeed, but will not actually make changes.
+   * 
+ * + * bool validate_only = 10501; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 10502; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 10502; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 10502; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 10512; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
+   * Field mask is used to specify the fields to be overwritten in the
+   * UnitKind resource by the update.
+   *
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask.
+   *
+   * If the user does not provide a mask then all fields in the
+   * UnitKind will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Field mask is used to specify the fields to be overwritten in the
+   * UnitKind resource by the update.
+   *
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask.
+   *
+   * If the user does not provide a mask then all fields in the
+   * UnitKind will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
+   * Field mask is used to specify the fields to be overwritten in the
+   * UnitKind resource by the update.
+   *
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask.
+   *
+   * If the user does not provide a mask then all fields in the
+   * UnitKind will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + 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 (validateOnly_ != false) { + output.writeBool(10501, validateOnly_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10502, requestId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(10504, getUnitKind()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(10512, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(10501, validateOnly_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10502, requestId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10504, getUnitKind()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10512, getUpdateMask()); + } + size += getUnknownFields().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.saasplatform.saasservicemgmt.v1beta1.UpdateUnitKindRequest)) { + return super.equals(obj); + } + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitKindRequest other = + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitKindRequest) obj; + + if (hasUnitKind() != other.hasUnitKind()) return false; + if (hasUnitKind()) { + if (!getUnitKind().equals(other.getUnitKind())) return false; + } + if (getValidateOnly() != other.getValidateOnly()) return false; + if (!getRequestId().equals(other.getRequestId())) return false; + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasUnitKind()) { + hash = (37 * hash) + UNIT_KIND_FIELD_NUMBER; + hash = (53 * hash) + getUnitKind().hashCode(); + } + hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitKindRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitKindRequest + 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.saasplatform.saasservicemgmt.v1beta1.UpdateUnitKindRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitKindRequest + 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.saasplatform.saasservicemgmt.v1beta1.UpdateUnitKindRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitKindRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitKindRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitKindRequest + 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.saasplatform.saasservicemgmt.v1beta1.UpdateUnitKindRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitKindRequest + 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.saasplatform.saasservicemgmt.v1beta1.UpdateUnitKindRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitKindRequest + 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.saasplatform.saasservicemgmt.v1beta1.UpdateUnitKindRequest 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 request structure for the UpdateUnitKind method.
+   * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitKindRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitKindRequest) + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitKindRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UpdateUnitKindRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UpdateUnitKindRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitKindRequest.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitKindRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitKindRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getUnitKindFieldBuilder(); + getUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + unitKind_ = null; + if (unitKindBuilder_ != null) { + unitKindBuilder_.dispose(); + unitKindBuilder_ = null; + } + validateOnly_ = false; + requestId_ = ""; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UpdateUnitKindRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitKindRequest + getDefaultInstanceForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitKindRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitKindRequest build() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitKindRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitKindRequest + buildPartial() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitKindRequest result = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitKindRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitKindRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.unitKind_ = unitKindBuilder_ == null ? unitKind_ : unitKindBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.validateOnly_ = validateOnly_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.requestId_ = requestId_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @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.saasplatform.saasservicemgmt.v1beta1.UpdateUnitKindRequest) { + return mergeFrom( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitKindRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitKindRequest other) { + if (other + == com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitKindRequest + .getDefaultInstance()) return this; + if (other.hasUnitKind()) { + mergeUnitKind(other.getUnitKind()); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 84008: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 84008 + case 84018: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 84018 + case 84034: + { + input.readMessage(getUnitKindFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 84034 + case 84098: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 84098 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind unitKind_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKindOrBuilder> + unitKindBuilder_; + + /** + * + * + *
+     * Required. The desired state for the unit kind.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind unit_kind = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the unitKind field is set. + */ + public boolean hasUnitKind() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Required. The desired state for the unit kind.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind unit_kind = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The unitKind. + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind getUnitKind() { + if (unitKindBuilder_ == null) { + return unitKind_ == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind.getDefaultInstance() + : unitKind_; + } else { + return unitKindBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The desired state for the unit kind.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind unit_kind = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUnitKind( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind value) { + if (unitKindBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + unitKind_ = value; + } else { + unitKindBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The desired state for the unit kind.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind unit_kind = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUnitKind( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind.Builder builderForValue) { + if (unitKindBuilder_ == null) { + unitKind_ = builderForValue.build(); + } else { + unitKindBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The desired state for the unit kind.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind unit_kind = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUnitKind( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind value) { + if (unitKindBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && unitKind_ != null + && unitKind_ + != com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind + .getDefaultInstance()) { + getUnitKindBuilder().mergeFrom(value); + } else { + unitKind_ = value; + } + } else { + unitKindBuilder_.mergeFrom(value); + } + if (unitKind_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The desired state for the unit kind.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind unit_kind = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUnitKind() { + bitField0_ = (bitField0_ & ~0x00000001); + unitKind_ = null; + if (unitKindBuilder_ != null) { + unitKindBuilder_.dispose(); + unitKindBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The desired state for the unit kind.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind unit_kind = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind.Builder + getUnitKindBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getUnitKindFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The desired state for the unit kind.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind unit_kind = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKindOrBuilder + getUnitKindOrBuilder() { + if (unitKindBuilder_ != null) { + return unitKindBuilder_.getMessageOrBuilder(); + } else { + return unitKind_ == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind.getDefaultInstance() + : unitKind_; + } + } + + /** + * + * + *
+     * Required. The desired state for the unit kind.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind unit_kind = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKindOrBuilder> + getUnitKindFieldBuilder() { + if (unitKindBuilder_ == null) { + unitKindBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKindOrBuilder>( + getUnitKind(), getParentForChildren(), isClean()); + unitKind_ = null; + } + return unitKindBuilder_; + } + + private boolean validateOnly_; + + /** + * + * + *
+     * If "validate_only" is set to true, the service will try to validate
+     * that this request would succeed, but will not actually make changes.
+     * 
+ * + * bool validate_only = 10501; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + /** + * + * + *
+     * If "validate_only" is set to true, the service will try to validate
+     * that this request would succeed, but will not actually make changes.
+     * 
+ * + * bool validate_only = 10501; + * + * @param value The validateOnly to set. + * @return This builder for chaining. + */ + public Builder setValidateOnly(boolean value) { + + validateOnly_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * If "validate_only" is set to true, the service will try to validate
+     * that this request would succeed, but will not actually make changes.
+     * 
+ * + * bool validate_only = 10501; + * + * @return This builder for chaining. + */ + public Builder clearValidateOnly() { + bitField0_ = (bitField0_ & ~0x00000002); + validateOnly_ = false; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + 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_; + + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * UnitKind resource by the update.
+     *
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask.
+     *
+     * If the user does not provide a mask then all fields in the
+     * UnitKind will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * UnitKind resource by the update.
+     *
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask.
+     *
+     * If the user does not provide a mask then all fields in the
+     * UnitKind will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + * + * @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(); + } + } + + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * UnitKind resource by the update.
+     *
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask.
+     *
+     * If the user does not provide a mask then all fields in the
+     * UnitKind will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * UnitKind resource by the update.
+     *
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask.
+     *
+     * If the user does not provide a mask then all fields in the
+     * UnitKind will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * UnitKind resource by the update.
+     *
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask.
+     *
+     * If the user does not provide a mask then all fields in the
+     * UnitKind will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * UnitKind resource by the update.
+     *
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask.
+     *
+     * If the user does not provide a mask then all fields in the
+     * UnitKind will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000008); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * UnitKind resource by the update.
+     *
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask.
+     *
+     * If the user does not provide a mask then all fields in the
+     * UnitKind will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * UnitKind resource by the update.
+     *
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask.
+     *
+     * If the user does not provide a mask then all fields in the
+     * UnitKind will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * UnitKind resource by the update.
+     *
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask.
+     *
+     * If the user does not provide a mask then all fields in the
+     * UnitKind will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + */ + 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.saasplatform.saasservicemgmt.v1beta1.UpdateUnitKindRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitKindRequest) + private static final com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitKindRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitKindRequest(); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitKindRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateUnitKindRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.saasplatform.saasservicemgmt.v1beta1.UpdateUnitKindRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UpdateUnitKindRequestOrBuilder.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UpdateUnitKindRequestOrBuilder.java new file mode 100644 index 000000000000..1522334d7883 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UpdateUnitKindRequestOrBuilder.java @@ -0,0 +1,191 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +public interface UpdateUnitKindRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitKindRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The desired state for the unit kind.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind unit_kind = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the unitKind field is set. + */ + boolean hasUnitKind(); + + /** + * + * + *
+   * Required. The desired state for the unit kind.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind unit_kind = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The unitKind. + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind getUnitKind(); + + /** + * + * + *
+   * Required. The desired state for the unit kind.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind unit_kind = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKindOrBuilder getUnitKindOrBuilder(); + + /** + * + * + *
+   * If "validate_only" is set to true, the service will try to validate
+   * that this request would succeed, but will not actually make changes.
+   * 
+ * + * bool validate_only = 10501; + * + * @return The validateOnly. + */ + boolean getValidateOnly(); + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 10502; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 10502; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); + + /** + * + * + *
+   * Field mask is used to specify the fields to be overwritten in the
+   * UnitKind resource by the update.
+   *
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask.
+   *
+   * If the user does not provide a mask then all fields in the
+   * UnitKind will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
+   * Field mask is used to specify the fields to be overwritten in the
+   * UnitKind resource by the update.
+   *
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask.
+   *
+   * If the user does not provide a mask then all fields in the
+   * UnitKind will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
+   * Field mask is used to specify the fields to be overwritten in the
+   * UnitKind resource by the update.
+   *
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask.
+   *
+   * If the user does not provide a mask then all fields in the
+   * UnitKind will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UpdateUnitOperationRequest.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UpdateUnitOperationRequest.java new file mode 100644 index 000000000000..fab6ac1da57c --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UpdateUnitOperationRequest.java @@ -0,0 +1,1539 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +/** + * + * + *
+ * The request structure for the UpdateUnitOperation method.
+ * 
+ * + * Protobuf type {@code + * google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitOperationRequest} + */ +public final class UpdateUnitOperationRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitOperationRequest) + UpdateUnitOperationRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use UpdateUnitOperationRequest.newBuilder() to construct. + private UpdateUnitOperationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateUnitOperationRequest() { + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateUnitOperationRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UpdateUnitOperationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UpdateUnitOperationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitOperationRequest.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitOperationRequest.Builder + .class); + } + + private int bitField0_; + public static final int UNIT_OPERATION_FIELD_NUMBER = 10504; + private com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation unitOperation_; + + /** + * + * + *
+   * Required. The desired state for the unit operation.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation unit_operation = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the unitOperation field is set. + */ + @java.lang.Override + public boolean hasUnitOperation() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The desired state for the unit operation.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation unit_operation = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The unitOperation. + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation getUnitOperation() { + return unitOperation_ == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation.getDefaultInstance() + : unitOperation_; + } + + /** + * + * + *
+   * Required. The desired state for the unit operation.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation unit_operation = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationOrBuilder + getUnitOperationOrBuilder() { + return unitOperation_ == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation.getDefaultInstance() + : unitOperation_; + } + + public static final int VALIDATE_ONLY_FIELD_NUMBER = 10501; + private boolean validateOnly_ = false; + + /** + * + * + *
+   * If "validate_only" is set to true, the service will try to validate
+   * that this request would succeed, but will not actually make changes.
+   * 
+ * + * bool validate_only = 10501; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 10502; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 10502; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 10502; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 10512; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
+   * Field mask is used to specify the fields to be overwritten in the
+   * UnitOperation resource by the update.
+   *
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask.
+   *
+   * If the user does not provide a mask then all fields in the
+   * UnitOperation will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Field mask is used to specify the fields to be overwritten in the
+   * UnitOperation resource by the update.
+   *
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask.
+   *
+   * If the user does not provide a mask then all fields in the
+   * UnitOperation will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
+   * Field mask is used to specify the fields to be overwritten in the
+   * UnitOperation resource by the update.
+   *
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask.
+   *
+   * If the user does not provide a mask then all fields in the
+   * UnitOperation will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + 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 (validateOnly_ != false) { + output.writeBool(10501, validateOnly_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10502, requestId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(10504, getUnitOperation()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(10512, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(10501, validateOnly_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10502, requestId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10504, getUnitOperation()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10512, getUpdateMask()); + } + size += getUnknownFields().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.saasplatform.saasservicemgmt.v1beta1.UpdateUnitOperationRequest)) { + return super.equals(obj); + } + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitOperationRequest other = + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitOperationRequest) obj; + + if (hasUnitOperation() != other.hasUnitOperation()) return false; + if (hasUnitOperation()) { + if (!getUnitOperation().equals(other.getUnitOperation())) return false; + } + if (getValidateOnly() != other.getValidateOnly()) return false; + if (!getRequestId().equals(other.getRequestId())) return false; + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasUnitOperation()) { + hash = (37 * hash) + UNIT_OPERATION_FIELD_NUMBER; + hash = (53 * hash) + getUnitOperation().hashCode(); + } + hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitOperationRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitOperationRequest + 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.saasplatform.saasservicemgmt.v1beta1.UpdateUnitOperationRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitOperationRequest + 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.saasplatform.saasservicemgmt.v1beta1.UpdateUnitOperationRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitOperationRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitOperationRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitOperationRequest + 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.saasplatform.saasservicemgmt.v1beta1.UpdateUnitOperationRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitOperationRequest + 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.saasplatform.saasservicemgmt.v1beta1.UpdateUnitOperationRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitOperationRequest + 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.saasplatform.saasservicemgmt.v1beta1.UpdateUnitOperationRequest 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 request structure for the UpdateUnitOperation method.
+   * 
+ * + * Protobuf type {@code + * google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitOperationRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitOperationRequest) + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitOperationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UpdateUnitOperationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UpdateUnitOperationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitOperationRequest + .class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitOperationRequest + .Builder.class); + } + + // Construct using + // com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitOperationRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getUnitOperationFieldBuilder(); + getUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + unitOperation_ = null; + if (unitOperationBuilder_ != null) { + unitOperationBuilder_.dispose(); + unitOperationBuilder_ = null; + } + validateOnly_ = false; + requestId_ = ""; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UpdateUnitOperationRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitOperationRequest + getDefaultInstanceForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitOperationRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitOperationRequest + build() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitOperationRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitOperationRequest + buildPartial() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitOperationRequest result = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitOperationRequest( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitOperationRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.unitOperation_ = + unitOperationBuilder_ == null ? unitOperation_ : unitOperationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.validateOnly_ = validateOnly_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.requestId_ = requestId_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @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.saasplatform.saasservicemgmt.v1beta1.UpdateUnitOperationRequest) { + return mergeFrom( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitOperationRequest) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitOperationRequest other) { + if (other + == com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitOperationRequest + .getDefaultInstance()) return this; + if (other.hasUnitOperation()) { + mergeUnitOperation(other.getUnitOperation()); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 84008: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 84008 + case 84018: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 84018 + case 84034: + { + input.readMessage(getUnitOperationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 84034 + case 84098: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 84098 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation unitOperation_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationOrBuilder> + unitOperationBuilder_; + + /** + * + * + *
+     * Required. The desired state for the unit operation.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation unit_operation = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the unitOperation field is set. + */ + public boolean hasUnitOperation() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Required. The desired state for the unit operation.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation unit_operation = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The unitOperation. + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation getUnitOperation() { + if (unitOperationBuilder_ == null) { + return unitOperation_ == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation + .getDefaultInstance() + : unitOperation_; + } else { + return unitOperationBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The desired state for the unit operation.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation unit_operation = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUnitOperation( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation value) { + if (unitOperationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + unitOperation_ = value; + } else { + unitOperationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The desired state for the unit operation.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation unit_operation = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUnitOperation( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation.Builder + builderForValue) { + if (unitOperationBuilder_ == null) { + unitOperation_ = builderForValue.build(); + } else { + unitOperationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The desired state for the unit operation.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation unit_operation = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUnitOperation( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation value) { + if (unitOperationBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && unitOperation_ != null + && unitOperation_ + != com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation + .getDefaultInstance()) { + getUnitOperationBuilder().mergeFrom(value); + } else { + unitOperation_ = value; + } + } else { + unitOperationBuilder_.mergeFrom(value); + } + if (unitOperation_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The desired state for the unit operation.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation unit_operation = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUnitOperation() { + bitField0_ = (bitField0_ & ~0x00000001); + unitOperation_ = null; + if (unitOperationBuilder_ != null) { + unitOperationBuilder_.dispose(); + unitOperationBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The desired state for the unit operation.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation unit_operation = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation.Builder + getUnitOperationBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getUnitOperationFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The desired state for the unit operation.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation unit_operation = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationOrBuilder + getUnitOperationOrBuilder() { + if (unitOperationBuilder_ != null) { + return unitOperationBuilder_.getMessageOrBuilder(); + } else { + return unitOperation_ == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation + .getDefaultInstance() + : unitOperation_; + } + } + + /** + * + * + *
+     * Required. The desired state for the unit operation.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation unit_operation = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationOrBuilder> + getUnitOperationFieldBuilder() { + if (unitOperationBuilder_ == null) { + unitOperationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationOrBuilder>( + getUnitOperation(), getParentForChildren(), isClean()); + unitOperation_ = null; + } + return unitOperationBuilder_; + } + + private boolean validateOnly_; + + /** + * + * + *
+     * If "validate_only" is set to true, the service will try to validate
+     * that this request would succeed, but will not actually make changes.
+     * 
+ * + * bool validate_only = 10501; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + /** + * + * + *
+     * If "validate_only" is set to true, the service will try to validate
+     * that this request would succeed, but will not actually make changes.
+     * 
+ * + * bool validate_only = 10501; + * + * @param value The validateOnly to set. + * @return This builder for chaining. + */ + public Builder setValidateOnly(boolean value) { + + validateOnly_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * If "validate_only" is set to true, the service will try to validate
+     * that this request would succeed, but will not actually make changes.
+     * 
+ * + * bool validate_only = 10501; + * + * @return This builder for chaining. + */ + public Builder clearValidateOnly() { + bitField0_ = (bitField0_ & ~0x00000002); + validateOnly_ = false; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + 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_; + + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * UnitOperation resource by the update.
+     *
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask.
+     *
+     * If the user does not provide a mask then all fields in the
+     * UnitOperation will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * UnitOperation resource by the update.
+     *
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask.
+     *
+     * If the user does not provide a mask then all fields in the
+     * UnitOperation will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + * + * @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(); + } + } + + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * UnitOperation resource by the update.
+     *
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask.
+     *
+     * If the user does not provide a mask then all fields in the
+     * UnitOperation will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * UnitOperation resource by the update.
+     *
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask.
+     *
+     * If the user does not provide a mask then all fields in the
+     * UnitOperation will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * UnitOperation resource by the update.
+     *
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask.
+     *
+     * If the user does not provide a mask then all fields in the
+     * UnitOperation will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * UnitOperation resource by the update.
+     *
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask.
+     *
+     * If the user does not provide a mask then all fields in the
+     * UnitOperation will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000008); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * UnitOperation resource by the update.
+     *
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask.
+     *
+     * If the user does not provide a mask then all fields in the
+     * UnitOperation will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * UnitOperation resource by the update.
+     *
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask.
+     *
+     * If the user does not provide a mask then all fields in the
+     * UnitOperation will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * UnitOperation resource by the update.
+     *
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask.
+     *
+     * If the user does not provide a mask then all fields in the
+     * UnitOperation will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + */ + 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.saasplatform.saasservicemgmt.v1beta1.UpdateUnitOperationRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitOperationRequest) + private static final com.google.cloud.saasplatform.saasservicemgmt.v1beta1 + .UpdateUnitOperationRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitOperationRequest(); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitOperationRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateUnitOperationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.saasplatform.saasservicemgmt.v1beta1.UpdateUnitOperationRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UpdateUnitOperationRequestOrBuilder.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UpdateUnitOperationRequestOrBuilder.java new file mode 100644 index 000000000000..bd467e1af9c6 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UpdateUnitOperationRequestOrBuilder.java @@ -0,0 +1,192 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +public interface UpdateUnitOperationRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitOperationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The desired state for the unit operation.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation unit_operation = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the unitOperation field is set. + */ + boolean hasUnitOperation(); + + /** + * + * + *
+   * Required. The desired state for the unit operation.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation unit_operation = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The unitOperation. + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation getUnitOperation(); + + /** + * + * + *
+   * Required. The desired state for the unit operation.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation unit_operation = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationOrBuilder + getUnitOperationOrBuilder(); + + /** + * + * + *
+   * If "validate_only" is set to true, the service will try to validate
+   * that this request would succeed, but will not actually make changes.
+   * 
+ * + * bool validate_only = 10501; + * + * @return The validateOnly. + */ + boolean getValidateOnly(); + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 10502; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 10502; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); + + /** + * + * + *
+   * Field mask is used to specify the fields to be overwritten in the
+   * UnitOperation resource by the update.
+   *
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask.
+   *
+   * If the user does not provide a mask then all fields in the
+   * UnitOperation will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
+   * Field mask is used to specify the fields to be overwritten in the
+   * UnitOperation resource by the update.
+   *
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask.
+   *
+   * If the user does not provide a mask then all fields in the
+   * UnitOperation will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
+   * Field mask is used to specify the fields to be overwritten in the
+   * UnitOperation resource by the update.
+   *
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask.
+   *
+   * If the user does not provide a mask then all fields in the
+   * UnitOperation will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UpdateUnitRequest.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UpdateUnitRequest.java new file mode 100644 index 000000000000..faa8d0ad24c8 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UpdateUnitRequest.java @@ -0,0 +1,1513 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +/** + * + * + *
+ * The request structure for the UpdateUnit method.
+ * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitRequest} + */ +public final class UpdateUnitRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitRequest) + UpdateUnitRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use UpdateUnitRequest.newBuilder() to construct. + private UpdateUnitRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateUnitRequest() { + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateUnitRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UpdateUnitRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UpdateUnitRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitRequest.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitRequest.Builder.class); + } + + private int bitField0_; + public static final int UNIT_FIELD_NUMBER = 10504; + private com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit unit_; + + /** + * + * + *
+   * Required. The desired state for the unit.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit unit = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the unit field is set. + */ + @java.lang.Override + public boolean hasUnit() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The desired state for the unit.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit unit = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The unit. + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit getUnit() { + return unit_ == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.getDefaultInstance() + : unit_; + } + + /** + * + * + *
+   * Required. The desired state for the unit.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit unit = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOrBuilder getUnitOrBuilder() { + return unit_ == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.getDefaultInstance() + : unit_; + } + + public static final int VALIDATE_ONLY_FIELD_NUMBER = 10501; + private boolean validateOnly_ = false; + + /** + * + * + *
+   * If "validate_only" is set to true, the service will try to validate
+   * that this request would succeed, but will not actually make changes.
+   * 
+ * + * bool validate_only = 10501; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 10502; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 10502; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 10502; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 10512; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
+   * Field mask is used to specify the fields to be overwritten in the
+   * Unit resource by the update.
+   *
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask.
+   *
+   * If the user does not provide a mask then all fields in the
+   * Unit will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Field mask is used to specify the fields to be overwritten in the
+   * Unit resource by the update.
+   *
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask.
+   *
+   * If the user does not provide a mask then all fields in the
+   * Unit will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
+   * Field mask is used to specify the fields to be overwritten in the
+   * Unit resource by the update.
+   *
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask.
+   *
+   * If the user does not provide a mask then all fields in the
+   * Unit will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + 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 (validateOnly_ != false) { + output.writeBool(10501, validateOnly_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10502, requestId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(10504, getUnit()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(10512, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(10501, validateOnly_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10502, requestId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10504, getUnit()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10512, getUpdateMask()); + } + size += getUnknownFields().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.saasplatform.saasservicemgmt.v1beta1.UpdateUnitRequest)) { + return super.equals(obj); + } + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitRequest other = + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitRequest) obj; + + if (hasUnit() != other.hasUnit()) return false; + if (hasUnit()) { + if (!getUnit().equals(other.getUnit())) return false; + } + if (getValidateOnly() != other.getValidateOnly()) return false; + if (!getRequestId().equals(other.getRequestId())) return false; + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasUnit()) { + hash = (37 * hash) + UNIT_FIELD_NUMBER; + hash = (53 * hash) + getUnit().hashCode(); + } + hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitRequest 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.saasplatform.saasservicemgmt.v1beta1.UpdateUnitRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitRequest 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.saasplatform.saasservicemgmt.v1beta1.UpdateUnitRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitRequest 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.saasplatform.saasservicemgmt.v1beta1.UpdateUnitRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitRequest + 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.saasplatform.saasservicemgmt.v1beta1.UpdateUnitRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitRequest 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.saasplatform.saasservicemgmt.v1beta1.UpdateUnitRequest 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 request structure for the UpdateUnit method.
+   * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitRequest) + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UpdateUnitRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UpdateUnitRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitRequest.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getUnitFieldBuilder(); + getUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + unit_ = null; + if (unitBuilder_ != null) { + unitBuilder_.dispose(); + unitBuilder_ = null; + } + validateOnly_ = false; + requestId_ = ""; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsServiceProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_UpdateUnitRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitRequest + getDefaultInstanceForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitRequest build() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitRequest buildPartial() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitRequest result = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.unit_ = unitBuilder_ == null ? unit_ : unitBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.validateOnly_ = validateOnly_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.requestId_ = requestId_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @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.saasplatform.saasservicemgmt.v1beta1.UpdateUnitRequest) { + return mergeFrom( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitRequest other) { + if (other + == com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitRequest + .getDefaultInstance()) return this; + if (other.hasUnit()) { + mergeUnit(other.getUnit()); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 84008: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 84008 + case 84018: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 84018 + case 84034: + { + input.readMessage(getUnitFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 84034 + case 84098: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 84098 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit unit_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOrBuilder> + unitBuilder_; + + /** + * + * + *
+     * Required. The desired state for the unit.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit unit = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the unit field is set. + */ + public boolean hasUnit() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Required. The desired state for the unit.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit unit = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The unit. + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit getUnit() { + if (unitBuilder_ == null) { + return unit_ == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.getDefaultInstance() + : unit_; + } else { + return unitBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The desired state for the unit.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit unit = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUnit(com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit value) { + if (unitBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + unit_ = value; + } else { + unitBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The desired state for the unit.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit unit = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUnit( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.Builder builderForValue) { + if (unitBuilder_ == null) { + unit_ = builderForValue.build(); + } else { + unitBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The desired state for the unit.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit unit = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUnit(com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit value) { + if (unitBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && unit_ != null + && unit_ + != com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit + .getDefaultInstance()) { + getUnitBuilder().mergeFrom(value); + } else { + unit_ = value; + } + } else { + unitBuilder_.mergeFrom(value); + } + if (unit_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The desired state for the unit.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit unit = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUnit() { + bitField0_ = (bitField0_ & ~0x00000001); + unit_ = null; + if (unitBuilder_ != null) { + unitBuilder_.dispose(); + unitBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The desired state for the unit.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit unit = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.Builder getUnitBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getUnitFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The desired state for the unit.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit unit = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOrBuilder getUnitOrBuilder() { + if (unitBuilder_ != null) { + return unitBuilder_.getMessageOrBuilder(); + } else { + return unit_ == null + ? com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.getDefaultInstance() + : unit_; + } + } + + /** + * + * + *
+     * Required. The desired state for the unit.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit unit = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOrBuilder> + getUnitFieldBuilder() { + if (unitBuilder_ == null) { + unitBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOrBuilder>( + getUnit(), getParentForChildren(), isClean()); + unit_ = null; + } + return unitBuilder_; + } + + private boolean validateOnly_; + + /** + * + * + *
+     * If "validate_only" is set to true, the service will try to validate
+     * that this request would succeed, but will not actually make changes.
+     * 
+ * + * bool validate_only = 10501; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + /** + * + * + *
+     * If "validate_only" is set to true, the service will try to validate
+     * that this request would succeed, but will not actually make changes.
+     * 
+ * + * bool validate_only = 10501; + * + * @param value The validateOnly to set. + * @return This builder for chaining. + */ + public Builder setValidateOnly(boolean value) { + + validateOnly_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * If "validate_only" is set to true, the service will try to validate
+     * that this request would succeed, but will not actually make changes.
+     * 
+ * + * bool validate_only = 10501; + * + * @return This builder for chaining. + */ + public Builder clearValidateOnly() { + bitField0_ = (bitField0_ & ~0x00000002); + validateOnly_ = false; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * An optional request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 10502; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + 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_; + + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * Unit resource by the update.
+     *
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask.
+     *
+     * If the user does not provide a mask then all fields in the
+     * Unit will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * Unit resource by the update.
+     *
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask.
+     *
+     * If the user does not provide a mask then all fields in the
+     * Unit will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + * + * @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(); + } + } + + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * Unit resource by the update.
+     *
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask.
+     *
+     * If the user does not provide a mask then all fields in the
+     * Unit will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * Unit resource by the update.
+     *
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask.
+     *
+     * If the user does not provide a mask then all fields in the
+     * Unit will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * Unit resource by the update.
+     *
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask.
+     *
+     * If the user does not provide a mask then all fields in the
+     * Unit will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * Unit resource by the update.
+     *
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask.
+     *
+     * If the user does not provide a mask then all fields in the
+     * Unit will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000008); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * Unit resource by the update.
+     *
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask.
+     *
+     * If the user does not provide a mask then all fields in the
+     * Unit will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * Unit resource by the update.
+     *
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask.
+     *
+     * If the user does not provide a mask then all fields in the
+     * Unit will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
+     * Field mask is used to specify the fields to be overwritten in the
+     * Unit resource by the update.
+     *
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask.
+     *
+     * If the user does not provide a mask then all fields in the
+     * Unit will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + */ + 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.saasplatform.saasservicemgmt.v1beta1.UpdateUnitRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitRequest) + private static final com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitRequest(); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateUnitRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.saasplatform.saasservicemgmt.v1beta1.UpdateUnitRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UpdateUnitRequestOrBuilder.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UpdateUnitRequestOrBuilder.java new file mode 100644 index 000000000000..a2ac5a27e40f --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UpdateUnitRequestOrBuilder.java @@ -0,0 +1,191 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +public interface UpdateUnitRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The desired state for the unit.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit unit = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the unit field is set. + */ + boolean hasUnit(); + + /** + * + * + *
+   * Required. The desired state for the unit.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit unit = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The unit. + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit getUnit(); + + /** + * + * + *
+   * Required. The desired state for the unit.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit unit = 10504 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOrBuilder getUnitOrBuilder(); + + /** + * + * + *
+   * If "validate_only" is set to true, the service will try to validate
+   * that this request would succeed, but will not actually make changes.
+   * 
+ * + * bool validate_only = 10501; + * + * @return The validateOnly. + */ + boolean getValidateOnly(); + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 10502; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
+   * An optional request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 10502; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); + + /** + * + * + *
+   * Field mask is used to specify the fields to be overwritten in the
+   * Unit resource by the update.
+   *
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask.
+   *
+   * If the user does not provide a mask then all fields in the
+   * Unit will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
+   * Field mask is used to specify the fields to be overwritten in the
+   * Unit resource by the update.
+   *
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask.
+   *
+   * If the user does not provide a mask then all fields in the
+   * Unit will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
+   * Field mask is used to specify the fields to be overwritten in the
+   * Unit resource by the update.
+   *
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask.
+   *
+   * If the user does not provide a mask then all fields in the
+   * Unit will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 10512; + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/Upgrade.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/Upgrade.java new file mode 100644 index 000000000000..331823405a17 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/Upgrade.java @@ -0,0 +1,1254 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_resources.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +/** + * + * + *
+ * Upgrade is the unit operation that upgrades a provisioned unit, which may
+ * also include the underlying resources represented by a Unit. Can only execute
+ * if the Unit is currently provisioned.
+ * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.Upgrade} + */ +public final class Upgrade extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.Upgrade) + UpgradeOrBuilder { + private static final long serialVersionUID = 0L; + + // Use Upgrade.newBuilder() to construct. + private Upgrade(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Upgrade() { + release_ = ""; + inputVariables_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Upgrade(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Upgrade_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Upgrade_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Upgrade.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Upgrade.Builder.class); + } + + public static final int RELEASE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object release_ = ""; + + /** + * + * + *
+   * Optional. Reference to the Release object to use for the Unit. (optional).
+   * 
+ * + * + * string release = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The release. + */ + @java.lang.Override + public java.lang.String getRelease() { + java.lang.Object ref = release_; + 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(); + release_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Reference to the Release object to use for the Unit. (optional).
+   * 
+ * + * + * string release = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for release. + */ + @java.lang.Override + public com.google.protobuf.ByteString getReleaseBytes() { + java.lang.Object ref = release_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + release_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INPUT_VARIABLES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List + inputVariables_; + + /** + * + * + *
+   * Optional. Set of input variables. Maximum 100. (optional)
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getInputVariablesList() { + return inputVariables_; + } + + /** + * + * + *
+   * Optional. Set of input variables. Maximum 100. (optional)
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariableOrBuilder> + getInputVariablesOrBuilderList() { + return inputVariables_; + } + + /** + * + * + *
+   * Optional. Set of input variables. Maximum 100. (optional)
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getInputVariablesCount() { + return inputVariables_.size(); + } + + /** + * + * + *
+   * Optional. Set of input variables. Maximum 100. (optional)
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable getInputVariables( + int index) { + return inputVariables_.get(index); + } + + /** + * + * + *
+   * Optional. Set of input variables. Maximum 100. (optional)
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariableOrBuilder + getInputVariablesOrBuilder(int index) { + return inputVariables_.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(release_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, release_); + } + for (int i = 0; i < inputVariables_.size(); i++) { + output.writeMessage(2, inputVariables_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(release_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, release_); + } + for (int i = 0; i < inputVariables_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, inputVariables_.get(i)); + } + size += getUnknownFields().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.saasplatform.saasservicemgmt.v1beta1.Upgrade)) { + return super.equals(obj); + } + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Upgrade other = + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Upgrade) obj; + + if (!getRelease().equals(other.getRelease())) return false; + if (!getInputVariablesList().equals(other.getInputVariablesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + RELEASE_FIELD_NUMBER; + hash = (53 * hash) + getRelease().hashCode(); + if (getInputVariablesCount() > 0) { + hash = (37 * hash) + INPUT_VARIABLES_FIELD_NUMBER; + hash = (53 * hash) + getInputVariablesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Upgrade parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Upgrade 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.saasplatform.saasservicemgmt.v1beta1.Upgrade parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Upgrade 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.saasplatform.saasservicemgmt.v1beta1.Upgrade parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Upgrade parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Upgrade parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Upgrade 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.saasplatform.saasservicemgmt.v1beta1.Upgrade parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Upgrade 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.saasplatform.saasservicemgmt.v1beta1.Upgrade parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Upgrade 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.saasplatform.saasservicemgmt.v1beta1.Upgrade 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; + } + + /** + * + * + *
+   * Upgrade is the unit operation that upgrades a provisioned unit, which may
+   * also include the underlying resources represented by a Unit. Can only execute
+   * if the Unit is currently provisioned.
+   * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.Upgrade} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.Upgrade) + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpgradeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Upgrade_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Upgrade_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Upgrade.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Upgrade.Builder.class); + } + + // Construct using com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Upgrade.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + release_ = ""; + if (inputVariablesBuilder_ == null) { + inputVariables_ = java.util.Collections.emptyList(); + } else { + inputVariables_ = null; + inputVariablesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_Upgrade_descriptor; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Upgrade + getDefaultInstanceForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Upgrade.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Upgrade build() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Upgrade result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Upgrade buildPartial() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Upgrade result = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Upgrade(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Upgrade result) { + if (inputVariablesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + inputVariables_ = java.util.Collections.unmodifiableList(inputVariables_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.inputVariables_ = inputVariables_; + } else { + result.inputVariables_ = inputVariablesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Upgrade result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.release_ = release_; + } + } + + @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.saasplatform.saasservicemgmt.v1beta1.Upgrade) { + return mergeFrom((com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Upgrade) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Upgrade other) { + if (other + == com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Upgrade.getDefaultInstance()) + return this; + if (!other.getRelease().isEmpty()) { + release_ = other.release_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (inputVariablesBuilder_ == null) { + if (!other.inputVariables_.isEmpty()) { + if (inputVariables_.isEmpty()) { + inputVariables_ = other.inputVariables_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureInputVariablesIsMutable(); + inputVariables_.addAll(other.inputVariables_); + } + onChanged(); + } + } else { + if (!other.inputVariables_.isEmpty()) { + if (inputVariablesBuilder_.isEmpty()) { + inputVariablesBuilder_.dispose(); + inputVariablesBuilder_ = null; + inputVariables_ = other.inputVariables_; + bitField0_ = (bitField0_ & ~0x00000002); + inputVariablesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getInputVariablesFieldBuilder() + : null; + } else { + inputVariablesBuilder_.addAllMessages(other.inputVariables_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + release_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable m = + input.readMessage( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.parser(), + extensionRegistry); + if (inputVariablesBuilder_ == null) { + ensureInputVariablesIsMutable(); + inputVariables_.add(m); + } else { + inputVariablesBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object release_ = ""; + + /** + * + * + *
+     * Optional. Reference to the Release object to use for the Unit. (optional).
+     * 
+ * + * + * string release = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The release. + */ + public java.lang.String getRelease() { + java.lang.Object ref = release_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + release_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Reference to the Release object to use for the Unit. (optional).
+     * 
+ * + * + * string release = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for release. + */ + public com.google.protobuf.ByteString getReleaseBytes() { + java.lang.Object ref = release_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + release_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Reference to the Release object to use for the Unit. (optional).
+     * 
+ * + * + * string release = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The release to set. + * @return This builder for chaining. + */ + public Builder setRelease(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + release_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Reference to the Release object to use for the Unit. (optional).
+     * 
+ * + * + * string release = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRelease() { + release_ = getDefaultInstance().getRelease(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Reference to the Release object to use for the Unit. (optional).
+     * 
+ * + * + * string release = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for release to set. + * @return This builder for chaining. + */ + public Builder setReleaseBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + release_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.util.List + inputVariables_ = java.util.Collections.emptyList(); + + private void ensureInputVariablesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + inputVariables_ = + new java.util.ArrayList< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable>( + inputVariables_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariableOrBuilder> + inputVariablesBuilder_; + + /** + * + * + *
+     * Optional. Set of input variables. Maximum 100. (optional)
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getInputVariablesList() { + if (inputVariablesBuilder_ == null) { + return java.util.Collections.unmodifiableList(inputVariables_); + } else { + return inputVariablesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. Set of input variables. Maximum 100. (optional)
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getInputVariablesCount() { + if (inputVariablesBuilder_ == null) { + return inputVariables_.size(); + } else { + return inputVariablesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. Set of input variables. Maximum 100. (optional)
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable getInputVariables( + int index) { + if (inputVariablesBuilder_ == null) { + return inputVariables_.get(index); + } else { + return inputVariablesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. Set of input variables. Maximum 100. (optional)
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setInputVariables( + int index, com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable value) { + if (inputVariablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInputVariablesIsMutable(); + inputVariables_.set(index, value); + onChanged(); + } else { + inputVariablesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Set of input variables. Maximum 100. (optional)
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setInputVariables( + int index, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Builder + builderForValue) { + if (inputVariablesBuilder_ == null) { + ensureInputVariablesIsMutable(); + inputVariables_.set(index, builderForValue.build()); + onChanged(); + } else { + inputVariablesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Set of input variables. Maximum 100. (optional)
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addInputVariables( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable value) { + if (inputVariablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInputVariablesIsMutable(); + inputVariables_.add(value); + onChanged(); + } else { + inputVariablesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. Set of input variables. Maximum 100. (optional)
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addInputVariables( + int index, com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable value) { + if (inputVariablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInputVariablesIsMutable(); + inputVariables_.add(index, value); + onChanged(); + } else { + inputVariablesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Set of input variables. Maximum 100. (optional)
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addInputVariables( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Builder + builderForValue) { + if (inputVariablesBuilder_ == null) { + ensureInputVariablesIsMutable(); + inputVariables_.add(builderForValue.build()); + onChanged(); + } else { + inputVariablesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Set of input variables. Maximum 100. (optional)
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addInputVariables( + int index, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Builder + builderForValue) { + if (inputVariablesBuilder_ == null) { + ensureInputVariablesIsMutable(); + inputVariables_.add(index, builderForValue.build()); + onChanged(); + } else { + inputVariablesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Set of input variables. Maximum 100. (optional)
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllInputVariables( + java.lang.Iterable< + ? extends com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable> + values) { + if (inputVariablesBuilder_ == null) { + ensureInputVariablesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, inputVariables_); + onChanged(); + } else { + inputVariablesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. Set of input variables. Maximum 100. (optional)
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearInputVariables() { + if (inputVariablesBuilder_ == null) { + inputVariables_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + inputVariablesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. Set of input variables. Maximum 100. (optional)
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeInputVariables(int index) { + if (inputVariablesBuilder_ == null) { + ensureInputVariablesIsMutable(); + inputVariables_.remove(index); + onChanged(); + } else { + inputVariablesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. Set of input variables. Maximum 100. (optional)
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Builder + getInputVariablesBuilder(int index) { + return getInputVariablesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. Set of input variables. Maximum 100. (optional)
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariableOrBuilder + getInputVariablesOrBuilder(int index) { + if (inputVariablesBuilder_ == null) { + return inputVariables_.get(index); + } else { + return inputVariablesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. Set of input variables. Maximum 100. (optional)
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + ? extends com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariableOrBuilder> + getInputVariablesOrBuilderList() { + if (inputVariablesBuilder_ != null) { + return inputVariablesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(inputVariables_); + } + } + + /** + * + * + *
+     * Optional. Set of input variables. Maximum 100. (optional)
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Builder + addInputVariablesBuilder() { + return getInputVariablesFieldBuilder() + .addBuilder( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable + .getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Set of input variables. Maximum 100. (optional)
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Builder + addInputVariablesBuilder(int index) { + return getInputVariablesFieldBuilder() + .addBuilder( + index, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable + .getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Set of input variables. Maximum 100. (optional)
+     * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Builder> + getInputVariablesBuilderList() { + return getInputVariablesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariableOrBuilder> + getInputVariablesFieldBuilder() { + if (inputVariablesBuilder_ == null) { + inputVariablesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariableOrBuilder>( + inputVariables_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + inputVariables_ = null; + } + return inputVariablesBuilder_; + } + + @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.saasplatform.saasservicemgmt.v1beta1.Upgrade) + } + + // @@protoc_insertion_point(class_scope:google.cloud.saasplatform.saasservicemgmt.v1beta1.Upgrade) + private static final com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Upgrade + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Upgrade(); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Upgrade getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Upgrade parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.saasplatform.saasservicemgmt.v1beta1.Upgrade getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UpgradeOrBuilder.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UpgradeOrBuilder.java new file mode 100644 index 000000000000..ddc9e5315789 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UpgradeOrBuilder.java @@ -0,0 +1,125 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_resources.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +public interface UpgradeOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.saasplatform.saasservicemgmt.v1beta1.Upgrade) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Reference to the Release object to use for the Unit. (optional).
+   * 
+ * + * + * string release = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The release. + */ + java.lang.String getRelease(); + + /** + * + * + *
+   * Optional. Reference to the Release object to use for the Unit. (optional).
+   * 
+ * + * + * string release = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for release. + */ + com.google.protobuf.ByteString getReleaseBytes(); + + /** + * + * + *
+   * Optional. Set of input variables. Maximum 100. (optional)
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getInputVariablesList(); + + /** + * + * + *
+   * Optional. Set of input variables. Maximum 100. (optional)
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable getInputVariables(int index); + + /** + * + * + *
+   * Optional. Set of input variables. Maximum 100. (optional)
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getInputVariablesCount(); + + /** + * + * + *
+   * Optional. Set of input variables. Maximum 100. (optional)
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + ? extends com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariableOrBuilder> + getInputVariablesOrBuilderList(); + + /** + * + * + *
+   * Optional. Set of input variables. Maximum 100. (optional)
+   * 
+ * + * + * repeated .google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariable input_variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitVariableOrBuilder + getInputVariablesOrBuilder(int index); +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/VariableMapping.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/VariableMapping.java new file mode 100644 index 000000000000..0bea3a8c794e --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/VariableMapping.java @@ -0,0 +1,1412 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_resources.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +/** + * + * + *
+ * Mapping of input variables to their respective output variable for
+ * depedenencies
+ * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping} + */ +public final class VariableMapping extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping) + VariableMappingOrBuilder { + private static final long serialVersionUID = 0L; + + // Use VariableMapping.newBuilder() to construct. + private VariableMapping(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private VariableMapping() { + variable_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new VariableMapping(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_VariableMapping_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_VariableMapping_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping.Builder.class); + } + + private int mappingTypeCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object mappingType_; + + public enum MappingTypeCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + FROM(2), + TO(3), + MAPPINGTYPE_NOT_SET(0); + private final int value; + + private MappingTypeCase(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 MappingTypeCase valueOf(int value) { + return forNumber(value); + } + + public static MappingTypeCase forNumber(int value) { + switch (value) { + case 2: + return FROM; + case 3: + return TO; + case 0: + return MAPPINGTYPE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public MappingTypeCase getMappingTypeCase() { + return MappingTypeCase.forNumber(mappingTypeCase_); + } + + public static final int FROM_FIELD_NUMBER = 2; + + /** + * + * + *
+   * Optional. Output variables which will get their values from dependencies
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.FromMapping from = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the from field is set. + */ + @java.lang.Override + public boolean hasFrom() { + return mappingTypeCase_ == 2; + } + + /** + * + * + *
+   * Optional. Output variables which will get their values from dependencies
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.FromMapping from = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The from. + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.FromMapping getFrom() { + if (mappingTypeCase_ == 2) { + return (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.FromMapping) mappingType_; + } + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.FromMapping.getDefaultInstance(); + } + + /** + * + * + *
+   * Optional. Output variables which will get their values from dependencies
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.FromMapping from = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.FromMappingOrBuilder + getFromOrBuilder() { + if (mappingTypeCase_ == 2) { + return (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.FromMapping) mappingType_; + } + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.FromMapping.getDefaultInstance(); + } + + public static final int TO_FIELD_NUMBER = 3; + + /** + * + * + *
+   * Optional. Input variables whose values will be passed on to dependencies.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.ToMapping to = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the to field is set. + */ + @java.lang.Override + public boolean hasTo() { + return mappingTypeCase_ == 3; + } + + /** + * + * + *
+   * Optional. Input variables whose values will be passed on to dependencies.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.ToMapping to = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The to. + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ToMapping getTo() { + if (mappingTypeCase_ == 3) { + return (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ToMapping) mappingType_; + } + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ToMapping.getDefaultInstance(); + } + + /** + * + * + *
+   * Optional. Input variables whose values will be passed on to dependencies.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.ToMapping to = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ToMappingOrBuilder getToOrBuilder() { + if (mappingTypeCase_ == 3) { + return (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ToMapping) mappingType_; + } + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ToMapping.getDefaultInstance(); + } + + public static final int VARIABLE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object variable_ = ""; + + /** + * + * + *
+   * Required. name of the variable
+   * 
+ * + * string variable = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The variable. + */ + @java.lang.Override + public java.lang.String getVariable() { + java.lang.Object ref = variable_; + 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(); + variable_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. name of the variable
+   * 
+ * + * string variable = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for variable. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVariableBytes() { + java.lang.Object ref = variable_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + variable_ = 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(variable_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, variable_); + } + if (mappingTypeCase_ == 2) { + output.writeMessage( + 2, (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.FromMapping) mappingType_); + } + if (mappingTypeCase_ == 3) { + output.writeMessage( + 3, (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ToMapping) mappingType_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(variable_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, variable_); + } + if (mappingTypeCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.FromMapping) mappingType_); + } + if (mappingTypeCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ToMapping) mappingType_); + } + size += getUnknownFields().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.saasplatform.saasservicemgmt.v1beta1.VariableMapping)) { + return super.equals(obj); + } + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping other = + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping) obj; + + if (!getVariable().equals(other.getVariable())) return false; + if (!getMappingTypeCase().equals(other.getMappingTypeCase())) return false; + switch (mappingTypeCase_) { + case 2: + if (!getFrom().equals(other.getFrom())) return false; + break; + case 3: + if (!getTo().equals(other.getTo())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + VARIABLE_FIELD_NUMBER; + hash = (53 * hash) + getVariable().hashCode(); + switch (mappingTypeCase_) { + case 2: + hash = (37 * hash) + FROM_FIELD_NUMBER; + hash = (53 * hash) + getFrom().hashCode(); + break; + case 3: + hash = (37 * hash) + TO_FIELD_NUMBER; + hash = (53 * hash) + getTo().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping 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.saasplatform.saasservicemgmt.v1beta1.VariableMapping parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping 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.saasplatform.saasservicemgmt.v1beta1.VariableMapping parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping 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.saasplatform.saasservicemgmt.v1beta1.VariableMapping + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping + 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.saasplatform.saasservicemgmt.v1beta1.VariableMapping parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping 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.saasplatform.saasservicemgmt.v1beta1.VariableMapping 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; + } + + /** + * + * + *
+   * Mapping of input variables to their respective output variable for
+   * depedenencies
+   * 
+ * + * Protobuf type {@code google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping) + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMappingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_VariableMapping_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_VariableMapping_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping.class, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping.Builder.class); + } + + // Construct using + // com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (fromBuilder_ != null) { + fromBuilder_.clear(); + } + if (toBuilder_ != null) { + toBuilder_.clear(); + } + variable_ = ""; + mappingTypeCase_ = 0; + mappingType_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsResourcesProto + .internal_static_google_cloud_saasplatform_saasservicemgmt_v1beta1_VariableMapping_descriptor; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping + getDefaultInstanceForType() { + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping build() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping buildPartial() { + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping result = + new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.variable_ = variable_; + } + } + + private void buildPartialOneofs( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping result) { + result.mappingTypeCase_ = mappingTypeCase_; + result.mappingType_ = this.mappingType_; + if (mappingTypeCase_ == 2 && fromBuilder_ != null) { + result.mappingType_ = fromBuilder_.build(); + } + if (mappingTypeCase_ == 3 && toBuilder_ != null) { + result.mappingType_ = toBuilder_.build(); + } + } + + @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.saasplatform.saasservicemgmt.v1beta1.VariableMapping) { + return mergeFrom( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping other) { + if (other + == com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping + .getDefaultInstance()) return this; + if (!other.getVariable().isEmpty()) { + variable_ = other.variable_; + bitField0_ |= 0x00000004; + onChanged(); + } + switch (other.getMappingTypeCase()) { + case FROM: + { + mergeFrom(other.getFrom()); + break; + } + case TO: + { + mergeTo(other.getTo()); + break; + } + case MAPPINGTYPE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + variable_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 10 + case 18: + { + input.readMessage(getFromFieldBuilder().getBuilder(), extensionRegistry); + mappingTypeCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage(getToFieldBuilder().getBuilder(), extensionRegistry); + mappingTypeCase_ = 3; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int mappingTypeCase_ = 0; + private java.lang.Object mappingType_; + + public MappingTypeCase getMappingTypeCase() { + return MappingTypeCase.forNumber(mappingTypeCase_); + } + + public Builder clearMappingType() { + mappingTypeCase_ = 0; + mappingType_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.FromMapping, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.FromMapping.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.FromMappingOrBuilder> + fromBuilder_; + + /** + * + * + *
+     * Optional. Output variables which will get their values from dependencies
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.FromMapping from = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the from field is set. + */ + @java.lang.Override + public boolean hasFrom() { + return mappingTypeCase_ == 2; + } + + /** + * + * + *
+     * Optional. Output variables which will get their values from dependencies
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.FromMapping from = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The from. + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.FromMapping getFrom() { + if (fromBuilder_ == null) { + if (mappingTypeCase_ == 2) { + return (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.FromMapping) mappingType_; + } + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.FromMapping + .getDefaultInstance(); + } else { + if (mappingTypeCase_ == 2) { + return fromBuilder_.getMessage(); + } + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.FromMapping + .getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. Output variables which will get their values from dependencies
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.FromMapping from = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setFrom( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.FromMapping value) { + if (fromBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + mappingType_ = value; + onChanged(); + } else { + fromBuilder_.setMessage(value); + } + mappingTypeCase_ = 2; + return this; + } + + /** + * + * + *
+     * Optional. Output variables which will get their values from dependencies
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.FromMapping from = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setFrom( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.FromMapping.Builder builderForValue) { + if (fromBuilder_ == null) { + mappingType_ = builderForValue.build(); + onChanged(); + } else { + fromBuilder_.setMessage(builderForValue.build()); + } + mappingTypeCase_ = 2; + return this; + } + + /** + * + * + *
+     * Optional. Output variables which will get their values from dependencies
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.FromMapping from = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeFrom( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.FromMapping value) { + if (fromBuilder_ == null) { + if (mappingTypeCase_ == 2 + && mappingType_ + != com.google.cloud.saasplatform.saasservicemgmt.v1beta1.FromMapping + .getDefaultInstance()) { + mappingType_ = + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.FromMapping.newBuilder( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.FromMapping) + mappingType_) + .mergeFrom(value) + .buildPartial(); + } else { + mappingType_ = value; + } + onChanged(); + } else { + if (mappingTypeCase_ == 2) { + fromBuilder_.mergeFrom(value); + } else { + fromBuilder_.setMessage(value); + } + } + mappingTypeCase_ = 2; + return this; + } + + /** + * + * + *
+     * Optional. Output variables which will get their values from dependencies
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.FromMapping from = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearFrom() { + if (fromBuilder_ == null) { + if (mappingTypeCase_ == 2) { + mappingTypeCase_ = 0; + mappingType_ = null; + onChanged(); + } + } else { + if (mappingTypeCase_ == 2) { + mappingTypeCase_ = 0; + mappingType_ = null; + } + fromBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. Output variables which will get their values from dependencies
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.FromMapping from = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.FromMapping.Builder + getFromBuilder() { + return getFromFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Output variables which will get their values from dependencies
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.FromMapping from = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.FromMappingOrBuilder + getFromOrBuilder() { + if ((mappingTypeCase_ == 2) && (fromBuilder_ != null)) { + return fromBuilder_.getMessageOrBuilder(); + } else { + if (mappingTypeCase_ == 2) { + return (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.FromMapping) mappingType_; + } + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.FromMapping + .getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. Output variables which will get their values from dependencies
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.FromMapping from = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.FromMapping, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.FromMapping.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.FromMappingOrBuilder> + getFromFieldBuilder() { + if (fromBuilder_ == null) { + if (!(mappingTypeCase_ == 2)) { + mappingType_ = + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.FromMapping + .getDefaultInstance(); + } + fromBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.FromMapping, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.FromMapping.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.FromMappingOrBuilder>( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.FromMapping) mappingType_, + getParentForChildren(), + isClean()); + mappingType_ = null; + } + mappingTypeCase_ = 2; + onChanged(); + return fromBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ToMapping, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ToMapping.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ToMappingOrBuilder> + toBuilder_; + + /** + * + * + *
+     * Optional. Input variables whose values will be passed on to dependencies.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.ToMapping to = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the to field is set. + */ + @java.lang.Override + public boolean hasTo() { + return mappingTypeCase_ == 3; + } + + /** + * + * + *
+     * Optional. Input variables whose values will be passed on to dependencies.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.ToMapping to = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The to. + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ToMapping getTo() { + if (toBuilder_ == null) { + if (mappingTypeCase_ == 3) { + return (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ToMapping) mappingType_; + } + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ToMapping.getDefaultInstance(); + } else { + if (mappingTypeCase_ == 3) { + return toBuilder_.getMessage(); + } + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ToMapping.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. Input variables whose values will be passed on to dependencies.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.ToMapping to = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTo(com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ToMapping value) { + if (toBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + mappingType_ = value; + onChanged(); + } else { + toBuilder_.setMessage(value); + } + mappingTypeCase_ = 3; + return this; + } + + /** + * + * + *
+     * Optional. Input variables whose values will be passed on to dependencies.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.ToMapping to = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTo( + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ToMapping.Builder builderForValue) { + if (toBuilder_ == null) { + mappingType_ = builderForValue.build(); + onChanged(); + } else { + toBuilder_.setMessage(builderForValue.build()); + } + mappingTypeCase_ = 3; + return this; + } + + /** + * + * + *
+     * Optional. Input variables whose values will be passed on to dependencies.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.ToMapping to = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeTo(com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ToMapping value) { + if (toBuilder_ == null) { + if (mappingTypeCase_ == 3 + && mappingType_ + != com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ToMapping + .getDefaultInstance()) { + mappingType_ = + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ToMapping.newBuilder( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ToMapping) + mappingType_) + .mergeFrom(value) + .buildPartial(); + } else { + mappingType_ = value; + } + onChanged(); + } else { + if (mappingTypeCase_ == 3) { + toBuilder_.mergeFrom(value); + } else { + toBuilder_.setMessage(value); + } + } + mappingTypeCase_ = 3; + return this; + } + + /** + * + * + *
+     * Optional. Input variables whose values will be passed on to dependencies.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.ToMapping to = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearTo() { + if (toBuilder_ == null) { + if (mappingTypeCase_ == 3) { + mappingTypeCase_ = 0; + mappingType_ = null; + onChanged(); + } + } else { + if (mappingTypeCase_ == 3) { + mappingTypeCase_ = 0; + mappingType_ = null; + } + toBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. Input variables whose values will be passed on to dependencies.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.ToMapping to = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ToMapping.Builder getToBuilder() { + return getToFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Input variables whose values will be passed on to dependencies.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.ToMapping to = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ToMappingOrBuilder + getToOrBuilder() { + if ((mappingTypeCase_ == 3) && (toBuilder_ != null)) { + return toBuilder_.getMessageOrBuilder(); + } else { + if (mappingTypeCase_ == 3) { + return (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ToMapping) mappingType_; + } + return com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ToMapping.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. Input variables whose values will be passed on to dependencies.
+     * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.ToMapping to = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ToMapping, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ToMapping.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ToMappingOrBuilder> + getToFieldBuilder() { + if (toBuilder_ == null) { + if (!(mappingTypeCase_ == 3)) { + mappingType_ = + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ToMapping.getDefaultInstance(); + } + toBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ToMapping, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ToMapping.Builder, + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ToMappingOrBuilder>( + (com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ToMapping) mappingType_, + getParentForChildren(), + isClean()); + mappingType_ = null; + } + mappingTypeCase_ = 3; + onChanged(); + return toBuilder_; + } + + private java.lang.Object variable_ = ""; + + /** + * + * + *
+     * Required. name of the variable
+     * 
+ * + * string variable = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The variable. + */ + public java.lang.String getVariable() { + java.lang.Object ref = variable_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + variable_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. name of the variable
+     * 
+ * + * string variable = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for variable. + */ + public com.google.protobuf.ByteString getVariableBytes() { + java.lang.Object ref = variable_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + variable_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. name of the variable
+     * 
+ * + * string variable = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The variable to set. + * @return This builder for chaining. + */ + public Builder setVariable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + variable_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. name of the variable
+     * 
+ * + * string variable = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearVariable() { + variable_ = getDefaultInstance().getVariable(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. name of the variable
+     * 
+ * + * string variable = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for variable to set. + * @return This builder for chaining. + */ + public Builder setVariableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + variable_ = value; + bitField0_ |= 0x00000004; + 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.saasplatform.saasservicemgmt.v1beta1.VariableMapping) + } + + // @@protoc_insertion_point(class_scope:google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping) + private static final com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping(); + } + + public static com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VariableMapping parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.saasplatform.saasservicemgmt.v1beta1.VariableMapping + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/VariableMappingOrBuilder.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/VariableMappingOrBuilder.java new file mode 100644 index 000000000000..7a9c202ead3d --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/VariableMappingOrBuilder.java @@ -0,0 +1,141 @@ +/* + * Copyright 2025 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/saasplatform/saasservicemgmt/v1beta1/deployments_resources.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.saasplatform.saasservicemgmt.v1beta1; + +public interface VariableMappingOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Output variables which will get their values from dependencies
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.FromMapping from = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the from field is set. + */ + boolean hasFrom(); + + /** + * + * + *
+   * Optional. Output variables which will get their values from dependencies
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.FromMapping from = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The from. + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.FromMapping getFrom(); + + /** + * + * + *
+   * Optional. Output variables which will get their values from dependencies
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.FromMapping from = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.FromMappingOrBuilder getFromOrBuilder(); + + /** + * + * + *
+   * Optional. Input variables whose values will be passed on to dependencies.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.ToMapping to = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the to field is set. + */ + boolean hasTo(); + + /** + * + * + *
+   * Optional. Input variables whose values will be passed on to dependencies.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.ToMapping to = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The to. + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ToMapping getTo(); + + /** + * + * + *
+   * Optional. Input variables whose values will be passed on to dependencies.
+   * 
+ * + * + * .google.cloud.saasplatform.saasservicemgmt.v1beta1.ToMapping to = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ToMappingOrBuilder getToOrBuilder(); + + /** + * + * + *
+   * Required. name of the variable
+   * 
+ * + * string variable = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The variable. + */ + java.lang.String getVariable(); + + /** + * + * + *
+   * Required. name of the variable
+   * 
+ * + * string variable = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for variable. + */ + com.google.protobuf.ByteString getVariableBytes(); + + com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping.MappingTypeCase + getMappingTypeCase(); +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/proto/google/cloud/saasplatform/saasservicemgmt/v1beta1/common.proto b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/proto/google/cloud/saasplatform/saasservicemgmt/v1beta1/common.proto new file mode 100644 index 000000000000..339523adb568 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/proto/google/cloud/saasplatform/saasservicemgmt/v1beta1/common.proto @@ -0,0 +1,227 @@ +// Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1; + +import "google/api/field_behavior.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.SaasPlatform.SaasServiceMgmt.V1Beta1"; +option go_package = "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb;saasservicemgmtpb"; +option java_multiple_files = true; +option java_outer_classname = "CommonProto"; +option java_package = "com.google.cloud.saasplatform.saasservicemgmt.v1beta1"; +option php_namespace = "Google\\Cloud\\SaasPlatform\\SaasServiceMgmt\\V1beta1"; +option ruby_package = "Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1"; + +// UnitOperationErrorCategory describes the error category of the unit +// operation. +enum UnitOperationErrorCategory { + // Unit operation error category is unspecified + UNIT_OPERATION_ERROR_CATEGORY_UNSPECIFIED = 0; + + // Unit operation error category is not applicable, or it is not an error + NOT_APPLICABLE = 1; + + // Unit operation error category is fatal + FATAL = 2; + + // Unit operation error category is retriable + RETRIABLE = 3; + + // Unit operation error category is ignorable + IGNORABLE = 4; + + // Unit operation error category is standard, counts towards Rollout error + // budget + STANDARD = 5; +} + +// Blueprints are OCI Images that contain all of the artifacts needed to +// provision a unit. Metadata such as, type of the engine used to actuate the +// blueprint (e.g. terraform, helm etc) and version will come from the image +// manifest. If the hostname is omitted, it will be assumed to be the regional +// path to Artifact Registry (eg. us-east1-docker.pkg.dev). +message Blueprint { + // Optional. Immutable. URI to a blueprint used by the Unit (required unless + // unitKind or release is set). + string package = 1 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = IMMUTABLE + ]; + + // Output only. Type of the engine used to actuate the blueprint. e.g. + // terraform, helm etc. + string engine = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Version metadata if present on the blueprint. + string version = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// UnitVariable describes a parameter for a Unit. +message UnitVariable { + // Enumeration of variable types. + enum Type { + // Variable type is unspecified. + TYPE_UNSPECIFIED = 0; + + // Variable type is string. + STRING = 1; + + // Variable type is int. + INT = 2; + + // Variable type is bool. + BOOL = 3; + } + + // Required. Immutable. Name of the variable from actuation configs. + string variable = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE + ]; + + // Optional. Immutable. Name of a supported variable type. Supported types are + // string, int, bool. + Type type = 2 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = IMMUTABLE + ]; + + // Optional. String encoded value for the variable. + string value = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// UnitCondition describes the status of an Unit. UnitCondition is individual +// components that contribute to an overall state. +message UnitCondition { + // Enumeration of condition statuses. + enum Status { + // Condition status is unspecified. + STATUS_UNSPECIFIED = 0; + + // Condition is unknown. + STATUS_UNKNOWN = 1; + + // Condition is true. + STATUS_TRUE = 2; + + // Condition is false. + STATUS_FALSE = 3; + } + + // Enumeration of condition types. + enum Type { + // Condition type is unspecified. + TYPE_UNSPECIFIED = 0; + + // Condition type is ready. + TYPE_READY = 1; + + // Condition type is updating. + TYPE_UPDATING = 2; + + // Condition type is provisioned. + TYPE_PROVISIONED = 3; + + // Condition type is operationError. + // True when the last unit operation fails with a non-ignorable error. + TYPE_OPERATION_ERROR = 4; + } + + // Required. Status of the condition. + Status status = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Type of the condition. + Type type = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. Last time the condition transited from one status to another. + google.protobuf.Timestamp last_transition_time = 3 + [(google.api.field_behavior) = REQUIRED]; + + // Required. Human readable message indicating details about the last + // transition. + string message = 4 [(google.api.field_behavior) = REQUIRED]; + + // Required. Brief reason for the condition's last transition. + string reason = 5 [(google.api.field_behavior) = REQUIRED]; +} + +// UnitOperationCondition describes the status of an Unit Operation. +// UnitOperationCondition is individual components that contribute to an overall +// state. +message UnitOperationCondition { + // Enumeration of condition statuses. + enum Status { + // Condition status is unspecified. + STATUS_UNSPECIFIED = 0; + + // Condition is unknown. + STATUS_UNKNOWN = 1; + + // Condition is true. + STATUS_TRUE = 2; + + // Condition is false. + STATUS_FALSE = 3; + } + + // Enumeration of condition types. + enum Type { + // Condition type is unspecified. + TYPE_UNSPECIFIED = 0; + + // Condition type is scheduled. + TYPE_SCHEDULED = 2; + + // Condition type is running. + TYPE_RUNNING = 3; + + // Condition type is succeeded. + TYPE_SUCCEEDED = 4; + + // Condition type is cancelled. + TYPE_CANCELLED = 5; + } + + // Required. Status of the condition. + Status status = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Type of the condition. + Type type = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. Last time the condition transited from one status to another. + google.protobuf.Timestamp last_transition_time = 3 + [(google.api.field_behavior) = REQUIRED]; + + // Required. Human readable message indicating details about the last + // transition. + string message = 4 [(google.api.field_behavior) = REQUIRED]; + + // Required. Brief reason for the condition's last transition. + string reason = 5 [(google.api.field_behavior) = REQUIRED]; +} + +// Represents the aggregation of a set of population of like records by a +// certain group. For example, a collection of unit counts can be aggregated and +// grouped by their state. +message Aggregate { + // Required. Group by which to aggregate. + string group = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Number of records in the group. + int32 count = 2 [(google.api.field_behavior) = REQUIRED]; +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/proto/google/cloud/saasplatform/saasservicemgmt/v1beta1/deployments_resources.proto b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/proto/google/cloud/saasplatform/saasservicemgmt/v1beta1/deployments_resources.proto new file mode 100644 index 000000000000..be75899128d0 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/proto/google/cloud/saasplatform/saasservicemgmt/v1beta1/deployments_resources.proto @@ -0,0 +1,911 @@ +// Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1; + +import "google/api/field_behavior.proto"; +import "google/api/field_info.proto"; +import "google/api/resource.proto"; +import "google/cloud/saasplatform/saasservicemgmt/v1beta1/common.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.SaasPlatform.SaasServiceMgmt.V1Beta1"; +option go_package = "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb;saasservicemgmtpb"; +option java_multiple_files = true; +option java_outer_classname = "SaasDeploymentsResourcesProto"; +option java_package = "com.google.cloud.saasplatform.saasservicemgmt.v1beta1"; +option php_namespace = "Google\\Cloud\\SaasPlatform\\SaasServiceMgmt\\V1beta1"; +option ruby_package = "Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1"; + +// Location information that the service is available in. +message Location { + // Optional. Name of location. + string name = 1 [(google.api.field_behavior) = OPTIONAL]; +} + +// Saas is a representation of a SaaS service managed by the Producer. +message Saas { + option (google.api.resource) = { + type: "saasservicemgmt.googleapis.com/Saas" + pattern: "projects/{project}/locations/{location}/saas/{saas}" + plural: "saas" + singular: "saas" + }; + + // Identifier. The resource name (full URI of the resource) following the + // standard naming scheme: + // + // "projects/{project}/locations/{location}/saas/{saas}" + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Optional. List of locations that the service is available in. Rollout + // refers to the list to generate a rollout plan. + repeated Location locations = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The labels on the resource, which can be used for categorization. + // similar to Kubernetes resource labels. + map labels = 10401 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Annotations is an unstructured key-value map stored with a + // resource that may be set by external tools to store and retrieve arbitrary + // metadata. They are not queryable and should be preserved when modifying + // objects. + // + // More info: https://kubernetes.io/docs/user-guide/annotations + map annotations = 10402 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The unique identifier of the resource. UID is unique in the + // time and space for this resource within the scope of the service. It is + // typically generated by the server on successful creation of a resource + // and must not be changed. UID is used to uniquely identify resources + // with resource name reuses. This should be a UUID4. + string uid = 10201 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OUTPUT_ONLY + ]; + + // Output only. An opaque value that uniquely identifies a version or + // generation of a resource. It can be used to confirm that the client + // and server agree on the ordering of a resource being written. + string etag = 10202 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The timestamp when the resource was created. + google.protobuf.Timestamp create_time = 10303 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The timestamp when the resource was last updated. Any + // change to the resource made by users must refresh this value. + // Changes to a resource made by the service should refresh this value. + google.protobuf.Timestamp update_time = 10304 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Tenant represents the service producer side of an instance of the +// service created based on a request from a consumer. In a typical scenario a +// Tenant has a one-to-one mapping with a resource given out to a service +// consumer. +// +// Example: +// +// tenant: +// name: "projects/svc1/locations/loc/tenants/inst-068afff8" +// consumer_resource: "projects/gshoe/locations/loc/shoes/black-shoe" +message Tenant { + option (google.api.resource) = { + type: "saasservicemgmt.googleapis.com/Tenant" + pattern: "projects/{project}/locations/{location}/tenants/{tenant}" + plural: "tenants" + singular: "tenant" + }; + + // Identifier. The resource name (full URI of the resource) following the + // standard naming scheme: + // + // "projects/{project}/locations/{location}/tenants/{tenant}" + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Optional. Immutable. A reference to the consumer resource this SaaS Tenant + // is representing. + // + // The relationship with a consumer resource can be used by SaaS Runtime for + // retrieving consumer-defined settings and policies such as maintenance + // policies (using Unified Maintenance Policy API). + string consumer_resource = 2 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = IMMUTABLE + ]; + + // Required. Immutable. A reference to the Saas that defines the product + // (managed service) that the producer wants to manage with SaaS Runtime. Part + // of the SaaS Runtime common data model. + string saas = 3 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "saasservicemgmt.googleapis.com/Saas" + } + ]; + + // Optional. The labels on the resource, which can be used for categorization. + // similar to Kubernetes resource labels. + map labels = 10401 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Annotations is an unstructured key-value map stored with a + // resource that may be set by external tools to store and retrieve arbitrary + // metadata. They are not queryable and should be preserved when modifying + // objects. + // + // More info: https://kubernetes.io/docs/user-guide/annotations + map annotations = 10402 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The unique identifier of the resource. UID is unique in the + // time and space for this resource within the scope of the service. It is + // typically generated by the server on successful creation of a resource + // and must not be changed. UID is used to uniquely identify resources + // with resource name reuses. This should be a UUID4. + string uid = 10201 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OUTPUT_ONLY + ]; + + // Output only. An opaque value that uniquely identifies a version or + // generation of a resource. It can be used to confirm that the client + // and server agree on the ordering of a resource being written. + string etag = 10202 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The timestamp when the resource was created. + google.protobuf.Timestamp create_time = 10303 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The timestamp when the resource was last updated. Any + // change to the resource made by users must refresh this value. + // Changes to a resource made by the service should refresh this value. + google.protobuf.Timestamp update_time = 10304 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Definition of a Unit. Units belonging to the same UnitKind are managed +// together; for example they follow the same release model (blueprints, +// versions etc.) and are typically rolled out together. +message UnitKind { + option (google.api.resource) = { + type: "saasservicemgmt.googleapis.com/UnitKind" + pattern: "projects/{project}/locations/{location}/unitKinds/{unitKind}" + plural: "unitKinds" + singular: "unitKind" + }; + + // Identifier. The resource name (full URI of the resource) following the + // standard naming scheme: + // + // "projects/{project}/locations/{location}/unitKinds/{unitKind}" + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Optional. A reference to the Release object to use as default for creating + // new units of this UnitKind (optional). + // + // If not specified, a new unit must explicitly reference which release to use + // for its creation. + string default_release = 2 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "saasservicemgmt.googleapis.com/Release" + } + ]; + + // Optional. Immutable. List of other unit kinds that this release will depend + // on. Dependencies will be automatically provisioned if not found. + // Maximum 10. + repeated Dependency dependencies = 4 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = IMMUTABLE + ]; + + // Optional. List of inputVariables for this release that will either be + // retrieved from a dependency’s outputVariables, or will be passed on to a + // dependency’s inputVariables. Maximum 100. + repeated VariableMapping input_variable_mappings = 5 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. List of outputVariables for this unit kind will be passed to this + // unit's outputVariables. Maximum 100. + repeated VariableMapping output_variable_mappings = 6 + [(google.api.field_behavior) = OPTIONAL]; + + // Required. Immutable. A reference to the Saas that defines the product + // (managed service) that the producer wants to manage with SaaS Runtime. Part + // of the SaaS Runtime common data model. Immutable once set. + string saas = 8 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "saasservicemgmt.googleapis.com/Saas" + } + ]; + + // Optional. The labels on the resource, which can be used for categorization. + // similar to Kubernetes resource labels. + map labels = 10401 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Annotations is an unstructured key-value map stored with a + // resource that may be set by external tools to store and retrieve arbitrary + // metadata. They are not queryable and should be preserved when modifying + // objects. + // + // More info: https://kubernetes.io/docs/user-guide/annotations + map annotations = 10402 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The unique identifier of the resource. UID is unique in the + // time and space for this resource within the scope of the service. It is + // typically generated by the server on successful creation of a resource + // and must not be changed. UID is used to uniquely identify resources + // with resource name reuses. This should be a UUID4. + string uid = 10201 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OUTPUT_ONLY + ]; + + // Output only. An opaque value that uniquely identifies a version or + // generation of a resource. It can be used to confirm that the client + // and server agree on the ordering of a resource being written. + string etag = 10202 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The timestamp when the resource was created. + google.protobuf.Timestamp create_time = 10303 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The timestamp when the resource was last updated. Any + // change to the resource made by users must refresh this value. + // Changes to a resource made by the service should refresh this value. + google.protobuf.Timestamp update_time = 10304 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// A unit of deployment that has its lifecycle via a CRUD API using an actuation +// engine under the hood (e.g. based on Terraform, Helm or a custom +// implementation provided by a service producer). A building block of a SaaS +// Tenant. +message Unit { + option (google.api.resource) = { + type: "saasservicemgmt.googleapis.com/Unit" + pattern: "projects/{project}/locations/{location}/units/{unit}" + plural: "units" + singular: "unit" + }; + + // Captures requested directives for performing future maintenance on the + // unit. This includes a request for the unit to skip maintenance for a period + // of time and remain pinned to its current release as well as controls for + // postponing maintenance scheduled in future. + message MaintenanceSettings { + // Optional. If present, it fixes the release on the unit until the given + // time; i.e. changes to the release field will be rejected. Rollouts should + // and will also respect this by not requesting an upgrade in the first + // place. + google.protobuf.Timestamp pinned_until_time = 1 + [(google.api.field_behavior) = OPTIONAL]; + } + + // UnitState annotates what is the current state of the unit itself. + enum UnitState { + // Unspecified state. + UNIT_STATE_UNSPECIFIED = 0; + + // Unit is not provisioned. + UNIT_STATE_NOT_PROVISIONED = 1; + + // Unit is being provisioned. + UNIT_STATE_PROVISIONING = 2; + + // Unit is being updated. This is typically when a unit is being upgraded to + // a new release or some of the input variables on the Unit is being + // changed. Certain kinds of updates may cause the Unit to become unusable + // while the update is in progress. + UNIT_STATE_UPDATING = 3; + + // Unit is being deleted. + UNIT_STATE_DEPROVISIONING = 4; + + // Unit has been provisioned and is ready for use + UNIT_STATE_READY = 5; + + // Unit has error, when it is not ready and some error operation + UNIT_STATE_ERROR = 6; + } + + // ManagementMode describes who is responsible for the management of the unit. + enum ManagementMode { + MANAGEMENT_MODE_UNSPECIFIED = 0; + + // Unit's lifecycle is managed by the user. + MANAGEMENT_MODE_USER = 1; + + // The system will decide when to deprovision and delete the unit. + // User still can deprovision or delete the unit manually. + MANAGEMENT_MODE_SYSTEM = 2; + } + + enum SystemManagedState { + SYSTEM_MANAGED_STATE_UNSPECIFIED = 0; + + // Unit has dependents attached. + SYSTEM_MANAGED_STATE_ACTIVE = 1; + + // Unit has no dependencies attached, but attachment is allowed. + SYSTEM_MANAGED_STATE_INACTIVE = 2; + + // Unit has no dependencies attached, and attachment is not allowed. + SYSTEM_MANAGED_STATE_DECOMMISSIONED = 3; + } + + // Identifier. The resource name (full URI of the resource) following the + // standard naming scheme: + // + // "projects/{project}/locations/{location}/units/{unit}" + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Optional. Reference to the UnitKind this Unit belongs to. Immutable once + // set. + string unit_kind = 2 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "saasservicemgmt.googleapis.com/UnitKind" + } + ]; + + // Optional. Output only. The current Release object for this Unit. + string release = 13 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "saasservicemgmt.googleapis.com/Release" + } + ]; + + // Optional. Reference to the Saas Tenant resource this unit belongs to. This + // for example informs the maintenance policies to use for scheduling future + // updates on a unit. (optional and immutable once created) + string tenant = 4 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "saasservicemgmt.googleapis.com/Tenant" + } + ]; + + // Optional. Output only. List of concurrent UnitOperations that are operating + // on this Unit. + repeated string ongoing_operations = 5 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "saasservicemgmt.googleapis.com/UnitOperation" + } + ]; + + // Optional. Output only. List of pending (wait to be executed) UnitOperations + // for this unit. + repeated string pending_operations = 6 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "saasservicemgmt.googleapis.com/UnitOperation" + } + ]; + + // Optional. Output only. List of scheduled UnitOperations for this unit. + repeated string scheduled_operations = 24 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "saasservicemgmt.googleapis.com/UnitOperation" + } + ]; + + // Optional. Output only. List of Units that depend on this unit. Unit can + // only be deprovisioned if this list is empty. Maximum 1000. + repeated UnitDependency dependents = 7 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = OUTPUT_ONLY + ]; + + // Optional. Output only. Set of dependencies for this unit. Maximum 10. + repeated UnitDependency dependencies = 8 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = OUTPUT_ONLY + ]; + + // Optional. Output only. Indicates the current input variables deployed by + // the unit + repeated UnitVariable input_variables = 9 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = OUTPUT_ONLY + ]; + + // Optional. Output only. Set of key/value pairs corresponding to output + // variables from execution of actuation templates. The variables are declared + // in actuation configs (e.g in helm chart or terraform) and the values are + // fetched and returned by the actuation engine upon completion of execution. + repeated UnitVariable output_variables = 10 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = OUTPUT_ONLY + ]; + + // Optional. Captures requested directives for performing future maintenance + // on the unit. This includes a request for the unit to skip maintenance for a + // period of time and remain pinned to its current release as well as controls + // for postponing maintenance scheduled in future. + MaintenanceSettings maintenance = 14 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Output only. Current lifecycle state of the resource (e.g. if + // it's being created or ready to use). + UnitState state = 16 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = OUTPUT_ONLY + ]; + + // Optional. Output only. A set of conditions which indicate the various + // conditions this resource can have. + repeated UnitCondition conditions = 20 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = OUTPUT_ONLY + ]; + + // Optional. Immutable. Indicates whether the Unit life cycle is controlled + // by the user or by the system. + // Immutable once created. + ManagementMode management_mode = 22 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = IMMUTABLE + ]; + + // Optional. Output only. Indicates the system managed state of the unit. + SystemManagedState system_managed_state = 25 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = OUTPUT_ONLY + ]; + + // Optional. Output only. If set, indicates the time when the system will + // start removing the unit. + google.protobuf.Timestamp system_cleanup_at = 26 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = OUTPUT_ONLY + ]; + + // Optional. The labels on the resource, which can be used for categorization. + // similar to Kubernetes resource labels. + map labels = 10401 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Annotations is an unstructured key-value map stored with a + // resource that may be set by external tools to store and retrieve arbitrary + // metadata. They are not queryable and should be preserved when modifying + // objects. + // + // More info: https://kubernetes.io/docs/user-guide/annotations + map annotations = 10402 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The unique identifier of the resource. UID is unique in the + // time and space for this resource within the scope of the service. It is + // typically generated by the server on successful creation of a resource + // and must not be changed. UID is used to uniquely identify resources + // with resource name reuses. This should be a UUID4. + string uid = 10201 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OUTPUT_ONLY + ]; + + // Output only. An opaque value that uniquely identifies a version or + // generation of a resource. It can be used to confirm that the client + // and server agree on the ordering of a resource being written. + string etag = 10202 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The timestamp when the resource was created. + google.protobuf.Timestamp create_time = 10303 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The timestamp when the resource was last updated. Any + // change to the resource made by users must refresh this value. + // Changes to a resource made by the service should refresh this value. + google.protobuf.Timestamp update_time = 10304 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Set of dependencies for this unit. Maximum 10. +message UnitDependency { + // Output only. Alias for the name of the dependency. + string alias = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. A reference to the Unit object. + string unit = 2 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "saasservicemgmt.googleapis.com/Unit" + } + ]; +} + +// UnitOperation encapsulates the intent of changing/interacting with the +// service component represented by the specific Unit. Multiple UnitOperations +// can be created (requested) and scheduled in the future, however only one will +// be allowed to execute at a time (that can change in the future for +// non-mutating operations). +// +// UnitOperations allow different actors interacting with the same +// unit to focus only on the change they have requested. +// +// This is a base object that contains the common fields in all unit operations. +// Next: 19 +message UnitOperation { + option (google.api.resource) = { + type: "saasservicemgmt.googleapis.com/UnitOperation" + pattern: "projects/{project}/locations/{location}/unitOperations/{unitOperation}" + plural: "unitOperations" + singular: "unitOperation" + }; + + // UnitOperationState describes the current state of the unit operation. + enum UnitOperationState { + UNIT_OPERATION_STATE_UNKNOWN = 0; + + // Unit operation is accepted but not ready to run. + UNIT_OPERATION_STATE_PENDING = 1; + + // Unit operation is accepted and scheduled. + UNIT_OPERATION_STATE_SCHEDULED = 2; + + // Unit operation is running. + UNIT_OPERATION_STATE_RUNNING = 4; + + // Unit operation has completed successfully. + UNIT_OPERATION_STATE_SUCCEEDED = 5; + + // Unit operation has failed. + UNIT_OPERATION_STATE_FAILED = 6; + + // Unit operation was cancelled. + UNIT_OPERATION_STATE_CANCELLED = 7; + } + + oneof unit_operation_type { + Provision provision = 8 [(google.api.field_behavior) = OPTIONAL]; + + Upgrade upgrade = 9 [(google.api.field_behavior) = OPTIONAL]; + + Deprovision deprovision = 10 [(google.api.field_behavior) = OPTIONAL]; + } + + // Identifier. The resource name (full URI of the resource) following the + // standard naming scheme: + // + // "projects/{project}/locations/{location}/unitOperations/{unitOperation}" + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Required. Immutable. The Unit a given UnitOperation will act upon. + string unit = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "saasservicemgmt.googleapis.com/Unit" + } + ]; + + // Optional. Reference to parent resource: UnitOperation. If an operation + // needs to create other operations as part of its workflow, each of the child + // operations should have this field set to the parent. This can be used for + // tracing. (Optional) + string parent_unit_operation = 3 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "saasservicemgmt.googleapis.com/UnitOperation" + } + ]; + + // Optional. Specifies which rollout created this Unit Operation. This cannot + // be modified and is used for filtering purposes only. If a dependent unit + // and unit operation are created as part of another unit operation, they will + // use the same rolloutId. + string rollout = 4 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "saasservicemgmt.googleapis.com/Rollout" + } + ]; + + // Optional. When true, attempt to cancel the operation. Cancellation may fail + // if the operation is already executing. (Optional) + bool cancel = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Output only. UnitOperationState describes the current state of + // the unit operation. + UnitOperationState state = 6 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = OUTPUT_ONLY + ]; + + // Optional. Output only. A set of conditions which indicate the various + // conditions this resource can have. + repeated UnitOperationCondition conditions = 7 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = OUTPUT_ONLY + ]; + + // Optional. When to schedule this operation. + Schedule schedule = 12 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Output only. The engine state for on-going + // deployment engine operation(s). + // This field is opaque for external usage. + string engine_state = 14 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = OUTPUT_ONLY + ]; + + // Optional. Output only. UnitOperationErrorCategory describe the error + // category. + UnitOperationErrorCategory error_category = 15 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = OUTPUT_ONLY + ]; + + // Optional. The labels on the resource, which can be used for categorization. + // similar to Kubernetes resource labels. + map labels = 10401 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Annotations is an unstructured key-value map stored with a + // resource that may be set by external tools to store and retrieve arbitrary + // metadata. They are not queryable and should be preserved when modifying + // objects. + // + // More info: https://kubernetes.io/docs/user-guide/annotations + map annotations = 10402 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The unique identifier of the resource. UID is unique in the + // time and space for this resource within the scope of the service. It is + // typically generated by the server on successful creation of a resource + // and must not be changed. UID is used to uniquely identify resources + // with resource name reuses. This should be a UUID4. + string uid = 10201 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OUTPUT_ONLY + ]; + + // Output only. An opaque value that uniquely identifies a version or + // generation of a resource. It can be used to confirm that the client + // and server agree on the ordering of a resource being written. + string etag = 10202 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The timestamp when the resource was created. + google.protobuf.Timestamp create_time = 10303 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The timestamp when the resource was last updated. Any + // change to the resource made by users must refresh this value. + // Changes to a resource made by the service should refresh this value. + google.protobuf.Timestamp update_time = 10304 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Provision is the unit operation that provision the underlying resources +// represented by a Unit. Can only execute if the Unit is not currently +// provisioned. +message Provision { + // Optional. Reference to the Release object to use for the Unit. (optional). + string release = 1 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "saasservicemgmt.googleapis.com/Release" + } + ]; + + // Optional. Set of input variables. Maximum 100. (optional) + repeated UnitVariable input_variables = 3 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Deprovision is the unit operation that deprovision the underlying +// resources represented by a Unit. Can only execute if the Unit is currently +// provisioned. +message Deprovision {} + +// Upgrade is the unit operation that upgrades a provisioned unit, which may +// also include the underlying resources represented by a Unit. Can only execute +// if the Unit is currently provisioned. +message Upgrade { + // Optional. Reference to the Release object to use for the Unit. (optional). + string release = 1 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "saasservicemgmt.googleapis.com/Release" + } + ]; + + // Optional. Set of input variables. Maximum 100. (optional) + repeated UnitVariable input_variables = 2 + [(google.api.field_behavior) = OPTIONAL]; +} + +// A time specification to schedule the maintenance. +message Schedule { + // Optional. Start of operation. If not set, will be set to the start of the + // next window. (optional) + google.protobuf.Timestamp start_time = 1 + [(google.api.field_behavior) = OPTIONAL]; +} + +// A new version to be propagated and deployed to units. This includes pointers +// to packaged blueprints for actuation (e.g Helm or Terraform configuration +// packages) via artifact registry. +message Release { + option (google.api.resource) = { + type: "saasservicemgmt.googleapis.com/Release" + pattern: "projects/{project}/locations/{location}/releases/{release}" + plural: "releases" + singular: "release" + }; + + // Set of requirements to be fulfilled on the Unit when using this Release. + message ReleaseRequirements { + // Optional. A list of releases from which a unit can be upgraded to this + // one (optional). If left empty no constraints will be applied. When + // provided, unit upgrade requests to this release will check and enforce + // this constraint. + repeated string upgradeable_from_releases = 1 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "saasservicemgmt.googleapis.com/Release" + } + ]; + } + + // Identifier. The resource name (full URI of the resource) following the + // standard naming scheme: + // + // "projects/{project}/locations/{location}/releases/{release}" + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Required. Immutable. Reference to the UnitKind this Release corresponds to + // (required and immutable once created). + string unit_kind = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "saasservicemgmt.googleapis.com/UnitKind" + } + ]; + + // Optional. Blueprints are OCI Images that contain all of the artifacts + // needed to provision a unit. + Blueprint blueprint = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Set of requirements to be fulfilled on the Unit when using this + // Release. + ReleaseRequirements release_requirements = 4 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Output only. List of input variables declared on the blueprint + // and can be present with their values on the unit spec + repeated UnitVariable input_variables = 5 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = OUTPUT_ONLY + ]; + + // Optional. Output only. List of output variables declared on the blueprint + // and can be present with their values on the unit status + repeated UnitVariable output_variables = 6 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = OUTPUT_ONLY + ]; + + // Optional. Mapping of input variables to default values. Maximum 100 + repeated UnitVariable input_variable_defaults = 7 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The labels on the resource, which can be used for categorization. + // similar to Kubernetes resource labels. + map labels = 10401 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Annotations is an unstructured key-value map stored with a + // resource that may be set by external tools to store and retrieve arbitrary + // metadata. They are not queryable and should be preserved when modifying + // objects. + // + // More info: https://kubernetes.io/docs/user-guide/annotations + map annotations = 10402 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The unique identifier of the resource. UID is unique in the + // time and space for this resource within the scope of the service. It is + // typically generated by the server on successful creation of a resource + // and must not be changed. UID is used to uniquely identify resources + // with resource name reuses. This should be a UUID4. + string uid = 10201 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OUTPUT_ONLY + ]; + + // Output only. An opaque value that uniquely identifies a version or + // generation of a resource. It can be used to confirm that the client + // and server agree on the ordering of a resource being written. + string etag = 10202 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The timestamp when the resource was created. + google.protobuf.Timestamp create_time = 10303 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The timestamp when the resource was last updated. Any + // change to the resource made by users must refresh this value. + // Changes to a resource made by the service should refresh this value. + google.protobuf.Timestamp update_time = 10304 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Mapping of input variables to their respective output variable for +// depedenencies +message VariableMapping { + oneof mapping_type { + // Optional. Output variables which will get their values from dependencies + FromMapping from = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Input variables whose values will be passed on to dependencies. + ToMapping to = 3 [(google.api.field_behavior) = OPTIONAL]; + } + + // Required. name of the variable + string variable = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// Output variables whose values will be passed on to dependencies +message FromMapping { + // Required. Alias of the dependency that the outputVariable will pass its + // value to + string dependency = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Name of the outputVariable on the dependency + string output_variable = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Input variables whose values will be passed on to dependencies +message ToMapping { + // Required. Alias of the dependency that the inputVariable will pass its + // value to + string dependency = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Name of the inputVariable on the dependency + string input_variable = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Tells SaaS Runtime if this mapping should be used during lookup + // or not + bool ignore_for_lookup = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Dependency represent a single dependency with another unit kind by alias. +message Dependency { + // Required. Immutable. The unit kind of the dependency. + string unit_kind = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "saasservicemgmt.googleapis.com/UnitKind" + } + ]; + + // Required. An alias for the dependency. Used for input variable mapping. + string alias = 2 [(google.api.field_behavior) = REQUIRED]; +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/proto/google/cloud/saasplatform/saasservicemgmt/v1beta1/deployments_service.proto b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/proto/google/cloud/saasplatform/saasservicemgmt/v1beta1/deployments_service.proto new file mode 100644 index 000000000000..e3240bda648d --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/proto/google/cloud/saasplatform/saasservicemgmt/v1beta1/deployments_service.proto @@ -0,0 +1,1255 @@ +// Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/saasplatform/saasservicemgmt/v1beta1/deployments_resources.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.proto"; + +option csharp_namespace = "Google.Cloud.SaasPlatform.SaasServiceMgmt.V1Beta1"; +option go_package = "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb;saasservicemgmtpb"; +option java_multiple_files = true; +option java_outer_classname = "SaasDeploymentsServiceProto"; +option java_package = "com.google.cloud.saasplatform.saasservicemgmt.v1beta1"; +option php_namespace = "Google\\Cloud\\SaasPlatform\\SaasServiceMgmt\\V1beta1"; +option ruby_package = "Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1"; + +// Manages the deployment of SaaS services. +service SaasDeployments { + option (google.api.default_host) = "saasservicemgmt.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; + + // Retrieve a collection of saas. + rpc ListSaas(ListSaasRequest) returns (ListSaasResponse) { + option (google.api.http) = { + get: "/v1beta1/{parent=projects/*/locations/*}/saas" + }; + option (google.api.method_signature) = "parent"; + } + + // Retrieve a single saas. + rpc GetSaas(GetSaasRequest) returns (Saas) { + option (google.api.http) = { + get: "/v1beta1/{name=projects/*/locations/*/saas/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Create a new saas. + rpc CreateSaas(CreateSaasRequest) returns (Saas) { + option (google.api.http) = { + post: "/v1beta1/{parent=projects/*/locations/*}/saas" + body: "saas" + }; + option (google.api.method_signature) = "parent,saas,saas_id"; + } + + // Update a single saas. + rpc UpdateSaas(UpdateSaasRequest) returns (Saas) { + option (google.api.http) = { + patch: "/v1beta1/{saas.name=projects/*/locations/*/saas/*}" + body: "saas" + }; + option (google.api.method_signature) = "saas,update_mask"; + } + + // Delete a single saas. + rpc DeleteSaas(DeleteSaasRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1beta1/{name=projects/*/locations/*/saas/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Retrieve a collection of tenants. + rpc ListTenants(ListTenantsRequest) returns (ListTenantsResponse) { + option (google.api.http) = { + get: "/v1beta1/{parent=projects/*/locations/*}/tenants" + }; + option (google.api.method_signature) = "parent"; + } + + // Retrieve a single tenant. + rpc GetTenant(GetTenantRequest) returns (Tenant) { + option (google.api.http) = { + get: "/v1beta1/{name=projects/*/locations/*/tenants/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Create a new tenant. + rpc CreateTenant(CreateTenantRequest) returns (Tenant) { + option (google.api.http) = { + post: "/v1beta1/{parent=projects/*/locations/*}/tenants" + body: "tenant" + }; + option (google.api.method_signature) = "parent,tenant,tenant_id"; + } + + // Update a single tenant. + rpc UpdateTenant(UpdateTenantRequest) returns (Tenant) { + option (google.api.http) = { + patch: "/v1beta1/{tenant.name=projects/*/locations/*/tenants/*}" + body: "tenant" + }; + option (google.api.method_signature) = "tenant,update_mask"; + } + + // Delete a single tenant. + rpc DeleteTenant(DeleteTenantRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1beta1/{name=projects/*/locations/*/tenants/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Retrieve a collection of unit kinds. + rpc ListUnitKinds(ListUnitKindsRequest) returns (ListUnitKindsResponse) { + option (google.api.http) = { + get: "/v1beta1/{parent=projects/*/locations/*}/unitKinds" + }; + option (google.api.method_signature) = "parent"; + } + + // Retrieve a single unit kind. + rpc GetUnitKind(GetUnitKindRequest) returns (UnitKind) { + option (google.api.http) = { + get: "/v1beta1/{name=projects/*/locations/*/unitKinds/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Create a new unit kind. + rpc CreateUnitKind(CreateUnitKindRequest) returns (UnitKind) { + option (google.api.http) = { + post: "/v1beta1/{parent=projects/*/locations/*}/unitKinds" + body: "unit_kind" + }; + option (google.api.method_signature) = "parent,unit_kind,unit_kind_id"; + } + + // Update a single unit kind. + rpc UpdateUnitKind(UpdateUnitKindRequest) returns (UnitKind) { + option (google.api.http) = { + patch: "/v1beta1/{unit_kind.name=projects/*/locations/*/unitKinds/*}" + body: "unit_kind" + }; + option (google.api.method_signature) = "unit_kind,update_mask"; + } + + // Delete a single unit kind. + rpc DeleteUnitKind(DeleteUnitKindRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1beta1/{name=projects/*/locations/*/unitKinds/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Retrieve a collection of units. + rpc ListUnits(ListUnitsRequest) returns (ListUnitsResponse) { + option (google.api.http) = { + get: "/v1beta1/{parent=projects/*/locations/*}/units" + }; + option (google.api.method_signature) = "parent"; + } + + // Retrieve a single unit. + rpc GetUnit(GetUnitRequest) returns (Unit) { + option (google.api.http) = { + get: "/v1beta1/{name=projects/*/locations/*/units/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Create a new unit. + rpc CreateUnit(CreateUnitRequest) returns (Unit) { + option (google.api.http) = { + post: "/v1beta1/{parent=projects/*/locations/*}/units" + body: "unit" + }; + option (google.api.method_signature) = "parent,unit,unit_id"; + } + + // Update a single unit. + rpc UpdateUnit(UpdateUnitRequest) returns (Unit) { + option (google.api.http) = { + patch: "/v1beta1/{unit.name=projects/*/locations/*/units/*}" + body: "unit" + }; + option (google.api.method_signature) = "unit,update_mask"; + } + + // Delete a single unit. + rpc DeleteUnit(DeleteUnitRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1beta1/{name=projects/*/locations/*/units/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Retrieve a collection of unit operations. + rpc ListUnitOperations(ListUnitOperationsRequest) + returns (ListUnitOperationsResponse) { + option (google.api.http) = { + get: "/v1beta1/{parent=projects/*/locations/*}/unitOperations" + }; + option (google.api.method_signature) = "parent"; + } + + // Retrieve a single unit operation. + rpc GetUnitOperation(GetUnitOperationRequest) returns (UnitOperation) { + option (google.api.http) = { + get: "/v1beta1/{name=projects/*/locations/*/unitOperations/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Create a new unit operation. + rpc CreateUnitOperation(CreateUnitOperationRequest) returns (UnitOperation) { + option (google.api.http) = { + post: "/v1beta1/{parent=projects/*/locations/*}/unitOperations" + body: "unit_operation" + }; + option (google.api.method_signature) = + "parent,unit_operation,unit_operation_id"; + } + + // Update a single unit operation. + rpc UpdateUnitOperation(UpdateUnitOperationRequest) returns (UnitOperation) { + option (google.api.http) = { + patch: "/v1beta1/{unit_operation.name=projects/*/locations/*/unitOperations/*}" + body: "unit_operation" + }; + option (google.api.method_signature) = "unit_operation,update_mask"; + } + + // Delete a single unit operation. + rpc DeleteUnitOperation(DeleteUnitOperationRequest) + returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1beta1/{name=projects/*/locations/*/unitOperations/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Retrieve a collection of releases. + rpc ListReleases(ListReleasesRequest) returns (ListReleasesResponse) { + option (google.api.http) = { + get: "/v1beta1/{parent=projects/*/locations/*}/releases" + }; + option (google.api.method_signature) = "parent"; + } + + // Retrieve a single release. + rpc GetRelease(GetReleaseRequest) returns (Release) { + option (google.api.http) = { + get: "/v1beta1/{name=projects/*/locations/*/releases/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Create a new release. + rpc CreateRelease(CreateReleaseRequest) returns (Release) { + option (google.api.http) = { + post: "/v1beta1/{parent=projects/*/locations/*}/releases" + body: "release" + }; + option (google.api.method_signature) = "parent,release,release_id"; + } + + // Update a single release. + rpc UpdateRelease(UpdateReleaseRequest) returns (Release) { + option (google.api.http) = { + patch: "/v1beta1/{release.name=projects/*/locations/*/releases/*}" + body: "release" + }; + option (google.api.method_signature) = "release,update_mask"; + } + + // Delete a single release. + rpc DeleteRelease(DeleteReleaseRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1beta1/{name=projects/*/locations/*/releases/*}" + }; + option (google.api.method_signature) = "name"; + } +} + +// The request structure for the ListSaas method. +message ListSaasRequest { + // Required. The parent of the saas. + string parent = 10006 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "saasservicemgmt.googleapis.com/Saas" + } + ]; + + // The maximum number of saas to send per page. + int32 page_size = 10505; + + // The page token: If the next_page_token from a previous response + // is provided, this request will send the subsequent page. + string page_token = 10506; + + // Filter the list as specified in https://google.aip.dev/160. + string filter = 10507; + + // Order results as specified in https://google.aip.dev/132. + string order_by = 10508; +} + +// The response structure for the ListSaas method. +message ListSaasResponse { + // The resulting saas. + repeated Saas saas = 10509; + + // If present, the next page token can be provided to a subsequent + // ListSaas call to list the next page. + // If empty, there are no more pages. + string next_page_token = 10510; + + // Locations that could not be reached. + repeated string unreachable = 10511; +} + +// The request structure for the GetSaas method. +message GetSaasRequest { + // Required. The resource name of the resource within a service. + string name = 10001 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "saasservicemgmt.googleapis.com/Saas" + } + ]; +} + +// The request structure for the CreateSaas method. +message CreateSaasRequest { + // Required. The parent of the saas. + string parent = 10006 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "saasservicemgmt.googleapis.com/Saas" + } + ]; + + // Required. The ID value for the new saas. + string saas_id = 10503 [(google.api.field_behavior) = REQUIRED]; + + // Required. The desired state for the saas. + Saas saas = 10504 [(google.api.field_behavior) = REQUIRED]; + + // If "validate_only" is set to true, the service will try to validate + // that this request would succeed, but will not actually make changes. + bool validate_only = 10501; + + // An optional request ID to identify requests. Specify a unique request ID + // so that if you must retry your request, the server will know to ignore + // the request if it has already been completed. The server will guarantee + // that for at least 60 minutes since the first request. + // + // For example, consider a situation where you make an initial request and the + // request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 10502; +} + +// The request structure for the UpdateSaas method. +message UpdateSaasRequest { + // Required. The desired state for the saas. + Saas saas = 10504 [(google.api.field_behavior) = REQUIRED]; + + // If "validate_only" is set to true, the service will try to validate + // that this request would succeed, but will not actually make changes. + bool validate_only = 10501; + + // An optional request ID to identify requests. Specify a unique request ID + // so that if you must retry your request, the server will know to ignore + // the request if it has already been completed. The server will guarantee + // that for at least 60 minutes since the first request. + // + // For example, consider a situation where you make an initial request and the + // request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 10502; + + // Field mask is used to specify the fields to be overwritten in the + // Saas resource by the update. + // + // The fields specified in the update_mask are relative to the resource, not + // the full request. A field will be overwritten if it is in the mask. + // + // If the user does not provide a mask then all fields in the + // Saas will be overwritten. + google.protobuf.FieldMask update_mask = 10512; +} + +// The request structure for the DeleteSaas method. +message DeleteSaasRequest { + // Required. The resource name of the resource within a service. + string name = 10001 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "saasservicemgmt.googleapis.com/Saas" + } + ]; + + // The etag known to the client for the expected state of the saas. This is + // used with state-changing methods to prevent accidental overwrites when + // multiple user agents might be acting in parallel on the same resource. + // + // An etag wildcard provide optimistic concurrency based on the expected + // existence of the saas. The Any wildcard (`*`) requires that the resource + // must already exists, and the Not Any wildcard (`!*`) requires that it must + // not. + string etag = 10202; + + // If "validate_only" is set to true, the service will try to validate + // that this request would succeed, but will not actually make changes. + bool validate_only = 10501; + + // An optional request ID to identify requests. Specify a unique request ID + // so that if you must retry your request, the server will know to ignore + // the request if it has already been completed. The server will guarantee + // that for at least 60 minutes since the first request. + // + // For example, consider a situation where you make an initial request and the + // request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 10502; +} + +// The request structure for the ListTenants method. +message ListTenantsRequest { + // Required. The parent of the tenant. + string parent = 10006 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "saasservicemgmt.googleapis.com/Tenant" + } + ]; + + // The maximum number of tenants to send per page. + int32 page_size = 10505; + + // The page token: If the next_page_token from a previous response + // is provided, this request will send the subsequent page. + string page_token = 10506; + + // Filter the list as specified in https://google.aip.dev/160. + string filter = 10507; + + // Order results as specified in https://google.aip.dev/132. + string order_by = 10508; +} + +// The response structure for the ListTenants method. +message ListTenantsResponse { + // The resulting tenants. + repeated Tenant tenants = 10509; + + // If present, the next page token can be provided to a subsequent + // ListTenants call to list the next page. + // If empty, there are no more pages. + string next_page_token = 10510; + + // Locations that could not be reached. + repeated string unreachable = 10511; +} + +// The request structure for the GetTenant method. +message GetTenantRequest { + // Required. The resource name of the resource within a service. + string name = 10001 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "saasservicemgmt.googleapis.com/Tenant" + } + ]; +} + +// The request structure for the CreateTenant method. +message CreateTenantRequest { + // Required. The parent of the tenant. + string parent = 10006 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "saasservicemgmt.googleapis.com/Tenant" + } + ]; + + // Required. The ID value for the new tenant. + string tenant_id = 10503 [(google.api.field_behavior) = REQUIRED]; + + // Required. The desired state for the tenant. + Tenant tenant = 10504 [(google.api.field_behavior) = REQUIRED]; + + // If "validate_only" is set to true, the service will try to validate + // that this request would succeed, but will not actually make changes. + bool validate_only = 10501; + + // An optional request ID to identify requests. Specify a unique request ID + // so that if you must retry your request, the server will know to ignore + // the request if it has already been completed. The server will guarantee + // that for at least 60 minutes since the first request. + // + // For example, consider a situation where you make an initial request and the + // request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 10502; +} + +// The request structure for the UpdateTenant method. +message UpdateTenantRequest { + // Required. The desired state for the tenant. + Tenant tenant = 10504 [(google.api.field_behavior) = REQUIRED]; + + // If "validate_only" is set to true, the service will try to validate + // that this request would succeed, but will not actually make changes. + bool validate_only = 10501; + + // An optional request ID to identify requests. Specify a unique request ID + // so that if you must retry your request, the server will know to ignore + // the request if it has already been completed. The server will guarantee + // that for at least 60 minutes since the first request. + // + // For example, consider a situation where you make an initial request and the + // request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 10502; + + // Field mask is used to specify the fields to be overwritten in the + // Tenant resource by the update. + // + // The fields specified in the update_mask are relative to the resource, not + // the full request. A field will be overwritten if it is in the mask. + // + // If the user does not provide a mask then all fields in the + // Tenant will be overwritten. + google.protobuf.FieldMask update_mask = 10512; +} + +// The request structure for the DeleteTenant method. +message DeleteTenantRequest { + // Required. The resource name of the resource within a service. + string name = 10001 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "saasservicemgmt.googleapis.com/Tenant" + } + ]; + + // The etag known to the client for the expected state of the tenant. This is + // used with state-changing methods to prevent accidental overwrites when + // multiple user agents might be acting in parallel on the same resource. + // + // An etag wildcard provide optimistic concurrency based on the expected + // existence of the tenant. The Any wildcard (`*`) requires that the resource + // must already exists, and the Not Any wildcard (`!*`) requires that it must + // not. + string etag = 10202; + + // If "validate_only" is set to true, the service will try to validate + // that this request would succeed, but will not actually make changes. + bool validate_only = 10501; + + // An optional request ID to identify requests. Specify a unique request ID + // so that if you must retry your request, the server will know to ignore + // the request if it has already been completed. The server will guarantee + // that for at least 60 minutes since the first request. + // + // For example, consider a situation where you make an initial request and the + // request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 10502; +} + +// The request structure for the ListUnitKinds method. +message ListUnitKindsRequest { + // Required. The parent of the unit kind. + string parent = 10006 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "saasservicemgmt.googleapis.com/UnitKind" + } + ]; + + // The maximum number of unit kinds to send per page. + int32 page_size = 10505; + + // The page token: If the next_page_token from a previous response + // is provided, this request will send the subsequent page. + string page_token = 10506; + + // Filter the list as specified in https://google.aip.dev/160. + string filter = 10507; + + // Order results as specified in https://google.aip.dev/132. + string order_by = 10508; +} + +// The response structure for the ListUnitKinds method. +message ListUnitKindsResponse { + // The resulting unit kinds. + repeated UnitKind unit_kinds = 10509; + + // If present, the next page token can be provided to a subsequent + // ListUnitKinds call to list the next page. + // If empty, there are no more pages. + string next_page_token = 10510; + + // Locations that could not be reached. + repeated string unreachable = 10511; +} + +// The request structure for the GetUnitKind method. +message GetUnitKindRequest { + // Required. The resource name of the resource within a service. + string name = 10001 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "saasservicemgmt.googleapis.com/UnitKind" + } + ]; +} + +// The request structure for the CreateUnitKind method. +message CreateUnitKindRequest { + // Required. The parent of the unit kind. + string parent = 10006 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "saasservicemgmt.googleapis.com/UnitKind" + } + ]; + + // Required. The ID value for the new unit kind. + string unit_kind_id = 10503 [(google.api.field_behavior) = REQUIRED]; + + // Required. The desired state for the unit kind. + UnitKind unit_kind = 10504 [(google.api.field_behavior) = REQUIRED]; + + // If "validate_only" is set to true, the service will try to validate + // that this request would succeed, but will not actually make changes. + bool validate_only = 10501; + + // An optional request ID to identify requests. Specify a unique request ID + // so that if you must retry your request, the server will know to ignore + // the request if it has already been completed. The server will guarantee + // that for at least 60 minutes since the first request. + // + // For example, consider a situation where you make an initial request and the + // request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 10502; +} + +// The request structure for the UpdateUnitKind method. +message UpdateUnitKindRequest { + // Required. The desired state for the unit kind. + UnitKind unit_kind = 10504 [(google.api.field_behavior) = REQUIRED]; + + // If "validate_only" is set to true, the service will try to validate + // that this request would succeed, but will not actually make changes. + bool validate_only = 10501; + + // An optional request ID to identify requests. Specify a unique request ID + // so that if you must retry your request, the server will know to ignore + // the request if it has already been completed. The server will guarantee + // that for at least 60 minutes since the first request. + // + // For example, consider a situation where you make an initial request and the + // request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 10502; + + // Field mask is used to specify the fields to be overwritten in the + // UnitKind resource by the update. + // + // The fields specified in the update_mask are relative to the resource, not + // the full request. A field will be overwritten if it is in the mask. + // + // If the user does not provide a mask then all fields in the + // UnitKind will be overwritten. + google.protobuf.FieldMask update_mask = 10512; +} + +// The request structure for the DeleteUnitKind method. +message DeleteUnitKindRequest { + // Required. The resource name of the resource within a service. + string name = 10001 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "saasservicemgmt.googleapis.com/UnitKind" + } + ]; + + // The etag known to the client for the expected state of the unit kind. This + // is used with state-changing methods to prevent accidental overwrites when + // multiple user agents might be acting in parallel on the same resource. + // + // An etag wildcard provide optimistic concurrency based on the expected + // existence of the unit kind. The Any wildcard (`*`) requires that the + // resource must already exists, and the Not Any wildcard (`!*`) requires that + // it must not. + string etag = 10202; + + // If "validate_only" is set to true, the service will try to validate + // that this request would succeed, but will not actually make changes. + bool validate_only = 10501; + + // An optional request ID to identify requests. Specify a unique request ID + // so that if you must retry your request, the server will know to ignore + // the request if it has already been completed. The server will guarantee + // that for at least 60 minutes since the first request. + // + // For example, consider a situation where you make an initial request and the + // request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 10502; +} + +// The request structure for the ListUnits method. +message ListUnitsRequest { + // Required. The parent of the unit. + string parent = 10006 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "saasservicemgmt.googleapis.com/Unit" + } + ]; + + // The maximum number of units to send per page. + int32 page_size = 10505; + + // The page token: If the next_page_token from a previous response + // is provided, this request will send the subsequent page. + string page_token = 10506; + + // Filter the list as specified in https://google.aip.dev/160. + string filter = 10507; + + // Order results as specified in https://google.aip.dev/132. + string order_by = 10508; +} + +// The response structure for the ListUnits method. +message ListUnitsResponse { + // The resulting units. + repeated Unit units = 10509; + + // If present, the next page token can be provided to a subsequent + // ListUnits call to list the next page. + // If empty, there are no more pages. + string next_page_token = 10510; + + // Locations that could not be reached. + repeated string unreachable = 10511; +} + +// The request structure for the GetUnit method. +message GetUnitRequest { + // Required. The resource name of the resource within a service. + string name = 10001 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "saasservicemgmt.googleapis.com/Unit" + } + ]; +} + +// The request structure for the CreateUnit method. +message CreateUnitRequest { + // Required. The parent of the unit. + string parent = 10006 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "saasservicemgmt.googleapis.com/Unit" + } + ]; + + // Required. The ID value for the new unit. + string unit_id = 10503 [(google.api.field_behavior) = REQUIRED]; + + // Required. The desired state for the unit. + Unit unit = 10504 [(google.api.field_behavior) = REQUIRED]; + + // If "validate_only" is set to true, the service will try to validate + // that this request would succeed, but will not actually make changes. + bool validate_only = 10501; + + // An optional request ID to identify requests. Specify a unique request ID + // so that if you must retry your request, the server will know to ignore + // the request if it has already been completed. The server will guarantee + // that for at least 60 minutes since the first request. + // + // For example, consider a situation where you make an initial request and the + // request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 10502; +} + +// The request structure for the UpdateUnit method. +message UpdateUnitRequest { + // Required. The desired state for the unit. + Unit unit = 10504 [(google.api.field_behavior) = REQUIRED]; + + // If "validate_only" is set to true, the service will try to validate + // that this request would succeed, but will not actually make changes. + bool validate_only = 10501; + + // An optional request ID to identify requests. Specify a unique request ID + // so that if you must retry your request, the server will know to ignore + // the request if it has already been completed. The server will guarantee + // that for at least 60 minutes since the first request. + // + // For example, consider a situation where you make an initial request and the + // request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 10502; + + // Field mask is used to specify the fields to be overwritten in the + // Unit resource by the update. + // + // The fields specified in the update_mask are relative to the resource, not + // the full request. A field will be overwritten if it is in the mask. + // + // If the user does not provide a mask then all fields in the + // Unit will be overwritten. + google.protobuf.FieldMask update_mask = 10512; +} + +// The request structure for the DeleteUnit method. +message DeleteUnitRequest { + // Required. The resource name of the resource within a service. + string name = 10001 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "saasservicemgmt.googleapis.com/Unit" + } + ]; + + // The etag known to the client for the expected state of the unit. This is + // used with state-changing methods to prevent accidental overwrites when + // multiple user agents might be acting in parallel on the same resource. + // + // An etag wildcard provide optimistic concurrency based on the expected + // existence of the unit. The Any wildcard (`*`) requires that the resource + // must already exists, and the Not Any wildcard (`!*`) requires that it must + // not. + string etag = 10202; + + // If "validate_only" is set to true, the service will try to validate + // that this request would succeed, but will not actually make changes. + bool validate_only = 10501; + + // An optional request ID to identify requests. Specify a unique request ID + // so that if you must retry your request, the server will know to ignore + // the request if it has already been completed. The server will guarantee + // that for at least 60 minutes since the first request. + // + // For example, consider a situation where you make an initial request and the + // request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 10502; +} + +// The request structure for the ListUnitOperations method. +message ListUnitOperationsRequest { + // Required. The parent of the unit operation. + string parent = 10006 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "saasservicemgmt.googleapis.com/UnitOperation" + } + ]; + + // The maximum number of unit operations to send per page. + int32 page_size = 10505; + + // The page token: If the next_page_token from a previous response + // is provided, this request will send the subsequent page. + string page_token = 10506; + + // Filter the list as specified in https://google.aip.dev/160. + string filter = 10507; + + // Order results as specified in https://google.aip.dev/132. + string order_by = 10508; +} + +// The response structure for the ListUnitOperations method. +message ListUnitOperationsResponse { + // The resulting unit operations. + repeated UnitOperation unit_operations = 10509; + + // If present, the next page token can be provided to a subsequent + // ListUnitOperations call to list the next page. + // If empty, there are no more pages. + string next_page_token = 10510; + + // Locations that could not be reached. + repeated string unreachable = 10511; +} + +// The request structure for the GetUnitOperation method. +message GetUnitOperationRequest { + // Required. The resource name of the resource within a service. + string name = 10001 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "saasservicemgmt.googleapis.com/UnitOperation" + } + ]; +} + +// The request structure for the CreateUnitOperation method. +message CreateUnitOperationRequest { + // Required. The parent of the unit operation. + string parent = 10006 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "saasservicemgmt.googleapis.com/UnitOperation" + } + ]; + + // Required. The ID value for the new unit operation. + string unit_operation_id = 10503 [(google.api.field_behavior) = REQUIRED]; + + // Required. The desired state for the unit operation. + UnitOperation unit_operation = 10504 [(google.api.field_behavior) = REQUIRED]; + + // If "validate_only" is set to true, the service will try to validate + // that this request would succeed, but will not actually make changes. + bool validate_only = 10501; + + // An optional request ID to identify requests. Specify a unique request ID + // so that if you must retry your request, the server will know to ignore + // the request if it has already been completed. The server will guarantee + // that for at least 60 minutes since the first request. + // + // For example, consider a situation where you make an initial request and the + // request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 10502; +} + +// The request structure for the UpdateUnitOperation method. +message UpdateUnitOperationRequest { + // Required. The desired state for the unit operation. + UnitOperation unit_operation = 10504 [(google.api.field_behavior) = REQUIRED]; + + // If "validate_only" is set to true, the service will try to validate + // that this request would succeed, but will not actually make changes. + bool validate_only = 10501; + + // An optional request ID to identify requests. Specify a unique request ID + // so that if you must retry your request, the server will know to ignore + // the request if it has already been completed. The server will guarantee + // that for at least 60 minutes since the first request. + // + // For example, consider a situation where you make an initial request and the + // request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 10502; + + // Field mask is used to specify the fields to be overwritten in the + // UnitOperation resource by the update. + // + // The fields specified in the update_mask are relative to the resource, not + // the full request. A field will be overwritten if it is in the mask. + // + // If the user does not provide a mask then all fields in the + // UnitOperation will be overwritten. + google.protobuf.FieldMask update_mask = 10512; +} + +// The request structure for the DeleteUnitOperation method. +message DeleteUnitOperationRequest { + // Required. The resource name of the resource within a service. + string name = 10001 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "saasservicemgmt.googleapis.com/UnitOperation" + } + ]; + + // The etag known to the client for the expected state of the unit operation. + // This is used with state-changing methods to prevent accidental overwrites + // when multiple user agents might be acting in parallel on the same resource. + // + // An etag wildcard provide optimistic concurrency based on the expected + // existence of the unit operation. The Any wildcard (`*`) requires that the + // resource must already exists, and the Not Any wildcard (`!*`) requires that + // it must not. + string etag = 10202; + + // If "validate_only" is set to true, the service will try to validate + // that this request would succeed, but will not actually make changes. + bool validate_only = 10501; + + // An optional request ID to identify requests. Specify a unique request ID + // so that if you must retry your request, the server will know to ignore + // the request if it has already been completed. The server will guarantee + // that for at least 60 minutes since the first request. + // + // For example, consider a situation where you make an initial request and the + // request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 10502; +} + +// The request structure for the ListReleases method. +message ListReleasesRequest { + // Required. The parent of the release. + string parent = 10006 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "saasservicemgmt.googleapis.com/Release" + } + ]; + + // The maximum number of releases to send per page. + int32 page_size = 10505; + + // The page token: If the next_page_token from a previous response + // is provided, this request will send the subsequent page. + string page_token = 10506; + + // Filter the list as specified in https://google.aip.dev/160. + string filter = 10507; + + // Order results as specified in https://google.aip.dev/132. + string order_by = 10508; +} + +// The response structure for the ListReleases method. +message ListReleasesResponse { + // The resulting releases. + repeated Release releases = 10509; + + // If present, the next page token can be provided to a subsequent + // ListReleases call to list the next page. + // If empty, there are no more pages. + string next_page_token = 10510; + + // Locations that could not be reached. + repeated string unreachable = 10511; +} + +// The request structure for the GetRelease method. +message GetReleaseRequest { + // Required. The resource name of the resource within a service. + string name = 10001 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "saasservicemgmt.googleapis.com/Release" + } + ]; +} + +// The request structure for the CreateRelease method. +message CreateReleaseRequest { + // Required. The parent of the release. + string parent = 10006 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "saasservicemgmt.googleapis.com/Release" + } + ]; + + // Required. The ID value for the new release. + string release_id = 10503 [(google.api.field_behavior) = REQUIRED]; + + // Required. The desired state for the release. + Release release = 10504 [(google.api.field_behavior) = REQUIRED]; + + // If "validate_only" is set to true, the service will try to validate + // that this request would succeed, but will not actually make changes. + bool validate_only = 10501; + + // An optional request ID to identify requests. Specify a unique request ID + // so that if you must retry your request, the server will know to ignore + // the request if it has already been completed. The server will guarantee + // that for at least 60 minutes since the first request. + // + // For example, consider a situation where you make an initial request and the + // request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 10502; +} + +// The request structure for the UpdateRelease method. +message UpdateReleaseRequest { + // Required. The desired state for the release. + Release release = 10504 [(google.api.field_behavior) = REQUIRED]; + + // If "validate_only" is set to true, the service will try to validate + // that this request would succeed, but will not actually make changes. + bool validate_only = 10501; + + // An optional request ID to identify requests. Specify a unique request ID + // so that if you must retry your request, the server will know to ignore + // the request if it has already been completed. The server will guarantee + // that for at least 60 minutes since the first request. + // + // For example, consider a situation where you make an initial request and the + // request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 10502; + + // Field mask is used to specify the fields to be overwritten in the + // Release resource by the update. + // + // The fields specified in the update_mask are relative to the resource, not + // the full request. A field will be overwritten if it is in the mask. + // + // If the user does not provide a mask then all fields in the + // Release will be overwritten. + google.protobuf.FieldMask update_mask = 10512; +} + +// The request structure for the DeleteRelease method. +message DeleteReleaseRequest { + // Required. The resource name of the resource within a service. + string name = 10001 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "saasservicemgmt.googleapis.com/Release" + } + ]; + + // The etag known to the client for the expected state of the release. This is + // used with state-changing methods to prevent accidental overwrites when + // multiple user agents might be acting in parallel on the same resource. + // + // An etag wildcard provide optimistic concurrency based on the expected + // existence of the release. The Any wildcard (`*`) requires that the resource + // must already exists, and the Not Any wildcard (`!*`) requires that it must + // not. + string etag = 10202; + + // If "validate_only" is set to true, the service will try to validate + // that this request would succeed, but will not actually make changes. + bool validate_only = 10501; + + // An optional request ID to identify requests. Specify a unique request ID + // so that if you must retry your request, the server will know to ignore + // the request if it has already been completed. The server will guarantee + // that for at least 60 minutes since the first request. + // + // For example, consider a situation where you make an initial request and the + // request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 10502; +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/proto/google/cloud/saasplatform/saasservicemgmt/v1beta1/rollouts_resources.proto b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/proto/google/cloud/saasplatform/saasservicemgmt/v1beta1/rollouts_resources.proto new file mode 100644 index 000000000000..adfb27b3a3a7 --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/proto/google/cloud/saasplatform/saasservicemgmt/v1beta1/rollouts_resources.proto @@ -0,0 +1,417 @@ +// Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1; + +import "google/api/field_behavior.proto"; +import "google/api/field_info.proto"; +import "google/api/resource.proto"; +import "google/cloud/saasplatform/saasservicemgmt/v1beta1/common.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.SaasPlatform.SaasServiceMgmt.V1Beta1"; +option go_package = "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb;saasservicemgmtpb"; +option java_multiple_files = true; +option java_outer_classname = "SaasRolloutsResourcesProto"; +option java_package = "com.google.cloud.saasplatform.saasservicemgmt.v1beta1"; +option php_namespace = "Google\\Cloud\\SaasPlatform\\SaasServiceMgmt\\V1beta1"; +option ruby_package = "Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1"; + +// RolloutAction indicates the action to be performed on the Rollout. +enum RolloutAction { + // Unspecified action, will be treated as RUN by default. + ROLLOUT_ACTION_UNSPECIFIED = 0; + + // Run the Rollout until it naturally reaches a terminal state. + // A rollout requested to run will progress through all natural Rollout + // States (such as RUNNING -> SUCCEEDED or RUNNING -> FAILED). + // If retriable errors are encountered during the rollout, the rollout + // will paused by default and can be resumed by re-requesting this RUN + // action. + ROLLOUT_ACTION_RUN = 1; + + // Pause the Rollout until it is resumed (i.e. RUN is requested). + ROLLOUT_ACTION_PAUSE = 2; + + // Cancel the Rollout permanently. + ROLLOUT_ACTION_CANCEL = 3; +} + +// Represents a single rollout execution and its results +message Rollout { + option (google.api.resource) = { + type: "saasservicemgmt.googleapis.com/Rollout" + pattern: "projects/{project}/locations/{location}/rollouts/{rollout_id}" + plural: "rollouts" + singular: "rollout" + }; + + // The current state of the rollout. + enum RolloutState { + // Unspecified state. + ROLLOUT_STATE_UNSPECIFIED = 0; + + // Rollout is in progress. + ROLLOUT_STATE_RUNNING = 1; + + // Rollout has been paused. + ROLLOUT_STATE_PAUSED = 2; + + // Rollout completed successfully. + ROLLOUT_STATE_SUCCEEDED = 3; + + // Rollout has failed. + ROLLOUT_STATE_FAILED = 4; + + // Rollout has been canceled. + ROLLOUT_STATE_CANCELLED = 5; + + // Rollout is waiting for some condition to be met before starting. + ROLLOUT_STATE_WAITING = 6; + + // Rollout is being canceled. + ROLLOUT_STATE_CANCELLING = 7; + + // Rollout is being resumed. + ROLLOUT_STATE_RESUMING = 8; + + // Rollout is being paused. + ROLLOUT_STATE_PAUSING = 9; + } + + // Identifier. The resource name (full URI of the resource) following the + // standard naming scheme: + // + // "projects/{project}/locations/{location}/rollout/{rollout_id}" + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Optional. Immutable. Name of the Release that gets rolled out to target + // Units. Required if no other type of release is specified. + string release = 3 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "saasservicemgmt.googleapis.com/Release" + } + ]; + + // Optional. Output only. The time when the rollout started executing. Will be + // empty if the rollout hasn't started yet. + google.protobuf.Timestamp start_time = 7 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = OUTPUT_ONLY + ]; + + // Optional. Output only. The time when the rollout finished execution + // (regardless of success, failure, or cancellation). Will be empty if the + // rollout hasn't finished yet. Once set, the rollout is in terminal state and + // all the results are final. + google.protobuf.Timestamp end_time = 8 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = OUTPUT_ONLY + ]; + + // Output only. Current state of the rollout. + RolloutState state = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Human readable message indicating details about the last state + // transition. + string state_message = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Output only. The time when the rollout transitioned into its + // current state. + google.protobuf.Timestamp state_transition_time = 12 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = OUTPUT_ONLY + ]; + + // Optional. Output only. The root rollout that this rollout is stemming from. + // The resource name (full URI of the resource) following the standard naming + // scheme: + // + // "projects/{project}/locations/{location}/rollouts/{rollout_id}" + string root_rollout = 16 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "saasservicemgmt.googleapis.com/Rollout" + } + ]; + + // Optional. Output only. The direct parent rollout that this rollout is + // stemming from. The resource name (full URI of the resource) following the + // standard naming scheme: + // + // "projects/{project}/locations/{location}/rollouts/{rollout_id}" + string parent_rollout = 17 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "saasservicemgmt.googleapis.com/Rollout" + } + ]; + + // Optional. The strategy used for executing this Rollout. + // This strategy will override whatever strategy is specified in the + // RolloutType. If not specified on creation, the + // strategy from RolloutType will be used. + // + // There are two supported values strategies which are used to control + // - "Google.Cloud.Simple.AllAtOnce" + // - "Google.Cloud.Simple.OneLocationAtATime" + // + // A rollout with one of these simple strategies will rollout across + // all locations defined in the targeted UnitKind's Saas Locations. + string rollout_orchestration_strategy = 19 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. CEL(https://github.com/google/cel-spec) formatted filter string + // against Unit. The filter will be applied to determine the eligible unit + // population. This filter can only reduce, but not expand the scope of the + // rollout. If not provided, the unit_filter from the RolloutType will be + // used. + string unit_filter = 21 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Immutable. Name of the RolloutKind this rollout is stemming from + // and adhering to. + string rollout_kind = 22 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "saasservicemgmt.googleapis.com/RolloutKind" + } + ]; + + // Optional. Output only. Details about the progress of the rollout. + RolloutStats stats = 24 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.field_behavior) = OPTIONAL + ]; + + // Optional. Requested change to the execution of this rollout. + // Default RolloutControl.action is ROLLOUT_ACTION_RUN meaning + // the rollout will be executed to completion while progressing through + // all natural Rollout States (such as RUNNING -> SUCCEEDED or RUNNING -> + // FAILED). Requests can only be made when the Rollout is in a non-terminal + // state. + RolloutControl control = 25 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The labels on the resource, which can be used for categorization. + // similar to Kubernetes resource labels. + map labels = 10401 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Annotations is an unstructured key-value map stored with a + // resource that may be set by external tools to store and retrieve arbitrary + // metadata. They are not queryable and should be preserved when modifying + // objects. + // + // More info: https://kubernetes.io/docs/user-guide/annotations + map annotations = 10402 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The unique identifier of the resource. UID is unique in the + // time and space for this resource within the scope of the service. It is + // typically generated by the server on successful creation of a resource + // and must not be changed. UID is used to uniquely identify resources + // with resource name reuses. This should be a UUID4. + string uid = 10201 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OUTPUT_ONLY + ]; + + // Output only. An opaque value that uniquely identifies a version or + // generation of a resource. It can be used to confirm that the client + // and server agree on the ordering of a resource being written. + string etag = 10202 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The timestamp when the resource was created. + google.protobuf.Timestamp create_time = 10303 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The timestamp when the resource was last updated. Any + // change to the resource made by users must refresh this value. + // Changes to a resource made by the service should refresh this value. + google.protobuf.Timestamp update_time = 10304 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// An object that describes various settings of Rollout execution. Includes +// built-in policies across GCP and GDC, and customizable policies. +message RolloutKind { + option (google.api.resource) = { + type: "saasservicemgmt.googleapis.com/RolloutKind" + pattern: "projects/{project}/locations/{location}/rolloutKinds/{rollout_kind_id}" + plural: "rolloutKinds" + singular: "rolloutKind" + }; + + enum UpdateUnitKindStrategy { + // Strategy unspecified. + UPDATE_UNIT_KIND_STRATEGY_UNSPECIFIED = 0; + + // Update the unit kind strategy on the rollout start. + UPDATE_UNIT_KIND_STRATEGY_ON_START = 1; + + // Never update the unit kind. + UPDATE_UNIT_KIND_STRATEGY_NEVER = 2; + } + + // Identifier. The resource name (full URI of the resource) following the + // standard naming scheme: + // + // "projects/{project}/locations/{location}/rolloutKinds/{rollout_kind_id}" + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Required. Immutable. UnitKind that this rollout kind corresponds to. + // Rollouts stemming from this rollout kind will target the units of this unit + // kind. In other words, this defines the population of target units to be + // upgraded by rollouts. + string unit_kind = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "saasservicemgmt.googleapis.com/UnitKind" + } + ]; + + // Optional. The strategy used for executing a Rollout. This is a required + // field. + // + // There are two supported values strategies which are used to control + // - "Google.Cloud.Simple.AllAtOnce" + // - "Google.Cloud.Simple.OneLocationAtATime" + // + // A rollout with one of these simple strategies will rollout across + // all locations defined in the associated UnitKind's Saas Locations. + string rollout_orchestration_strategy = 3 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. CEL(https://github.com/google/cel-spec) formatted filter string + // against Unit. The filter will be applied to determine the eligible unit + // population. This filter can only reduce, but not expand the scope of the + // rollout. + string unit_filter = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The config for updating the unit kind. By default, the unit kind + // will be updated on the rollout start. + UpdateUnitKindStrategy update_unit_kind_strategy = 6 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The configuration for error budget. If the number of failed units + // exceeds max(allowed_count, allowed_ratio * total_units), the rollout will + // be paused. If not set, all units will be attempted to be updated regardless + // of the number of failures encountered. + optional ErrorBudget error_budget = 7 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The labels on the resource, which can be used for categorization. + // similar to Kubernetes resource labels. + map labels = 10401 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Annotations is an unstructured key-value map stored with a + // resource that may be set by external tools to store and retrieve arbitrary + // metadata. They are not queryable and should be preserved when modifying + // objects. + // + // More info: https://kubernetes.io/docs/user-guide/annotations + map annotations = 10402 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The unique identifier of the resource. UID is unique in the + // time and space for this resource within the scope of the service. It is + // typically generated by the server on successful creation of a resource + // and must not be changed. UID is used to uniquely identify resources + // with resource name reuses. This should be a UUID4. + string uid = 10201 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OUTPUT_ONLY + ]; + + // Output only. An opaque value that uniquely identifies a version or + // generation of a resource. It can be used to confirm that the client + // and server agree on the ordering of a resource being written. + string etag = 10202 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The timestamp when the resource was created. + google.protobuf.Timestamp create_time = 10303 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The timestamp when the resource was last updated. Any + // change to the resource made by users must refresh this value. + // Changes to a resource made by the service should refresh this value. + google.protobuf.Timestamp update_time = 10304 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// The configuration for error budget. If the number of failed units exceeds +// max(allowed_count, allowed_ratio * total_units), the rollout will be paused. +message ErrorBudget { + // Optional. The maximum number of failed units allowed in a location without + // pausing the rollout. + int32 allowed_count = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The maximum percentage of units allowed to fail (0, 100] within a + // location without pausing the rollout. + int32 allowed_percentage = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// RolloutStats contains information about the progress of a rollout. +message RolloutStats { + // Output only. A breakdown of the progress of operations triggered by the + // rollout. Provides a count of Operations by their state. This can be used to + // determine the number of units which have been updated, or are scheduled to + // be updated. + // + // There will be at most one entry per group. + // Possible values for operation groups are: + // - "SCHEDULED" + // - "PENDING" + // - "RUNNING" + // - "SUCCEEDED" + // - "FAILED" + // - "CANCELLED" + repeated Aggregate operations_by_state = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// RolloutControl provides a way to request a change to the execution of a +// Rollout by pausing or canceling it. +message RolloutControl { + // Parameters for the RUN action controlling the behavior of the rollout + // when it is resumed from a PAUSED state. + message RunRolloutActionParams { + // Required. If true, the rollout will retry failed operations when resumed. + // This is applicable only the current state of the Rollout is PAUSED and + // the requested action is RUN. + bool retry_failed_operations = 1 [(google.api.field_behavior) = REQUIRED]; + } + + // Setting for the action. The setting must match the action + // e.g.: action=RUN may only set run_params or omit all parameters. + // It is an error to set a setting that is not applicable to the action. + oneof action_params { + // Optional. Parameters for the RUN action. It is an error to specify this + // if the RolloutAction is not set to RUN. By default, the rollout will + // retry failed operations when resumed. + RunRolloutActionParams run_params = 2 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Required. Action to be performed on the Rollout. + // The default behavior is to run the rollout until it naturally reaches a + // terminal state. + RolloutAction action = 1 [(google.api.field_behavior) = REQUIRED]; +} diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/proto/google/cloud/saasplatform/saasservicemgmt/v1beta1/rollouts_service.proto b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/proto/google/cloud/saasplatform/saasservicemgmt/v1beta1/rollouts_service.proto new file mode 100644 index 000000000000..dc1e00bb5a9b --- /dev/null +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/proto/google/cloud/saasplatform/saasservicemgmt/v1beta1/rollouts_service.proto @@ -0,0 +1,447 @@ +// Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/saasplatform/saasservicemgmt/v1beta1/rollouts_resources.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.proto"; + +option csharp_namespace = "Google.Cloud.SaasPlatform.SaasServiceMgmt.V1Beta1"; +option go_package = "cloud.google.com/go/saasplatform/saasservicemgmt/apiv1beta1/saasservicemgmtpb;saasservicemgmtpb"; +option java_multiple_files = true; +option java_outer_classname = "SaasRolloutsServiceProto"; +option java_package = "com.google.cloud.saasplatform.saasservicemgmt.v1beta1"; +option php_namespace = "Google\\Cloud\\SaasPlatform\\SaasServiceMgmt\\V1beta1"; +option ruby_package = "Google::Cloud::SaasPlatform::SaasServiceMgmt::V1beta1"; + +// Manages the rollout of SaaS services. +service SaasRollouts { + option (google.api.default_host) = "saasservicemgmt.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; + + // Retrieve a collection of rollouts. + rpc ListRollouts(ListRolloutsRequest) returns (ListRolloutsResponse) { + option (google.api.http) = { + get: "/v1beta1/{parent=projects/*/locations/*}/rollouts" + }; + option (google.api.method_signature) = "parent"; + } + + // Retrieve a single rollout. + rpc GetRollout(GetRolloutRequest) returns (Rollout) { + option (google.api.http) = { + get: "/v1beta1/{name=projects/*/locations/*/rollouts/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Create a new rollout. + rpc CreateRollout(CreateRolloutRequest) returns (Rollout) { + option (google.api.http) = { + post: "/v1beta1/{parent=projects/*/locations/*}/rollouts" + body: "rollout" + }; + option (google.api.method_signature) = "parent,rollout,rollout_id"; + } + + // Update a single rollout. + rpc UpdateRollout(UpdateRolloutRequest) returns (Rollout) { + option (google.api.http) = { + patch: "/v1beta1/{rollout.name=projects/*/locations/*/rollouts/*}" + body: "rollout" + }; + option (google.api.method_signature) = "rollout,update_mask"; + } + + // Delete a single rollout. + rpc DeleteRollout(DeleteRolloutRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1beta1/{name=projects/*/locations/*/rollouts/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Retrieve a collection of rollout kinds. + rpc ListRolloutKinds(ListRolloutKindsRequest) + returns (ListRolloutKindsResponse) { + option (google.api.http) = { + get: "/v1beta1/{parent=projects/*/locations/*}/rolloutKinds" + }; + option (google.api.method_signature) = "parent"; + } + + // Retrieve a single rollout kind. + rpc GetRolloutKind(GetRolloutKindRequest) returns (RolloutKind) { + option (google.api.http) = { + get: "/v1beta1/{name=projects/*/locations/*/rolloutKinds/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Create a new rollout kind. + rpc CreateRolloutKind(CreateRolloutKindRequest) returns (RolloutKind) { + option (google.api.http) = { + post: "/v1beta1/{parent=projects/*/locations/*}/rolloutKinds" + body: "rollout_kind" + }; + option (google.api.method_signature) = + "parent,rollout_kind,rollout_kind_id"; + } + + // Update a single rollout kind. + rpc UpdateRolloutKind(UpdateRolloutKindRequest) returns (RolloutKind) { + option (google.api.http) = { + patch: "/v1beta1/{rollout_kind.name=projects/*/locations/*/rolloutKinds/*}" + body: "rollout_kind" + }; + option (google.api.method_signature) = "rollout_kind,update_mask"; + } + + // Delete a single rollout kind. + rpc DeleteRolloutKind(DeleteRolloutKindRequest) + returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1beta1/{name=projects/*/locations/*/rolloutKinds/*}" + }; + option (google.api.method_signature) = "name"; + } +} + +// The request structure for the ListRollouts method. +message ListRolloutsRequest { + // Required. The parent of the rollout. + string parent = 10006 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "saasservicemgmt.googleapis.com/Rollout" + } + ]; + + // The maximum number of rollouts to send per page. + int32 page_size = 10505; + + // The page token: If the next_page_token from a previous response + // is provided, this request will send the subsequent page. + string page_token = 10506; + + // Filter the list as specified in https://google.aip.dev/160. + string filter = 10507; + + // Order results as specified in https://google.aip.dev/132. + string order_by = 10508; +} + +// The response structure for the ListRollouts method. +message ListRolloutsResponse { + // The resulting rollouts. + repeated Rollout rollouts = 10509; + + // If present, the next page token can be provided to a subsequent + // ListRollouts call to list the next page. + // If empty, there are no more pages. + string next_page_token = 10510; + + // Locations that could not be reached. + repeated string unreachable = 10511; +} + +// The request structure for the GetRollout method. +message GetRolloutRequest { + // Required. The resource name of the resource within a service. + string name = 10001 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "saasservicemgmt.googleapis.com/Rollout" + } + ]; +} + +// The request structure for the CreateRollout method. +message CreateRolloutRequest { + // Required. The parent of the rollout. + string parent = 10006 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "saasservicemgmt.googleapis.com/Rollout" + } + ]; + + // Required. The ID value for the new rollout. + string rollout_id = 10503 [(google.api.field_behavior) = REQUIRED]; + + // Required. The desired state for the rollout. + Rollout rollout = 10504 [(google.api.field_behavior) = REQUIRED]; + + // If "validate_only" is set to true, the service will try to validate + // that this request would succeed, but will not actually make changes. + bool validate_only = 10501; + + // An optional request ID to identify requests. Specify a unique request ID + // so that if you must retry your request, the server will know to ignore + // the request if it has already been completed. The server will guarantee + // that for at least 60 minutes since the first request. + // + // For example, consider a situation where you make an initial request and the + // request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 10502; +} + +// The request structure for the UpdateRollout method. +message UpdateRolloutRequest { + // Required. The desired state for the rollout. + Rollout rollout = 10504 [(google.api.field_behavior) = REQUIRED]; + + // If "validate_only" is set to true, the service will try to validate + // that this request would succeed, but will not actually make changes. + bool validate_only = 10501; + + // An optional request ID to identify requests. Specify a unique request ID + // so that if you must retry your request, the server will know to ignore + // the request if it has already been completed. The server will guarantee + // that for at least 60 minutes since the first request. + // + // For example, consider a situation where you make an initial request and the + // request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 10502; + + // Field mask is used to specify the fields to be overwritten in the + // Rollout resource by the update. + // + // The fields specified in the update_mask are relative to the resource, not + // the full request. A field will be overwritten if it is in the mask. + // + // If the user does not provide a mask then all fields in the + // Rollout will be overwritten. + google.protobuf.FieldMask update_mask = 10512; +} + +// The request structure for the DeleteRollout method. +message DeleteRolloutRequest { + // Required. The resource name of the resource within a service. + string name = 10001 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "saasservicemgmt.googleapis.com/Rollout" + } + ]; + + // The etag known to the client for the expected state of the rollout. This is + // used with state-changing methods to prevent accidental overwrites when + // multiple user agents might be acting in parallel on the same resource. + // + // An etag wildcard provide optimistic concurrency based on the expected + // existence of the rollout. The Any wildcard (`*`) requires that the resource + // must already exists, and the Not Any wildcard (`!*`) requires that it must + // not. + string etag = 10202; + + // If "validate_only" is set to true, the service will try to validate + // that this request would succeed, but will not actually make changes. + bool validate_only = 10501; + + // An optional request ID to identify requests. Specify a unique request ID + // so that if you must retry your request, the server will know to ignore + // the request if it has already been completed. The server will guarantee + // that for at least 60 minutes since the first request. + // + // For example, consider a situation where you make an initial request and the + // request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 10502; +} + +// The request structure for the ListRolloutKinds method. +message ListRolloutKindsRequest { + // Required. The parent of the rollout kind. + string parent = 10006 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "saasservicemgmt.googleapis.com/RolloutKind" + } + ]; + + // The maximum number of rollout kinds to send per page. + int32 page_size = 10505; + + // The page token: If the next_page_token from a previous response + // is provided, this request will send the subsequent page. + string page_token = 10506; + + // Filter the list as specified in https://google.aip.dev/160. + string filter = 10507; + + // Order results as specified in https://google.aip.dev/132. + string order_by = 10508; +} + +// The response structure for the ListRolloutKinds method. +message ListRolloutKindsResponse { + // The resulting rollout kinds. + repeated RolloutKind rollout_kinds = 10509; + + // If present, the next page token can be provided to a subsequent + // ListRolloutKinds call to list the next page. + // If empty, there are no more pages. + string next_page_token = 10510; + + // Locations that could not be reached. + repeated string unreachable = 10511; +} + +// The request structure for the GetRolloutKind method. +message GetRolloutKindRequest { + // Required. The resource name of the resource within a service. + string name = 10001 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "saasservicemgmt.googleapis.com/RolloutKind" + } + ]; +} + +// The request structure for the CreateRolloutKind method. +message CreateRolloutKindRequest { + // Required. The parent of the rollout kind. + string parent = 10006 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "saasservicemgmt.googleapis.com/RolloutKind" + } + ]; + + // Required. The ID value for the new rollout kind. + string rollout_kind_id = 10503 [(google.api.field_behavior) = REQUIRED]; + + // Required. The desired state for the rollout kind. + RolloutKind rollout_kind = 10504 [(google.api.field_behavior) = REQUIRED]; + + // If "validate_only" is set to true, the service will try to validate + // that this request would succeed, but will not actually make changes. + bool validate_only = 10501; + + // An optional request ID to identify requests. Specify a unique request ID + // so that if you must retry your request, the server will know to ignore + // the request if it has already been completed. The server will guarantee + // that for at least 60 minutes since the first request. + // + // For example, consider a situation where you make an initial request and the + // request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 10502; +} + +// The request structure for the UpdateRolloutKind method. +message UpdateRolloutKindRequest { + // Required. The desired state for the rollout kind. + RolloutKind rollout_kind = 10504 [(google.api.field_behavior) = REQUIRED]; + + // If "validate_only" is set to true, the service will try to validate + // that this request would succeed, but will not actually make changes. + bool validate_only = 10501; + + // An optional request ID to identify requests. Specify a unique request ID + // so that if you must retry your request, the server will know to ignore + // the request if it has already been completed. The server will guarantee + // that for at least 60 minutes since the first request. + // + // For example, consider a situation where you make an initial request and the + // request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 10502; + + // Field mask is used to specify the fields to be overwritten in the + // RolloutKind resource by the update. + // + // The fields specified in the update_mask are relative to the resource, not + // the full request. A field will be overwritten if it is in the mask. + // + // If the user does not provide a mask then all fields in the + // RolloutKind will be overwritten. + google.protobuf.FieldMask update_mask = 10512; +} + +// The request structure for the DeleteRolloutKind method. +message DeleteRolloutKindRequest { + // Required. The resource name of the resource within a service. + string name = 10001 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "saasservicemgmt.googleapis.com/RolloutKind" + } + ]; + + // The etag known to the client for the expected state of the rollout kind. + // This is used with state-changing methods to prevent accidental overwrites + // when multiple user agents might be acting in parallel on the same resource. + // + // An etag wildcard provide optimistic concurrency based on the expected + // existence of the rollout kind. The Any wildcard (`*`) requires that the + // resource must already exists, and the Not Any wildcard (`!*`) requires that + // it must not. + string etag = 10202; + + // If "validate_only" is set to true, the service will try to validate + // that this request would succeed, but will not actually make changes. + bool validate_only = 10501; + + // An optional request ID to identify requests. Specify a unique request ID + // so that if you must retry your request, the server will know to ignore + // the request if it has already been completed. The server will guarantee + // that for at least 60 minutes since the first request. + // + // For example, consider a situation where you make an initial request and the + // request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 10502; +} diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/create/SyncCreateSetCredentialsProvider.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..8bb864a39214 --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsSettings; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + SaasDeploymentsSettings saasDeploymentsSettings = + SaasDeploymentsSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + SaasDeploymentsClient saasDeploymentsClient = + SaasDeploymentsClient.create(saasDeploymentsSettings); + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_Create_SetCredentialsProvider_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/create/SyncCreateSetEndpoint.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..02479471f370 --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/create/SyncCreateSetEndpoint.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_Create_SetEndpoint_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsSettings; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + SaasDeploymentsSettings saasDeploymentsSettings = + SaasDeploymentsSettings.newBuilder().setEndpoint(myEndpoint).build(); + SaasDeploymentsClient saasDeploymentsClient = + SaasDeploymentsClient.create(saasDeploymentsSettings); + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_Create_SetEndpoint_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/create/SyncCreateUseHttpJsonTransport.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..09596749c607 --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_Create_UseHttpJsonTransport_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + SaasDeploymentsSettings saasDeploymentsSettings = + SaasDeploymentsSettings.newHttpJsonBuilder().build(); + SaasDeploymentsClient saasDeploymentsClient = + SaasDeploymentsClient.create(saasDeploymentsSettings); + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_Create_UseHttpJsonTransport_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/createrelease/AsyncCreateRelease.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/createrelease/AsyncCreateRelease.java new file mode 100644 index 000000000000..5ac135c9337f --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/createrelease/AsyncCreateRelease.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_CreateRelease_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateReleaseRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.LocationName; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; + +public class AsyncCreateRelease { + + public static void main(String[] args) throws Exception { + asyncCreateRelease(); + } + + public static void asyncCreateRelease() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + CreateReleaseRequest request = + CreateReleaseRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setReleaseId("releaseId89607042") + .setRelease(Release.newBuilder().build()) + .setValidateOnly(true) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = saasDeploymentsClient.createReleaseCallable().futureCall(request); + // Do something. + Release response = future.get(); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_CreateRelease_async] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/createrelease/SyncCreateRelease.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/createrelease/SyncCreateRelease.java new file mode 100644 index 000000000000..b3b3a2feb590 --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/createrelease/SyncCreateRelease.java @@ -0,0 +1,50 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_CreateRelease_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateReleaseRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.LocationName; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; + +public class SyncCreateRelease { + + public static void main(String[] args) throws Exception { + syncCreateRelease(); + } + + public static void syncCreateRelease() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + CreateReleaseRequest request = + CreateReleaseRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setReleaseId("releaseId89607042") + .setRelease(Release.newBuilder().build()) + .setValidateOnly(true) + .setRequestId("requestId693933066") + .build(); + Release response = saasDeploymentsClient.createRelease(request); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_CreateRelease_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/createrelease/SyncCreateReleaseLocationnameReleaseString.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/createrelease/SyncCreateReleaseLocationnameReleaseString.java new file mode 100644 index 000000000000..6e26b9023c20 --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/createrelease/SyncCreateReleaseLocationnameReleaseString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_CreateRelease_LocationnameReleaseString_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.LocationName; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; + +public class SyncCreateReleaseLocationnameReleaseString { + + public static void main(String[] args) throws Exception { + syncCreateReleaseLocationnameReleaseString(); + } + + public static void syncCreateReleaseLocationnameReleaseString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Release release = Release.newBuilder().build(); + String releaseId = "releaseId89607042"; + Release response = saasDeploymentsClient.createRelease(parent, release, releaseId); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_CreateRelease_LocationnameReleaseString_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/createrelease/SyncCreateReleaseStringReleaseString.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/createrelease/SyncCreateReleaseStringReleaseString.java new file mode 100644 index 000000000000..b241da6bff86 --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/createrelease/SyncCreateReleaseStringReleaseString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_CreateRelease_StringReleaseString_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.LocationName; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; + +public class SyncCreateReleaseStringReleaseString { + + public static void main(String[] args) throws Exception { + syncCreateReleaseStringReleaseString(); + } + + public static void syncCreateReleaseStringReleaseString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + Release release = Release.newBuilder().build(); + String releaseId = "releaseId89607042"; + Release response = saasDeploymentsClient.createRelease(parent, release, releaseId); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_CreateRelease_StringReleaseString_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/createsaas/AsyncCreateSaas.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/createsaas/AsyncCreateSaas.java new file mode 100644 index 000000000000..94b2cf978b0f --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/createsaas/AsyncCreateSaas.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_CreateSaas_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateSaasRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.LocationName; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; + +public class AsyncCreateSaas { + + public static void main(String[] args) throws Exception { + asyncCreateSaas(); + } + + public static void asyncCreateSaas() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + CreateSaasRequest request = + CreateSaasRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setSaasId("saasId-910030789") + .setSaas(Saas.newBuilder().build()) + .setValidateOnly(true) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = saasDeploymentsClient.createSaasCallable().futureCall(request); + // Do something. + Saas response = future.get(); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_CreateSaas_async] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/createsaas/SyncCreateSaas.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/createsaas/SyncCreateSaas.java new file mode 100644 index 000000000000..0ae4d3d4faab --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/createsaas/SyncCreateSaas.java @@ -0,0 +1,50 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_CreateSaas_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateSaasRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.LocationName; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; + +public class SyncCreateSaas { + + public static void main(String[] args) throws Exception { + syncCreateSaas(); + } + + public static void syncCreateSaas() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + CreateSaasRequest request = + CreateSaasRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setSaasId("saasId-910030789") + .setSaas(Saas.newBuilder().build()) + .setValidateOnly(true) + .setRequestId("requestId693933066") + .build(); + Saas response = saasDeploymentsClient.createSaas(request); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_CreateSaas_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/createsaas/SyncCreateSaasLocationnameSaasString.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/createsaas/SyncCreateSaasLocationnameSaasString.java new file mode 100644 index 000000000000..cd530d3047de --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/createsaas/SyncCreateSaasLocationnameSaasString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_CreateSaas_LocationnameSaasString_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.LocationName; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; + +public class SyncCreateSaasLocationnameSaasString { + + public static void main(String[] args) throws Exception { + syncCreateSaasLocationnameSaasString(); + } + + public static void syncCreateSaasLocationnameSaasString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Saas saas = Saas.newBuilder().build(); + String saasId = "saasId-910030789"; + Saas response = saasDeploymentsClient.createSaas(parent, saas, saasId); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_CreateSaas_LocationnameSaasString_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/createsaas/SyncCreateSaasStringSaasString.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/createsaas/SyncCreateSaasStringSaasString.java new file mode 100644 index 000000000000..70e5d0cb6039 --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/createsaas/SyncCreateSaasStringSaasString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_CreateSaas_StringSaasString_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.LocationName; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; + +public class SyncCreateSaasStringSaasString { + + public static void main(String[] args) throws Exception { + syncCreateSaasStringSaasString(); + } + + public static void syncCreateSaasStringSaasString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + Saas saas = Saas.newBuilder().build(); + String saasId = "saasId-910030789"; + Saas response = saasDeploymentsClient.createSaas(parent, saas, saasId); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_CreateSaas_StringSaasString_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/createtenant/AsyncCreateTenant.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/createtenant/AsyncCreateTenant.java new file mode 100644 index 000000000000..88439760880e --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/createtenant/AsyncCreateTenant.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_CreateTenant_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateTenantRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.LocationName; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant; + +public class AsyncCreateTenant { + + public static void main(String[] args) throws Exception { + asyncCreateTenant(); + } + + public static void asyncCreateTenant() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + CreateTenantRequest request = + CreateTenantRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setTenantId("tenantId-1306693787") + .setTenant(Tenant.newBuilder().build()) + .setValidateOnly(true) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = saasDeploymentsClient.createTenantCallable().futureCall(request); + // Do something. + Tenant response = future.get(); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_CreateTenant_async] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/createtenant/SyncCreateTenant.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/createtenant/SyncCreateTenant.java new file mode 100644 index 000000000000..f844564e3371 --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/createtenant/SyncCreateTenant.java @@ -0,0 +1,50 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_CreateTenant_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateTenantRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.LocationName; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant; + +public class SyncCreateTenant { + + public static void main(String[] args) throws Exception { + syncCreateTenant(); + } + + public static void syncCreateTenant() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + CreateTenantRequest request = + CreateTenantRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setTenantId("tenantId-1306693787") + .setTenant(Tenant.newBuilder().build()) + .setValidateOnly(true) + .setRequestId("requestId693933066") + .build(); + Tenant response = saasDeploymentsClient.createTenant(request); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_CreateTenant_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/createtenant/SyncCreateTenantLocationnameTenantString.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/createtenant/SyncCreateTenantLocationnameTenantString.java new file mode 100644 index 000000000000..cffbf45c076b --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/createtenant/SyncCreateTenantLocationnameTenantString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_CreateTenant_LocationnameTenantString_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.LocationName; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant; + +public class SyncCreateTenantLocationnameTenantString { + + public static void main(String[] args) throws Exception { + syncCreateTenantLocationnameTenantString(); + } + + public static void syncCreateTenantLocationnameTenantString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Tenant tenant = Tenant.newBuilder().build(); + String tenantId = "tenantId-1306693787"; + Tenant response = saasDeploymentsClient.createTenant(parent, tenant, tenantId); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_CreateTenant_LocationnameTenantString_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/createtenant/SyncCreateTenantStringTenantString.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/createtenant/SyncCreateTenantStringTenantString.java new file mode 100644 index 000000000000..35f5a6ffaf15 --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/createtenant/SyncCreateTenantStringTenantString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_CreateTenant_StringTenantString_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.LocationName; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant; + +public class SyncCreateTenantStringTenantString { + + public static void main(String[] args) throws Exception { + syncCreateTenantStringTenantString(); + } + + public static void syncCreateTenantStringTenantString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + Tenant tenant = Tenant.newBuilder().build(); + String tenantId = "tenantId-1306693787"; + Tenant response = saasDeploymentsClient.createTenant(parent, tenant, tenantId); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_CreateTenant_StringTenantString_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/createunit/AsyncCreateUnit.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/createunit/AsyncCreateUnit.java new file mode 100644 index 000000000000..17a4c078b7dd --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/createunit/AsyncCreateUnit.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_CreateUnit_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.LocationName; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit; + +public class AsyncCreateUnit { + + public static void main(String[] args) throws Exception { + asyncCreateUnit(); + } + + public static void asyncCreateUnit() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + CreateUnitRequest request = + CreateUnitRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setUnitId("unitId-840527425") + .setUnit(Unit.newBuilder().build()) + .setValidateOnly(true) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = saasDeploymentsClient.createUnitCallable().futureCall(request); + // Do something. + Unit response = future.get(); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_CreateUnit_async] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/createunit/SyncCreateUnit.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/createunit/SyncCreateUnit.java new file mode 100644 index 000000000000..32e14f4483c2 --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/createunit/SyncCreateUnit.java @@ -0,0 +1,50 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_CreateUnit_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.LocationName; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit; + +public class SyncCreateUnit { + + public static void main(String[] args) throws Exception { + syncCreateUnit(); + } + + public static void syncCreateUnit() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + CreateUnitRequest request = + CreateUnitRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setUnitId("unitId-840527425") + .setUnit(Unit.newBuilder().build()) + .setValidateOnly(true) + .setRequestId("requestId693933066") + .build(); + Unit response = saasDeploymentsClient.createUnit(request); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_CreateUnit_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/createunit/SyncCreateUnitLocationnameUnitString.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/createunit/SyncCreateUnitLocationnameUnitString.java new file mode 100644 index 000000000000..cd744f0159fa --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/createunit/SyncCreateUnitLocationnameUnitString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_CreateUnit_LocationnameUnitString_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.LocationName; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit; + +public class SyncCreateUnitLocationnameUnitString { + + public static void main(String[] args) throws Exception { + syncCreateUnitLocationnameUnitString(); + } + + public static void syncCreateUnitLocationnameUnitString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Unit unit = Unit.newBuilder().build(); + String unitId = "unitId-840527425"; + Unit response = saasDeploymentsClient.createUnit(parent, unit, unitId); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_CreateUnit_LocationnameUnitString_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/createunit/SyncCreateUnitStringUnitString.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/createunit/SyncCreateUnitStringUnitString.java new file mode 100644 index 000000000000..dc9953083ccb --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/createunit/SyncCreateUnitStringUnitString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_CreateUnit_StringUnitString_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.LocationName; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit; + +public class SyncCreateUnitStringUnitString { + + public static void main(String[] args) throws Exception { + syncCreateUnitStringUnitString(); + } + + public static void syncCreateUnitStringUnitString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + Unit unit = Unit.newBuilder().build(); + String unitId = "unitId-840527425"; + Unit response = saasDeploymentsClient.createUnit(parent, unit, unitId); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_CreateUnit_StringUnitString_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/createunitkind/AsyncCreateUnitKind.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/createunitkind/AsyncCreateUnitKind.java new file mode 100644 index 000000000000..90d569a6d29c --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/createunitkind/AsyncCreateUnitKind.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_CreateUnitKind_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitKindRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.LocationName; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind; + +public class AsyncCreateUnitKind { + + public static void main(String[] args) throws Exception { + asyncCreateUnitKind(); + } + + public static void asyncCreateUnitKind() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + CreateUnitKindRequest request = + CreateUnitKindRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setUnitKindId("unitKindId1956463219") + .setUnitKind(UnitKind.newBuilder().build()) + .setValidateOnly(true) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + saasDeploymentsClient.createUnitKindCallable().futureCall(request); + // Do something. + UnitKind response = future.get(); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_CreateUnitKind_async] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/createunitkind/SyncCreateUnitKind.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/createunitkind/SyncCreateUnitKind.java new file mode 100644 index 000000000000..cacba2c481c8 --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/createunitkind/SyncCreateUnitKind.java @@ -0,0 +1,50 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_CreateUnitKind_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitKindRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.LocationName; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind; + +public class SyncCreateUnitKind { + + public static void main(String[] args) throws Exception { + syncCreateUnitKind(); + } + + public static void syncCreateUnitKind() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + CreateUnitKindRequest request = + CreateUnitKindRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setUnitKindId("unitKindId1956463219") + .setUnitKind(UnitKind.newBuilder().build()) + .setValidateOnly(true) + .setRequestId("requestId693933066") + .build(); + UnitKind response = saasDeploymentsClient.createUnitKind(request); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_CreateUnitKind_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/createunitkind/SyncCreateUnitKindLocationnameUnitkindString.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/createunitkind/SyncCreateUnitKindLocationnameUnitkindString.java new file mode 100644 index 000000000000..13717d451b11 --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/createunitkind/SyncCreateUnitKindLocationnameUnitkindString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_CreateUnitKind_LocationnameUnitkindString_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.LocationName; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind; + +public class SyncCreateUnitKindLocationnameUnitkindString { + + public static void main(String[] args) throws Exception { + syncCreateUnitKindLocationnameUnitkindString(); + } + + public static void syncCreateUnitKindLocationnameUnitkindString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + UnitKind unitKind = UnitKind.newBuilder().build(); + String unitKindId = "unitKindId1956463219"; + UnitKind response = saasDeploymentsClient.createUnitKind(parent, unitKind, unitKindId); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_CreateUnitKind_LocationnameUnitkindString_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/createunitkind/SyncCreateUnitKindStringUnitkindString.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/createunitkind/SyncCreateUnitKindStringUnitkindString.java new file mode 100644 index 000000000000..2980696cc68b --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/createunitkind/SyncCreateUnitKindStringUnitkindString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_CreateUnitKind_StringUnitkindString_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.LocationName; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind; + +public class SyncCreateUnitKindStringUnitkindString { + + public static void main(String[] args) throws Exception { + syncCreateUnitKindStringUnitkindString(); + } + + public static void syncCreateUnitKindStringUnitkindString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + UnitKind unitKind = UnitKind.newBuilder().build(); + String unitKindId = "unitKindId1956463219"; + UnitKind response = saasDeploymentsClient.createUnitKind(parent, unitKind, unitKindId); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_CreateUnitKind_StringUnitkindString_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/createunitoperation/AsyncCreateUnitOperation.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/createunitoperation/AsyncCreateUnitOperation.java new file mode 100644 index 000000000000..d52b8bd8225d --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/createunitoperation/AsyncCreateUnitOperation.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_CreateUnitOperation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitOperationRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.LocationName; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation; + +public class AsyncCreateUnitOperation { + + public static void main(String[] args) throws Exception { + asyncCreateUnitOperation(); + } + + public static void asyncCreateUnitOperation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + CreateUnitOperationRequest request = + CreateUnitOperationRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setUnitOperationId("unitOperationId-638217026") + .setUnitOperation(UnitOperation.newBuilder().build()) + .setValidateOnly(true) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + saasDeploymentsClient.createUnitOperationCallable().futureCall(request); + // Do something. + UnitOperation response = future.get(); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_CreateUnitOperation_async] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/createunitoperation/SyncCreateUnitOperation.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/createunitoperation/SyncCreateUnitOperation.java new file mode 100644 index 000000000000..4e9c8d39b216 --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/createunitoperation/SyncCreateUnitOperation.java @@ -0,0 +1,50 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_CreateUnitOperation_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateUnitOperationRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.LocationName; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation; + +public class SyncCreateUnitOperation { + + public static void main(String[] args) throws Exception { + syncCreateUnitOperation(); + } + + public static void syncCreateUnitOperation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + CreateUnitOperationRequest request = + CreateUnitOperationRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setUnitOperationId("unitOperationId-638217026") + .setUnitOperation(UnitOperation.newBuilder().build()) + .setValidateOnly(true) + .setRequestId("requestId693933066") + .build(); + UnitOperation response = saasDeploymentsClient.createUnitOperation(request); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_CreateUnitOperation_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/createunitoperation/SyncCreateUnitOperationLocationnameUnitoperationString.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/createunitoperation/SyncCreateUnitOperationLocationnameUnitoperationString.java new file mode 100644 index 000000000000..9a9b7b3a7b7f --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/createunitoperation/SyncCreateUnitOperationLocationnameUnitoperationString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_CreateUnitOperation_LocationnameUnitoperationString_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.LocationName; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation; + +public class SyncCreateUnitOperationLocationnameUnitoperationString { + + public static void main(String[] args) throws Exception { + syncCreateUnitOperationLocationnameUnitoperationString(); + } + + public static void syncCreateUnitOperationLocationnameUnitoperationString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + UnitOperation unitOperation = UnitOperation.newBuilder().build(); + String unitOperationId = "unitOperationId-638217026"; + UnitOperation response = + saasDeploymentsClient.createUnitOperation(parent, unitOperation, unitOperationId); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_CreateUnitOperation_LocationnameUnitoperationString_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/createunitoperation/SyncCreateUnitOperationStringUnitoperationString.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/createunitoperation/SyncCreateUnitOperationStringUnitoperationString.java new file mode 100644 index 000000000000..6f8c301880d4 --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/createunitoperation/SyncCreateUnitOperationStringUnitoperationString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_CreateUnitOperation_StringUnitoperationString_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.LocationName; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation; + +public class SyncCreateUnitOperationStringUnitoperationString { + + public static void main(String[] args) throws Exception { + syncCreateUnitOperationStringUnitoperationString(); + } + + public static void syncCreateUnitOperationStringUnitoperationString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + UnitOperation unitOperation = UnitOperation.newBuilder().build(); + String unitOperationId = "unitOperationId-638217026"; + UnitOperation response = + saasDeploymentsClient.createUnitOperation(parent, unitOperation, unitOperationId); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_CreateUnitOperation_StringUnitoperationString_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/deleterelease/AsyncDeleteRelease.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/deleterelease/AsyncDeleteRelease.java new file mode 100644 index 000000000000..e1f291d913a5 --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/deleterelease/AsyncDeleteRelease.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_DeleteRelease_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteReleaseRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ReleaseName; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.protobuf.Empty; + +public class AsyncDeleteRelease { + + public static void main(String[] args) throws Exception { + asyncDeleteRelease(); + } + + public static void asyncDeleteRelease() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + DeleteReleaseRequest request = + DeleteReleaseRequest.newBuilder() + .setName(ReleaseName.of("[PROJECT]", "[LOCATION]", "[RELEASE]").toString()) + .setEtag("etag3123477") + .setValidateOnly(true) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = saasDeploymentsClient.deleteReleaseCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_DeleteRelease_async] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/deleterelease/SyncDeleteRelease.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/deleterelease/SyncDeleteRelease.java new file mode 100644 index 000000000000..af165ce4175c --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/deleterelease/SyncDeleteRelease.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_DeleteRelease_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteReleaseRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ReleaseName; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.protobuf.Empty; + +public class SyncDeleteRelease { + + public static void main(String[] args) throws Exception { + syncDeleteRelease(); + } + + public static void syncDeleteRelease() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + DeleteReleaseRequest request = + DeleteReleaseRequest.newBuilder() + .setName(ReleaseName.of("[PROJECT]", "[LOCATION]", "[RELEASE]").toString()) + .setEtag("etag3123477") + .setValidateOnly(true) + .setRequestId("requestId693933066") + .build(); + saasDeploymentsClient.deleteRelease(request); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_DeleteRelease_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/deleterelease/SyncDeleteReleaseReleasename.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/deleterelease/SyncDeleteReleaseReleasename.java new file mode 100644 index 000000000000..b3dcd9ccfe90 --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/deleterelease/SyncDeleteReleaseReleasename.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_DeleteRelease_Releasename_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ReleaseName; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.protobuf.Empty; + +public class SyncDeleteReleaseReleasename { + + public static void main(String[] args) throws Exception { + syncDeleteReleaseReleasename(); + } + + public static void syncDeleteReleaseReleasename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + ReleaseName name = ReleaseName.of("[PROJECT]", "[LOCATION]", "[RELEASE]"); + saasDeploymentsClient.deleteRelease(name); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_DeleteRelease_Releasename_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/deleterelease/SyncDeleteReleaseString.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/deleterelease/SyncDeleteReleaseString.java new file mode 100644 index 000000000000..a3b7482b444c --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/deleterelease/SyncDeleteReleaseString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_DeleteRelease_String_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ReleaseName; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.protobuf.Empty; + +public class SyncDeleteReleaseString { + + public static void main(String[] args) throws Exception { + syncDeleteReleaseString(); + } + + public static void syncDeleteReleaseString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + String name = ReleaseName.of("[PROJECT]", "[LOCATION]", "[RELEASE]").toString(); + saasDeploymentsClient.deleteRelease(name); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_DeleteRelease_String_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/deletesaas/AsyncDeleteSaas.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/deletesaas/AsyncDeleteSaas.java new file mode 100644 index 000000000000..d4b13854fe9f --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/deletesaas/AsyncDeleteSaas.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_DeleteSaas_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteSaasRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasName; +import com.google.protobuf.Empty; + +public class AsyncDeleteSaas { + + public static void main(String[] args) throws Exception { + asyncDeleteSaas(); + } + + public static void asyncDeleteSaas() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + DeleteSaasRequest request = + DeleteSaasRequest.newBuilder() + .setName(SaasName.of("[PROJECT]", "[LOCATION]", "[SAAS]").toString()) + .setEtag("etag3123477") + .setValidateOnly(true) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = saasDeploymentsClient.deleteSaasCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_DeleteSaas_async] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/deletesaas/SyncDeleteSaas.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/deletesaas/SyncDeleteSaas.java new file mode 100644 index 000000000000..d0a58496ea5a --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/deletesaas/SyncDeleteSaas.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_DeleteSaas_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteSaasRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasName; +import com.google.protobuf.Empty; + +public class SyncDeleteSaas { + + public static void main(String[] args) throws Exception { + syncDeleteSaas(); + } + + public static void syncDeleteSaas() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + DeleteSaasRequest request = + DeleteSaasRequest.newBuilder() + .setName(SaasName.of("[PROJECT]", "[LOCATION]", "[SAAS]").toString()) + .setEtag("etag3123477") + .setValidateOnly(true) + .setRequestId("requestId693933066") + .build(); + saasDeploymentsClient.deleteSaas(request); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_DeleteSaas_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/deletesaas/SyncDeleteSaasSaasname.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/deletesaas/SyncDeleteSaasSaasname.java new file mode 100644 index 000000000000..2f10f18e653d --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/deletesaas/SyncDeleteSaasSaasname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_DeleteSaas_Saasname_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasName; +import com.google.protobuf.Empty; + +public class SyncDeleteSaasSaasname { + + public static void main(String[] args) throws Exception { + syncDeleteSaasSaasname(); + } + + public static void syncDeleteSaasSaasname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + SaasName name = SaasName.of("[PROJECT]", "[LOCATION]", "[SAAS]"); + saasDeploymentsClient.deleteSaas(name); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_DeleteSaas_Saasname_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/deletesaas/SyncDeleteSaasString.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/deletesaas/SyncDeleteSaasString.java new file mode 100644 index 000000000000..014aad7b683b --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/deletesaas/SyncDeleteSaasString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_DeleteSaas_String_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasName; +import com.google.protobuf.Empty; + +public class SyncDeleteSaasString { + + public static void main(String[] args) throws Exception { + syncDeleteSaasString(); + } + + public static void syncDeleteSaasString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + String name = SaasName.of("[PROJECT]", "[LOCATION]", "[SAAS]").toString(); + saasDeploymentsClient.deleteSaas(name); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_DeleteSaas_String_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/deletetenant/AsyncDeleteTenant.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/deletetenant/AsyncDeleteTenant.java new file mode 100644 index 000000000000..59d2cb76b0f3 --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/deletetenant/AsyncDeleteTenant.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_DeleteTenant_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteTenantRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.TenantName; +import com.google.protobuf.Empty; + +public class AsyncDeleteTenant { + + public static void main(String[] args) throws Exception { + asyncDeleteTenant(); + } + + public static void asyncDeleteTenant() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + DeleteTenantRequest request = + DeleteTenantRequest.newBuilder() + .setName(TenantName.of("[PROJECT]", "[LOCATION]", "[TENANT]").toString()) + .setEtag("etag3123477") + .setValidateOnly(true) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = saasDeploymentsClient.deleteTenantCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_DeleteTenant_async] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/deletetenant/SyncDeleteTenant.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/deletetenant/SyncDeleteTenant.java new file mode 100644 index 000000000000..2a74acb28136 --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/deletetenant/SyncDeleteTenant.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_DeleteTenant_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteTenantRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.TenantName; +import com.google.protobuf.Empty; + +public class SyncDeleteTenant { + + public static void main(String[] args) throws Exception { + syncDeleteTenant(); + } + + public static void syncDeleteTenant() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + DeleteTenantRequest request = + DeleteTenantRequest.newBuilder() + .setName(TenantName.of("[PROJECT]", "[LOCATION]", "[TENANT]").toString()) + .setEtag("etag3123477") + .setValidateOnly(true) + .setRequestId("requestId693933066") + .build(); + saasDeploymentsClient.deleteTenant(request); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_DeleteTenant_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/deletetenant/SyncDeleteTenantString.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/deletetenant/SyncDeleteTenantString.java new file mode 100644 index 000000000000..15a994bbf3ad --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/deletetenant/SyncDeleteTenantString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_DeleteTenant_String_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.TenantName; +import com.google.protobuf.Empty; + +public class SyncDeleteTenantString { + + public static void main(String[] args) throws Exception { + syncDeleteTenantString(); + } + + public static void syncDeleteTenantString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + String name = TenantName.of("[PROJECT]", "[LOCATION]", "[TENANT]").toString(); + saasDeploymentsClient.deleteTenant(name); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_DeleteTenant_String_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/deletetenant/SyncDeleteTenantTenantname.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/deletetenant/SyncDeleteTenantTenantname.java new file mode 100644 index 000000000000..15ccfa132611 --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/deletetenant/SyncDeleteTenantTenantname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_DeleteTenant_Tenantname_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.TenantName; +import com.google.protobuf.Empty; + +public class SyncDeleteTenantTenantname { + + public static void main(String[] args) throws Exception { + syncDeleteTenantTenantname(); + } + + public static void syncDeleteTenantTenantname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + TenantName name = TenantName.of("[PROJECT]", "[LOCATION]", "[TENANT]"); + saasDeploymentsClient.deleteTenant(name); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_DeleteTenant_Tenantname_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/deleteunit/AsyncDeleteUnit.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/deleteunit/AsyncDeleteUnit.java new file mode 100644 index 000000000000..51d15bcbc5c8 --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/deleteunit/AsyncDeleteUnit.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_DeleteUnit_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitName; +import com.google.protobuf.Empty; + +public class AsyncDeleteUnit { + + public static void main(String[] args) throws Exception { + asyncDeleteUnit(); + } + + public static void asyncDeleteUnit() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + DeleteUnitRequest request = + DeleteUnitRequest.newBuilder() + .setName(UnitName.of("[PROJECT]", "[LOCATION]", "[UNIT]").toString()) + .setEtag("etag3123477") + .setValidateOnly(true) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = saasDeploymentsClient.deleteUnitCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_DeleteUnit_async] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/deleteunit/SyncDeleteUnit.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/deleteunit/SyncDeleteUnit.java new file mode 100644 index 000000000000..1f1298ee7099 --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/deleteunit/SyncDeleteUnit.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_DeleteUnit_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitName; +import com.google.protobuf.Empty; + +public class SyncDeleteUnit { + + public static void main(String[] args) throws Exception { + syncDeleteUnit(); + } + + public static void syncDeleteUnit() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + DeleteUnitRequest request = + DeleteUnitRequest.newBuilder() + .setName(UnitName.of("[PROJECT]", "[LOCATION]", "[UNIT]").toString()) + .setEtag("etag3123477") + .setValidateOnly(true) + .setRequestId("requestId693933066") + .build(); + saasDeploymentsClient.deleteUnit(request); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_DeleteUnit_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/deleteunit/SyncDeleteUnitString.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/deleteunit/SyncDeleteUnitString.java new file mode 100644 index 000000000000..8c92a00e1a66 --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/deleteunit/SyncDeleteUnitString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_DeleteUnit_String_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitName; +import com.google.protobuf.Empty; + +public class SyncDeleteUnitString { + + public static void main(String[] args) throws Exception { + syncDeleteUnitString(); + } + + public static void syncDeleteUnitString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + String name = UnitName.of("[PROJECT]", "[LOCATION]", "[UNIT]").toString(); + saasDeploymentsClient.deleteUnit(name); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_DeleteUnit_String_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/deleteunit/SyncDeleteUnitUnitname.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/deleteunit/SyncDeleteUnitUnitname.java new file mode 100644 index 000000000000..528bbbb17275 --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/deleteunit/SyncDeleteUnitUnitname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_DeleteUnit_Unitname_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitName; +import com.google.protobuf.Empty; + +public class SyncDeleteUnitUnitname { + + public static void main(String[] args) throws Exception { + syncDeleteUnitUnitname(); + } + + public static void syncDeleteUnitUnitname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + UnitName name = UnitName.of("[PROJECT]", "[LOCATION]", "[UNIT]"); + saasDeploymentsClient.deleteUnit(name); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_DeleteUnit_Unitname_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/deleteunitkind/AsyncDeleteUnitKind.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/deleteunitkind/AsyncDeleteUnitKind.java new file mode 100644 index 000000000000..ee48eb53434c --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/deleteunitkind/AsyncDeleteUnitKind.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_DeleteUnitKind_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitKindRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKindName; +import com.google.protobuf.Empty; + +public class AsyncDeleteUnitKind { + + public static void main(String[] args) throws Exception { + asyncDeleteUnitKind(); + } + + public static void asyncDeleteUnitKind() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + DeleteUnitKindRequest request = + DeleteUnitKindRequest.newBuilder() + .setName(UnitKindName.of("[PROJECT]", "[LOCATION]", "[UNITKIND]").toString()) + .setEtag("etag3123477") + .setValidateOnly(true) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = saasDeploymentsClient.deleteUnitKindCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_DeleteUnitKind_async] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/deleteunitkind/SyncDeleteUnitKind.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/deleteunitkind/SyncDeleteUnitKind.java new file mode 100644 index 000000000000..0b7ac3651d32 --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/deleteunitkind/SyncDeleteUnitKind.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_DeleteUnitKind_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitKindRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKindName; +import com.google.protobuf.Empty; + +public class SyncDeleteUnitKind { + + public static void main(String[] args) throws Exception { + syncDeleteUnitKind(); + } + + public static void syncDeleteUnitKind() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + DeleteUnitKindRequest request = + DeleteUnitKindRequest.newBuilder() + .setName(UnitKindName.of("[PROJECT]", "[LOCATION]", "[UNITKIND]").toString()) + .setEtag("etag3123477") + .setValidateOnly(true) + .setRequestId("requestId693933066") + .build(); + saasDeploymentsClient.deleteUnitKind(request); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_DeleteUnitKind_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/deleteunitkind/SyncDeleteUnitKindString.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/deleteunitkind/SyncDeleteUnitKindString.java new file mode 100644 index 000000000000..9286b77885fe --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/deleteunitkind/SyncDeleteUnitKindString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_DeleteUnitKind_String_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKindName; +import com.google.protobuf.Empty; + +public class SyncDeleteUnitKindString { + + public static void main(String[] args) throws Exception { + syncDeleteUnitKindString(); + } + + public static void syncDeleteUnitKindString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + String name = UnitKindName.of("[PROJECT]", "[LOCATION]", "[UNITKIND]").toString(); + saasDeploymentsClient.deleteUnitKind(name); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_DeleteUnitKind_String_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/deleteunitkind/SyncDeleteUnitKindUnitkindname.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/deleteunitkind/SyncDeleteUnitKindUnitkindname.java new file mode 100644 index 000000000000..151e2bc42e1d --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/deleteunitkind/SyncDeleteUnitKindUnitkindname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_DeleteUnitKind_Unitkindname_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKindName; +import com.google.protobuf.Empty; + +public class SyncDeleteUnitKindUnitkindname { + + public static void main(String[] args) throws Exception { + syncDeleteUnitKindUnitkindname(); + } + + public static void syncDeleteUnitKindUnitkindname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + UnitKindName name = UnitKindName.of("[PROJECT]", "[LOCATION]", "[UNITKIND]"); + saasDeploymentsClient.deleteUnitKind(name); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_DeleteUnitKind_Unitkindname_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/deleteunitoperation/AsyncDeleteUnitOperation.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/deleteunitoperation/AsyncDeleteUnitOperation.java new file mode 100644 index 000000000000..bd7076905ecf --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/deleteunitoperation/AsyncDeleteUnitOperation.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_DeleteUnitOperation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitOperationRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationName; +import com.google.protobuf.Empty; + +public class AsyncDeleteUnitOperation { + + public static void main(String[] args) throws Exception { + asyncDeleteUnitOperation(); + } + + public static void asyncDeleteUnitOperation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + DeleteUnitOperationRequest request = + DeleteUnitOperationRequest.newBuilder() + .setName( + UnitOperationName.of("[PROJECT]", "[LOCATION]", "[UNITOPERATION]").toString()) + .setEtag("etag3123477") + .setValidateOnly(true) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + saasDeploymentsClient.deleteUnitOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_DeleteUnitOperation_async] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/deleteunitoperation/SyncDeleteUnitOperation.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/deleteunitoperation/SyncDeleteUnitOperation.java new file mode 100644 index 000000000000..23d5c50e5a11 --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/deleteunitoperation/SyncDeleteUnitOperation.java @@ -0,0 +1,50 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_DeleteUnitOperation_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteUnitOperationRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationName; +import com.google.protobuf.Empty; + +public class SyncDeleteUnitOperation { + + public static void main(String[] args) throws Exception { + syncDeleteUnitOperation(); + } + + public static void syncDeleteUnitOperation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + DeleteUnitOperationRequest request = + DeleteUnitOperationRequest.newBuilder() + .setName( + UnitOperationName.of("[PROJECT]", "[LOCATION]", "[UNITOPERATION]").toString()) + .setEtag("etag3123477") + .setValidateOnly(true) + .setRequestId("requestId693933066") + .build(); + saasDeploymentsClient.deleteUnitOperation(request); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_DeleteUnitOperation_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/deleteunitoperation/SyncDeleteUnitOperationString.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/deleteunitoperation/SyncDeleteUnitOperationString.java new file mode 100644 index 000000000000..4e341b08e56f --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/deleteunitoperation/SyncDeleteUnitOperationString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_DeleteUnitOperation_String_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationName; +import com.google.protobuf.Empty; + +public class SyncDeleteUnitOperationString { + + public static void main(String[] args) throws Exception { + syncDeleteUnitOperationString(); + } + + public static void syncDeleteUnitOperationString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + String name = UnitOperationName.of("[PROJECT]", "[LOCATION]", "[UNITOPERATION]").toString(); + saasDeploymentsClient.deleteUnitOperation(name); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_DeleteUnitOperation_String_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/deleteunitoperation/SyncDeleteUnitOperationUnitoperationname.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/deleteunitoperation/SyncDeleteUnitOperationUnitoperationname.java new file mode 100644 index 000000000000..492010bcc65b --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/deleteunitoperation/SyncDeleteUnitOperationUnitoperationname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_DeleteUnitOperation_Unitoperationname_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationName; +import com.google.protobuf.Empty; + +public class SyncDeleteUnitOperationUnitoperationname { + + public static void main(String[] args) throws Exception { + syncDeleteUnitOperationUnitoperationname(); + } + + public static void syncDeleteUnitOperationUnitoperationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + UnitOperationName name = UnitOperationName.of("[PROJECT]", "[LOCATION]", "[UNITOPERATION]"); + saasDeploymentsClient.deleteUnitOperation(name); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_DeleteUnitOperation_Unitoperationname_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/getlocation/AsyncGetLocation.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/getlocation/AsyncGetLocation.java new file mode 100644 index 000000000000..69d8ab627b9f --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/getlocation/AsyncGetLocation.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_GetLocation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; + +public class AsyncGetLocation { + + public static void main(String[] args) throws Exception { + asyncGetLocation(); + } + + public static void asyncGetLocation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + ApiFuture future = saasDeploymentsClient.getLocationCallable().futureCall(request); + // Do something. + Location response = future.get(); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_GetLocation_async] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/getlocation/SyncGetLocation.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/getlocation/SyncGetLocation.java new file mode 100644 index 000000000000..0a281e4e2cc7 --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/getlocation/SyncGetLocation.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_GetLocation_sync] +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; + +public class SyncGetLocation { + + public static void main(String[] args) throws Exception { + syncGetLocation(); + } + + public static void syncGetLocation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + Location response = saasDeploymentsClient.getLocation(request); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_GetLocation_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/getrelease/AsyncGetRelease.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/getrelease/AsyncGetRelease.java new file mode 100644 index 000000000000..89d8455387b7 --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/getrelease/AsyncGetRelease.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_GetRelease_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetReleaseRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ReleaseName; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; + +public class AsyncGetRelease { + + public static void main(String[] args) throws Exception { + asyncGetRelease(); + } + + public static void asyncGetRelease() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + GetReleaseRequest request = + GetReleaseRequest.newBuilder() + .setName(ReleaseName.of("[PROJECT]", "[LOCATION]", "[RELEASE]").toString()) + .build(); + ApiFuture future = saasDeploymentsClient.getReleaseCallable().futureCall(request); + // Do something. + Release response = future.get(); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_GetRelease_async] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/getrelease/SyncGetRelease.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/getrelease/SyncGetRelease.java new file mode 100644 index 000000000000..2ead413f0c2e --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/getrelease/SyncGetRelease.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_GetRelease_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetReleaseRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ReleaseName; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; + +public class SyncGetRelease { + + public static void main(String[] args) throws Exception { + syncGetRelease(); + } + + public static void syncGetRelease() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + GetReleaseRequest request = + GetReleaseRequest.newBuilder() + .setName(ReleaseName.of("[PROJECT]", "[LOCATION]", "[RELEASE]").toString()) + .build(); + Release response = saasDeploymentsClient.getRelease(request); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_GetRelease_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/getrelease/SyncGetReleaseReleasename.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/getrelease/SyncGetReleaseReleasename.java new file mode 100644 index 000000000000..0329fd4ea30f --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/getrelease/SyncGetReleaseReleasename.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_GetRelease_Releasename_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ReleaseName; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; + +public class SyncGetReleaseReleasename { + + public static void main(String[] args) throws Exception { + syncGetReleaseReleasename(); + } + + public static void syncGetReleaseReleasename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + ReleaseName name = ReleaseName.of("[PROJECT]", "[LOCATION]", "[RELEASE]"); + Release response = saasDeploymentsClient.getRelease(name); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_GetRelease_Releasename_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/getrelease/SyncGetReleaseString.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/getrelease/SyncGetReleaseString.java new file mode 100644 index 000000000000..a6c8bae59173 --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/getrelease/SyncGetReleaseString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_GetRelease_String_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ReleaseName; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; + +public class SyncGetReleaseString { + + public static void main(String[] args) throws Exception { + syncGetReleaseString(); + } + + public static void syncGetReleaseString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + String name = ReleaseName.of("[PROJECT]", "[LOCATION]", "[RELEASE]").toString(); + Release response = saasDeploymentsClient.getRelease(name); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_GetRelease_String_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/getsaas/AsyncGetSaas.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/getsaas/AsyncGetSaas.java new file mode 100644 index 000000000000..f314093c3514 --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/getsaas/AsyncGetSaas.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_GetSaas_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetSaasRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasName; + +public class AsyncGetSaas { + + public static void main(String[] args) throws Exception { + asyncGetSaas(); + } + + public static void asyncGetSaas() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + GetSaasRequest request = + GetSaasRequest.newBuilder() + .setName(SaasName.of("[PROJECT]", "[LOCATION]", "[SAAS]").toString()) + .build(); + ApiFuture future = saasDeploymentsClient.getSaasCallable().futureCall(request); + // Do something. + Saas response = future.get(); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_GetSaas_async] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/getsaas/SyncGetSaas.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/getsaas/SyncGetSaas.java new file mode 100644 index 000000000000..2d0cc3a868ef --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/getsaas/SyncGetSaas.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_GetSaas_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetSaasRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasName; + +public class SyncGetSaas { + + public static void main(String[] args) throws Exception { + syncGetSaas(); + } + + public static void syncGetSaas() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + GetSaasRequest request = + GetSaasRequest.newBuilder() + .setName(SaasName.of("[PROJECT]", "[LOCATION]", "[SAAS]").toString()) + .build(); + Saas response = saasDeploymentsClient.getSaas(request); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_GetSaas_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/getsaas/SyncGetSaasSaasname.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/getsaas/SyncGetSaasSaasname.java new file mode 100644 index 000000000000..9ef105c419b5 --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/getsaas/SyncGetSaasSaasname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_GetSaas_Saasname_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasName; + +public class SyncGetSaasSaasname { + + public static void main(String[] args) throws Exception { + syncGetSaasSaasname(); + } + + public static void syncGetSaasSaasname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + SaasName name = SaasName.of("[PROJECT]", "[LOCATION]", "[SAAS]"); + Saas response = saasDeploymentsClient.getSaas(name); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_GetSaas_Saasname_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/getsaas/SyncGetSaasString.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/getsaas/SyncGetSaasString.java new file mode 100644 index 000000000000..db06f66b8565 --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/getsaas/SyncGetSaasString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_GetSaas_String_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasName; + +public class SyncGetSaasString { + + public static void main(String[] args) throws Exception { + syncGetSaasString(); + } + + public static void syncGetSaasString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + String name = SaasName.of("[PROJECT]", "[LOCATION]", "[SAAS]").toString(); + Saas response = saasDeploymentsClient.getSaas(name); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_GetSaas_String_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/gettenant/AsyncGetTenant.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/gettenant/AsyncGetTenant.java new file mode 100644 index 000000000000..40bbd765032c --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/gettenant/AsyncGetTenant.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_GetTenant_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetTenantRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.TenantName; + +public class AsyncGetTenant { + + public static void main(String[] args) throws Exception { + asyncGetTenant(); + } + + public static void asyncGetTenant() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + GetTenantRequest request = + GetTenantRequest.newBuilder() + .setName(TenantName.of("[PROJECT]", "[LOCATION]", "[TENANT]").toString()) + .build(); + ApiFuture future = saasDeploymentsClient.getTenantCallable().futureCall(request); + // Do something. + Tenant response = future.get(); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_GetTenant_async] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/gettenant/SyncGetTenant.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/gettenant/SyncGetTenant.java new file mode 100644 index 000000000000..854368a356bd --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/gettenant/SyncGetTenant.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_GetTenant_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetTenantRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.TenantName; + +public class SyncGetTenant { + + public static void main(String[] args) throws Exception { + syncGetTenant(); + } + + public static void syncGetTenant() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + GetTenantRequest request = + GetTenantRequest.newBuilder() + .setName(TenantName.of("[PROJECT]", "[LOCATION]", "[TENANT]").toString()) + .build(); + Tenant response = saasDeploymentsClient.getTenant(request); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_GetTenant_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/gettenant/SyncGetTenantString.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/gettenant/SyncGetTenantString.java new file mode 100644 index 000000000000..b05fab25f10b --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/gettenant/SyncGetTenantString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_GetTenant_String_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.TenantName; + +public class SyncGetTenantString { + + public static void main(String[] args) throws Exception { + syncGetTenantString(); + } + + public static void syncGetTenantString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + String name = TenantName.of("[PROJECT]", "[LOCATION]", "[TENANT]").toString(); + Tenant response = saasDeploymentsClient.getTenant(name); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_GetTenant_String_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/gettenant/SyncGetTenantTenantname.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/gettenant/SyncGetTenantTenantname.java new file mode 100644 index 000000000000..6415c5d333ab --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/gettenant/SyncGetTenantTenantname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_GetTenant_Tenantname_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.TenantName; + +public class SyncGetTenantTenantname { + + public static void main(String[] args) throws Exception { + syncGetTenantTenantname(); + } + + public static void syncGetTenantTenantname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + TenantName name = TenantName.of("[PROJECT]", "[LOCATION]", "[TENANT]"); + Tenant response = saasDeploymentsClient.getTenant(name); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_GetTenant_Tenantname_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/getunit/AsyncGetUnit.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/getunit/AsyncGetUnit.java new file mode 100644 index 000000000000..6c53e4b6a510 --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/getunit/AsyncGetUnit.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_GetUnit_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitName; + +public class AsyncGetUnit { + + public static void main(String[] args) throws Exception { + asyncGetUnit(); + } + + public static void asyncGetUnit() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + GetUnitRequest request = + GetUnitRequest.newBuilder() + .setName(UnitName.of("[PROJECT]", "[LOCATION]", "[UNIT]").toString()) + .build(); + ApiFuture future = saasDeploymentsClient.getUnitCallable().futureCall(request); + // Do something. + Unit response = future.get(); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_GetUnit_async] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/getunit/SyncGetUnit.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/getunit/SyncGetUnit.java new file mode 100644 index 000000000000..cd1eb46d64fd --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/getunit/SyncGetUnit.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_GetUnit_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitName; + +public class SyncGetUnit { + + public static void main(String[] args) throws Exception { + syncGetUnit(); + } + + public static void syncGetUnit() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + GetUnitRequest request = + GetUnitRequest.newBuilder() + .setName(UnitName.of("[PROJECT]", "[LOCATION]", "[UNIT]").toString()) + .build(); + Unit response = saasDeploymentsClient.getUnit(request); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_GetUnit_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/getunit/SyncGetUnitString.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/getunit/SyncGetUnitString.java new file mode 100644 index 000000000000..bda5e3721b02 --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/getunit/SyncGetUnitString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_GetUnit_String_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitName; + +public class SyncGetUnitString { + + public static void main(String[] args) throws Exception { + syncGetUnitString(); + } + + public static void syncGetUnitString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + String name = UnitName.of("[PROJECT]", "[LOCATION]", "[UNIT]").toString(); + Unit response = saasDeploymentsClient.getUnit(name); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_GetUnit_String_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/getunit/SyncGetUnitUnitname.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/getunit/SyncGetUnitUnitname.java new file mode 100644 index 000000000000..fdd22feaee40 --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/getunit/SyncGetUnitUnitname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_GetUnit_Unitname_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitName; + +public class SyncGetUnitUnitname { + + public static void main(String[] args) throws Exception { + syncGetUnitUnitname(); + } + + public static void syncGetUnitUnitname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + UnitName name = UnitName.of("[PROJECT]", "[LOCATION]", "[UNIT]"); + Unit response = saasDeploymentsClient.getUnit(name); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_GetUnit_Unitname_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/getunitkind/AsyncGetUnitKind.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/getunitkind/AsyncGetUnitKind.java new file mode 100644 index 000000000000..eebcf73996be --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/getunitkind/AsyncGetUnitKind.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_GetUnitKind_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitKindRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKindName; + +public class AsyncGetUnitKind { + + public static void main(String[] args) throws Exception { + asyncGetUnitKind(); + } + + public static void asyncGetUnitKind() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + GetUnitKindRequest request = + GetUnitKindRequest.newBuilder() + .setName(UnitKindName.of("[PROJECT]", "[LOCATION]", "[UNITKIND]").toString()) + .build(); + ApiFuture future = saasDeploymentsClient.getUnitKindCallable().futureCall(request); + // Do something. + UnitKind response = future.get(); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_GetUnitKind_async] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/getunitkind/SyncGetUnitKind.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/getunitkind/SyncGetUnitKind.java new file mode 100644 index 000000000000..09fdacd7d055 --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/getunitkind/SyncGetUnitKind.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_GetUnitKind_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitKindRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKindName; + +public class SyncGetUnitKind { + + public static void main(String[] args) throws Exception { + syncGetUnitKind(); + } + + public static void syncGetUnitKind() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + GetUnitKindRequest request = + GetUnitKindRequest.newBuilder() + .setName(UnitKindName.of("[PROJECT]", "[LOCATION]", "[UNITKIND]").toString()) + .build(); + UnitKind response = saasDeploymentsClient.getUnitKind(request); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_GetUnitKind_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/getunitkind/SyncGetUnitKindString.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/getunitkind/SyncGetUnitKindString.java new file mode 100644 index 000000000000..dc7fdf604d34 --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/getunitkind/SyncGetUnitKindString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_GetUnitKind_String_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKindName; + +public class SyncGetUnitKindString { + + public static void main(String[] args) throws Exception { + syncGetUnitKindString(); + } + + public static void syncGetUnitKindString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + String name = UnitKindName.of("[PROJECT]", "[LOCATION]", "[UNITKIND]").toString(); + UnitKind response = saasDeploymentsClient.getUnitKind(name); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_GetUnitKind_String_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/getunitkind/SyncGetUnitKindUnitkindname.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/getunitkind/SyncGetUnitKindUnitkindname.java new file mode 100644 index 000000000000..138e8972768f --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/getunitkind/SyncGetUnitKindUnitkindname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_GetUnitKind_Unitkindname_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKindName; + +public class SyncGetUnitKindUnitkindname { + + public static void main(String[] args) throws Exception { + syncGetUnitKindUnitkindname(); + } + + public static void syncGetUnitKindUnitkindname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + UnitKindName name = UnitKindName.of("[PROJECT]", "[LOCATION]", "[UNITKIND]"); + UnitKind response = saasDeploymentsClient.getUnitKind(name); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_GetUnitKind_Unitkindname_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/getunitoperation/AsyncGetUnitOperation.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/getunitoperation/AsyncGetUnitOperation.java new file mode 100644 index 000000000000..3cb194b803d2 --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/getunitoperation/AsyncGetUnitOperation.java @@ -0,0 +1,51 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_GetUnitOperation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitOperationRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationName; + +public class AsyncGetUnitOperation { + + public static void main(String[] args) throws Exception { + asyncGetUnitOperation(); + } + + public static void asyncGetUnitOperation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + GetUnitOperationRequest request = + GetUnitOperationRequest.newBuilder() + .setName( + UnitOperationName.of("[PROJECT]", "[LOCATION]", "[UNITOPERATION]").toString()) + .build(); + ApiFuture future = + saasDeploymentsClient.getUnitOperationCallable().futureCall(request); + // Do something. + UnitOperation response = future.get(); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_GetUnitOperation_async] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/getunitoperation/SyncGetUnitOperation.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/getunitoperation/SyncGetUnitOperation.java new file mode 100644 index 000000000000..d2e71a1adf8a --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/getunitoperation/SyncGetUnitOperation.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_GetUnitOperation_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetUnitOperationRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationName; + +public class SyncGetUnitOperation { + + public static void main(String[] args) throws Exception { + syncGetUnitOperation(); + } + + public static void syncGetUnitOperation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + GetUnitOperationRequest request = + GetUnitOperationRequest.newBuilder() + .setName( + UnitOperationName.of("[PROJECT]", "[LOCATION]", "[UNITOPERATION]").toString()) + .build(); + UnitOperation response = saasDeploymentsClient.getUnitOperation(request); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_GetUnitOperation_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/getunitoperation/SyncGetUnitOperationString.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/getunitoperation/SyncGetUnitOperationString.java new file mode 100644 index 000000000000..351f9971dccd --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/getunitoperation/SyncGetUnitOperationString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_GetUnitOperation_String_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationName; + +public class SyncGetUnitOperationString { + + public static void main(String[] args) throws Exception { + syncGetUnitOperationString(); + } + + public static void syncGetUnitOperationString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + String name = UnitOperationName.of("[PROJECT]", "[LOCATION]", "[UNITOPERATION]").toString(); + UnitOperation response = saasDeploymentsClient.getUnitOperation(name); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_GetUnitOperation_String_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/getunitoperation/SyncGetUnitOperationUnitoperationname.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/getunitoperation/SyncGetUnitOperationUnitoperationname.java new file mode 100644 index 000000000000..719808261c1b --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/getunitoperation/SyncGetUnitOperationUnitoperationname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_GetUnitOperation_Unitoperationname_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperationName; + +public class SyncGetUnitOperationUnitoperationname { + + public static void main(String[] args) throws Exception { + syncGetUnitOperationUnitoperationname(); + } + + public static void syncGetUnitOperationUnitoperationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + UnitOperationName name = UnitOperationName.of("[PROJECT]", "[LOCATION]", "[UNITOPERATION]"); + UnitOperation response = saasDeploymentsClient.getUnitOperation(name); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_GetUnitOperation_Unitoperationname_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listlocations/AsyncListLocations.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listlocations/AsyncListLocations.java new file mode 100644 index 000000000000..26f71ac91cbe --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listlocations/AsyncListLocations.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_ListLocations_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; + +public class AsyncListLocations { + + public static void main(String[] args) throws Exception { + asyncListLocations(); + } + + public static void asyncListLocations() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + saasDeploymentsClient.listLocationsPagedCallable().futureCall(request); + // Do something. + for (Location element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_ListLocations_async] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listlocations/AsyncListLocationsPaged.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listlocations/AsyncListLocationsPaged.java new file mode 100644 index 000000000000..52cfaeba7cd7 --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listlocations/AsyncListLocationsPaged.java @@ -0,0 +1,62 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_ListLocations_Paged_async] +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.common.base.Strings; + +public class AsyncListLocationsPaged { + + public static void main(String[] args) throws Exception { + asyncListLocationsPaged(); + } + + public static void asyncListLocationsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListLocationsResponse response = + saasDeploymentsClient.listLocationsCallable().call(request); + for (Location element : response.getLocationsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_ListLocations_Paged_async] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listlocations/SyncListLocations.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listlocations/SyncListLocations.java new file mode 100644 index 000000000000..61e6cc7f4e81 --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listlocations/SyncListLocations.java @@ -0,0 +1,50 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_ListLocations_sync] +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; + +public class SyncListLocations { + + public static void main(String[] args) throws Exception { + syncListLocations(); + } + + public static void syncListLocations() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Location element : saasDeploymentsClient.listLocations(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_ListLocations_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listreleases/AsyncListReleases.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listreleases/AsyncListReleases.java new file mode 100644 index 000000000000..a98d18d00622 --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listreleases/AsyncListReleases.java @@ -0,0 +1,56 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_ListReleases_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.LocationName; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; + +public class AsyncListReleases { + + public static void main(String[] args) throws Exception { + asyncListReleases(); + } + + public static void asyncListReleases() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + ListReleasesRequest request = + ListReleasesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + saasDeploymentsClient.listReleasesPagedCallable().futureCall(request); + // Do something. + for (Release element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_ListReleases_async] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listreleases/AsyncListReleasesPaged.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listreleases/AsyncListReleasesPaged.java new file mode 100644 index 000000000000..6e54be6f05dc --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listreleases/AsyncListReleasesPaged.java @@ -0,0 +1,63 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_ListReleases_Paged_async] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesResponse; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.LocationName; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.common.base.Strings; + +public class AsyncListReleasesPaged { + + public static void main(String[] args) throws Exception { + asyncListReleasesPaged(); + } + + public static void asyncListReleasesPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + ListReleasesRequest request = + ListReleasesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListReleasesResponse response = saasDeploymentsClient.listReleasesCallable().call(request); + for (Release element : response.getReleasesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_ListReleases_Paged_async] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listreleases/SyncListReleases.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listreleases/SyncListReleases.java new file mode 100644 index 000000000000..687f651b1b7b --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listreleases/SyncListReleases.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_ListReleases_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListReleasesRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.LocationName; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; + +public class SyncListReleases { + + public static void main(String[] args) throws Exception { + syncListReleases(); + } + + public static void syncListReleases() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + ListReleasesRequest request = + ListReleasesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (Release element : saasDeploymentsClient.listReleases(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_ListReleases_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listreleases/SyncListReleasesLocationname.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listreleases/SyncListReleasesLocationname.java new file mode 100644 index 000000000000..3cfc4fbdda7d --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listreleases/SyncListReleasesLocationname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_ListReleases_Locationname_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.LocationName; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; + +public class SyncListReleasesLocationname { + + public static void main(String[] args) throws Exception { + syncListReleasesLocationname(); + } + + public static void syncListReleasesLocationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (Release element : saasDeploymentsClient.listReleases(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_ListReleases_Locationname_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listreleases/SyncListReleasesString.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listreleases/SyncListReleasesString.java new file mode 100644 index 000000000000..9c66db200f91 --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listreleases/SyncListReleasesString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_ListReleases_String_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.LocationName; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; + +public class SyncListReleasesString { + + public static void main(String[] args) throws Exception { + syncListReleasesString(); + } + + public static void syncListReleasesString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (Release element : saasDeploymentsClient.listReleases(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_ListReleases_String_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listsaas/AsyncListSaas.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listsaas/AsyncListSaas.java new file mode 100644 index 000000000000..394f0ae903a7 --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listsaas/AsyncListSaas.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_ListSaas_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.LocationName; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; + +public class AsyncListSaas { + + public static void main(String[] args) throws Exception { + asyncListSaas(); + } + + public static void asyncListSaas() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + ListSaasRequest request = + ListSaasRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = saasDeploymentsClient.listSaasPagedCallable().futureCall(request); + // Do something. + for (Saas element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_ListSaas_async] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listsaas/AsyncListSaasPaged.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listsaas/AsyncListSaasPaged.java new file mode 100644 index 000000000000..eb33d90067ab --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listsaas/AsyncListSaasPaged.java @@ -0,0 +1,63 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_ListSaas_Paged_async] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasResponse; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.LocationName; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.common.base.Strings; + +public class AsyncListSaasPaged { + + public static void main(String[] args) throws Exception { + asyncListSaasPaged(); + } + + public static void asyncListSaasPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + ListSaasRequest request = + ListSaasRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListSaasResponse response = saasDeploymentsClient.listSaasCallable().call(request); + for (Saas element : response.getSaasList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_ListSaas_Paged_async] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listsaas/SyncListSaas.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listsaas/SyncListSaas.java new file mode 100644 index 000000000000..ca817e634711 --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listsaas/SyncListSaas.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_ListSaas_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListSaasRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.LocationName; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; + +public class SyncListSaas { + + public static void main(String[] args) throws Exception { + syncListSaas(); + } + + public static void syncListSaas() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + ListSaasRequest request = + ListSaasRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (Saas element : saasDeploymentsClient.listSaas(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_ListSaas_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listsaas/SyncListSaasLocationname.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listsaas/SyncListSaasLocationname.java new file mode 100644 index 000000000000..4d232718c237 --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listsaas/SyncListSaasLocationname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_ListSaas_Locationname_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.LocationName; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; + +public class SyncListSaasLocationname { + + public static void main(String[] args) throws Exception { + syncListSaasLocationname(); + } + + public static void syncListSaasLocationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (Saas element : saasDeploymentsClient.listSaas(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_ListSaas_Locationname_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listsaas/SyncListSaasString.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listsaas/SyncListSaasString.java new file mode 100644 index 000000000000..b24071317564 --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listsaas/SyncListSaasString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_ListSaas_String_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.LocationName; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; + +public class SyncListSaasString { + + public static void main(String[] args) throws Exception { + syncListSaasString(); + } + + public static void syncListSaasString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (Saas element : saasDeploymentsClient.listSaas(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_ListSaas_String_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listtenants/AsyncListTenants.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listtenants/AsyncListTenants.java new file mode 100644 index 000000000000..8d85e6c90716 --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listtenants/AsyncListTenants.java @@ -0,0 +1,56 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_ListTenants_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.LocationName; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant; + +public class AsyncListTenants { + + public static void main(String[] args) throws Exception { + asyncListTenants(); + } + + public static void asyncListTenants() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + ListTenantsRequest request = + ListTenantsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + saasDeploymentsClient.listTenantsPagedCallable().futureCall(request); + // Do something. + for (Tenant element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_ListTenants_async] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listtenants/AsyncListTenantsPaged.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listtenants/AsyncListTenantsPaged.java new file mode 100644 index 000000000000..66b9fc6d5347 --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listtenants/AsyncListTenantsPaged.java @@ -0,0 +1,63 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_ListTenants_Paged_async] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsResponse; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.LocationName; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant; +import com.google.common.base.Strings; + +public class AsyncListTenantsPaged { + + public static void main(String[] args) throws Exception { + asyncListTenantsPaged(); + } + + public static void asyncListTenantsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + ListTenantsRequest request = + ListTenantsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListTenantsResponse response = saasDeploymentsClient.listTenantsCallable().call(request); + for (Tenant element : response.getTenantsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_ListTenants_Paged_async] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listtenants/SyncListTenants.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listtenants/SyncListTenants.java new file mode 100644 index 000000000000..c76ddeb35a9d --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listtenants/SyncListTenants.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_ListTenants_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListTenantsRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.LocationName; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant; + +public class SyncListTenants { + + public static void main(String[] args) throws Exception { + syncListTenants(); + } + + public static void syncListTenants() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + ListTenantsRequest request = + ListTenantsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (Tenant element : saasDeploymentsClient.listTenants(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_ListTenants_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listtenants/SyncListTenantsLocationname.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listtenants/SyncListTenantsLocationname.java new file mode 100644 index 000000000000..e9fc73b12aa4 --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listtenants/SyncListTenantsLocationname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_ListTenants_Locationname_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.LocationName; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant; + +public class SyncListTenantsLocationname { + + public static void main(String[] args) throws Exception { + syncListTenantsLocationname(); + } + + public static void syncListTenantsLocationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (Tenant element : saasDeploymentsClient.listTenants(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_ListTenants_Locationname_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listtenants/SyncListTenantsString.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listtenants/SyncListTenantsString.java new file mode 100644 index 000000000000..5c2d193ff121 --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listtenants/SyncListTenantsString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_ListTenants_String_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.LocationName; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant; + +public class SyncListTenantsString { + + public static void main(String[] args) throws Exception { + syncListTenantsString(); + } + + public static void syncListTenantsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (Tenant element : saasDeploymentsClient.listTenants(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_ListTenants_String_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listunitkinds/AsyncListUnitKinds.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listunitkinds/AsyncListUnitKinds.java new file mode 100644 index 000000000000..efa6e118a694 --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listunitkinds/AsyncListUnitKinds.java @@ -0,0 +1,56 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_ListUnitKinds_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.LocationName; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind; + +public class AsyncListUnitKinds { + + public static void main(String[] args) throws Exception { + asyncListUnitKinds(); + } + + public static void asyncListUnitKinds() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + ListUnitKindsRequest request = + ListUnitKindsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + saasDeploymentsClient.listUnitKindsPagedCallable().futureCall(request); + // Do something. + for (UnitKind element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_ListUnitKinds_async] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listunitkinds/AsyncListUnitKindsPaged.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listunitkinds/AsyncListUnitKindsPaged.java new file mode 100644 index 000000000000..cb242ca7ba2e --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listunitkinds/AsyncListUnitKindsPaged.java @@ -0,0 +1,64 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_ListUnitKinds_Paged_async] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsResponse; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.LocationName; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind; +import com.google.common.base.Strings; + +public class AsyncListUnitKindsPaged { + + public static void main(String[] args) throws Exception { + asyncListUnitKindsPaged(); + } + + public static void asyncListUnitKindsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + ListUnitKindsRequest request = + ListUnitKindsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListUnitKindsResponse response = + saasDeploymentsClient.listUnitKindsCallable().call(request); + for (UnitKind element : response.getUnitKindsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_ListUnitKinds_Paged_async] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listunitkinds/SyncListUnitKinds.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listunitkinds/SyncListUnitKinds.java new file mode 100644 index 000000000000..a4f3f7648830 --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listunitkinds/SyncListUnitKinds.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_ListUnitKinds_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitKindsRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.LocationName; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind; + +public class SyncListUnitKinds { + + public static void main(String[] args) throws Exception { + syncListUnitKinds(); + } + + public static void syncListUnitKinds() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + ListUnitKindsRequest request = + ListUnitKindsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (UnitKind element : saasDeploymentsClient.listUnitKinds(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_ListUnitKinds_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listunitkinds/SyncListUnitKindsLocationname.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listunitkinds/SyncListUnitKindsLocationname.java new file mode 100644 index 000000000000..e86371cea56d --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listunitkinds/SyncListUnitKindsLocationname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_ListUnitKinds_Locationname_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.LocationName; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind; + +public class SyncListUnitKindsLocationname { + + public static void main(String[] args) throws Exception { + syncListUnitKindsLocationname(); + } + + public static void syncListUnitKindsLocationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (UnitKind element : saasDeploymentsClient.listUnitKinds(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_ListUnitKinds_Locationname_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listunitkinds/SyncListUnitKindsString.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listunitkinds/SyncListUnitKindsString.java new file mode 100644 index 000000000000..755e8e797f5d --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listunitkinds/SyncListUnitKindsString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_ListUnitKinds_String_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.LocationName; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind; + +public class SyncListUnitKindsString { + + public static void main(String[] args) throws Exception { + syncListUnitKindsString(); + } + + public static void syncListUnitKindsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (UnitKind element : saasDeploymentsClient.listUnitKinds(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_ListUnitKinds_String_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listunitoperations/AsyncListUnitOperations.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listunitoperations/AsyncListUnitOperations.java new file mode 100644 index 000000000000..6df4959b24c0 --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listunitoperations/AsyncListUnitOperations.java @@ -0,0 +1,56 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_ListUnitOperations_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.LocationName; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation; + +public class AsyncListUnitOperations { + + public static void main(String[] args) throws Exception { + asyncListUnitOperations(); + } + + public static void asyncListUnitOperations() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + ListUnitOperationsRequest request = + ListUnitOperationsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + saasDeploymentsClient.listUnitOperationsPagedCallable().futureCall(request); + // Do something. + for (UnitOperation element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_ListUnitOperations_async] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listunitoperations/AsyncListUnitOperationsPaged.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listunitoperations/AsyncListUnitOperationsPaged.java new file mode 100644 index 000000000000..ccc0510110e9 --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listunitoperations/AsyncListUnitOperationsPaged.java @@ -0,0 +1,64 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_ListUnitOperations_Paged_async] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsResponse; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.LocationName; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation; +import com.google.common.base.Strings; + +public class AsyncListUnitOperationsPaged { + + public static void main(String[] args) throws Exception { + asyncListUnitOperationsPaged(); + } + + public static void asyncListUnitOperationsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + ListUnitOperationsRequest request = + ListUnitOperationsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListUnitOperationsResponse response = + saasDeploymentsClient.listUnitOperationsCallable().call(request); + for (UnitOperation element : response.getUnitOperationsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_ListUnitOperations_Paged_async] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listunitoperations/SyncListUnitOperations.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listunitoperations/SyncListUnitOperations.java new file mode 100644 index 000000000000..4ba0f00717aa --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listunitoperations/SyncListUnitOperations.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_ListUnitOperations_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitOperationsRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.LocationName; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation; + +public class SyncListUnitOperations { + + public static void main(String[] args) throws Exception { + syncListUnitOperations(); + } + + public static void syncListUnitOperations() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + ListUnitOperationsRequest request = + ListUnitOperationsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (UnitOperation element : saasDeploymentsClient.listUnitOperations(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_ListUnitOperations_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listunitoperations/SyncListUnitOperationsLocationname.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listunitoperations/SyncListUnitOperationsLocationname.java new file mode 100644 index 000000000000..4009bbe44dbe --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listunitoperations/SyncListUnitOperationsLocationname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_ListUnitOperations_Locationname_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.LocationName; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation; + +public class SyncListUnitOperationsLocationname { + + public static void main(String[] args) throws Exception { + syncListUnitOperationsLocationname(); + } + + public static void syncListUnitOperationsLocationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (UnitOperation element : saasDeploymentsClient.listUnitOperations(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_ListUnitOperations_Locationname_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listunitoperations/SyncListUnitOperationsString.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listunitoperations/SyncListUnitOperationsString.java new file mode 100644 index 000000000000..8c11e9d48780 --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listunitoperations/SyncListUnitOperationsString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_ListUnitOperations_String_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.LocationName; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation; + +public class SyncListUnitOperationsString { + + public static void main(String[] args) throws Exception { + syncListUnitOperationsString(); + } + + public static void syncListUnitOperationsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (UnitOperation element : saasDeploymentsClient.listUnitOperations(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_ListUnitOperations_String_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listunits/AsyncListUnits.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listunits/AsyncListUnits.java new file mode 100644 index 000000000000..bf5b68fc4706 --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listunits/AsyncListUnits.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_ListUnits_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.LocationName; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit; + +public class AsyncListUnits { + + public static void main(String[] args) throws Exception { + asyncListUnits(); + } + + public static void asyncListUnits() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + ListUnitsRequest request = + ListUnitsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = saasDeploymentsClient.listUnitsPagedCallable().futureCall(request); + // Do something. + for (Unit element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_ListUnits_async] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listunits/AsyncListUnitsPaged.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listunits/AsyncListUnitsPaged.java new file mode 100644 index 000000000000..6eecd795f460 --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listunits/AsyncListUnitsPaged.java @@ -0,0 +1,63 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_ListUnits_Paged_async] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsResponse; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.LocationName; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit; +import com.google.common.base.Strings; + +public class AsyncListUnitsPaged { + + public static void main(String[] args) throws Exception { + asyncListUnitsPaged(); + } + + public static void asyncListUnitsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + ListUnitsRequest request = + ListUnitsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListUnitsResponse response = saasDeploymentsClient.listUnitsCallable().call(request); + for (Unit element : response.getUnitsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_ListUnits_Paged_async] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listunits/SyncListUnits.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listunits/SyncListUnits.java new file mode 100644 index 000000000000..47e52e096465 --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listunits/SyncListUnits.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_ListUnits_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListUnitsRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.LocationName; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit; + +public class SyncListUnits { + + public static void main(String[] args) throws Exception { + syncListUnits(); + } + + public static void syncListUnits() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + ListUnitsRequest request = + ListUnitsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (Unit element : saasDeploymentsClient.listUnits(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_ListUnits_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listunits/SyncListUnitsLocationname.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listunits/SyncListUnitsLocationname.java new file mode 100644 index 000000000000..2397e6092647 --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listunits/SyncListUnitsLocationname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_ListUnits_Locationname_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.LocationName; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit; + +public class SyncListUnitsLocationname { + + public static void main(String[] args) throws Exception { + syncListUnitsLocationname(); + } + + public static void syncListUnitsLocationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (Unit element : saasDeploymentsClient.listUnits(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_ListUnits_Locationname_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listunits/SyncListUnitsString.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listunits/SyncListUnitsString.java new file mode 100644 index 000000000000..cff7522ba966 --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/listunits/SyncListUnitsString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_ListUnits_String_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.LocationName; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit; + +public class SyncListUnitsString { + + public static void main(String[] args) throws Exception { + syncListUnitsString(); + } + + public static void syncListUnitsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (Unit element : saasDeploymentsClient.listUnits(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_ListUnits_String_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/updaterelease/AsyncUpdateRelease.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/updaterelease/AsyncUpdateRelease.java new file mode 100644 index 000000000000..b6224647bbb1 --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/updaterelease/AsyncUpdateRelease.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_UpdateRelease_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateReleaseRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateRelease { + + public static void main(String[] args) throws Exception { + asyncUpdateRelease(); + } + + public static void asyncUpdateRelease() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + UpdateReleaseRequest request = + UpdateReleaseRequest.newBuilder() + .setRelease(Release.newBuilder().build()) + .setValidateOnly(true) + .setRequestId("requestId693933066") + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = saasDeploymentsClient.updateReleaseCallable().futureCall(request); + // Do something. + Release response = future.get(); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_UpdateRelease_async] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/updaterelease/SyncUpdateRelease.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/updaterelease/SyncUpdateRelease.java new file mode 100644 index 000000000000..37d562181d33 --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/updaterelease/SyncUpdateRelease.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_UpdateRelease_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateReleaseRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateRelease { + + public static void main(String[] args) throws Exception { + syncUpdateRelease(); + } + + public static void syncUpdateRelease() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + UpdateReleaseRequest request = + UpdateReleaseRequest.newBuilder() + .setRelease(Release.newBuilder().build()) + .setValidateOnly(true) + .setRequestId("requestId693933066") + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Release response = saasDeploymentsClient.updateRelease(request); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_UpdateRelease_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/updaterelease/SyncUpdateReleaseReleaseFieldmask.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/updaterelease/SyncUpdateReleaseReleaseFieldmask.java new file mode 100644 index 000000000000..eeb5f081f964 --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/updaterelease/SyncUpdateReleaseReleaseFieldmask.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_UpdateRelease_ReleaseFieldmask_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Release; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateReleaseReleaseFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateReleaseReleaseFieldmask(); + } + + public static void syncUpdateReleaseReleaseFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + Release release = Release.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + Release response = saasDeploymentsClient.updateRelease(release, updateMask); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_UpdateRelease_ReleaseFieldmask_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/updatesaas/AsyncUpdateSaas.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/updatesaas/AsyncUpdateSaas.java new file mode 100644 index 000000000000..c738f052085d --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/updatesaas/AsyncUpdateSaas.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_UpdateSaas_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateSaasRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateSaas { + + public static void main(String[] args) throws Exception { + asyncUpdateSaas(); + } + + public static void asyncUpdateSaas() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + UpdateSaasRequest request = + UpdateSaasRequest.newBuilder() + .setSaas(Saas.newBuilder().build()) + .setValidateOnly(true) + .setRequestId("requestId693933066") + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = saasDeploymentsClient.updateSaasCallable().futureCall(request); + // Do something. + Saas response = future.get(); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_UpdateSaas_async] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/updatesaas/SyncUpdateSaas.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/updatesaas/SyncUpdateSaas.java new file mode 100644 index 000000000000..07b05250beba --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/updatesaas/SyncUpdateSaas.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_UpdateSaas_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateSaasRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateSaas { + + public static void main(String[] args) throws Exception { + syncUpdateSaas(); + } + + public static void syncUpdateSaas() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + UpdateSaasRequest request = + UpdateSaasRequest.newBuilder() + .setSaas(Saas.newBuilder().build()) + .setValidateOnly(true) + .setRequestId("requestId693933066") + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Saas response = saasDeploymentsClient.updateSaas(request); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_UpdateSaas_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/updatesaas/SyncUpdateSaasSaasFieldmask.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/updatesaas/SyncUpdateSaasSaasFieldmask.java new file mode 100644 index 000000000000..67e52e322c1b --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/updatesaas/SyncUpdateSaasSaasFieldmask.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_UpdateSaas_SaasFieldmask_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Saas; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateSaasSaasFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateSaasSaasFieldmask(); + } + + public static void syncUpdateSaasSaasFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + Saas saas = Saas.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + Saas response = saasDeploymentsClient.updateSaas(saas, updateMask); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_UpdateSaas_SaasFieldmask_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/updatetenant/AsyncUpdateTenant.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/updatetenant/AsyncUpdateTenant.java new file mode 100644 index 000000000000..36389566f615 --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/updatetenant/AsyncUpdateTenant.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_UpdateTenant_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateTenantRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateTenant { + + public static void main(String[] args) throws Exception { + asyncUpdateTenant(); + } + + public static void asyncUpdateTenant() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + UpdateTenantRequest request = + UpdateTenantRequest.newBuilder() + .setTenant(Tenant.newBuilder().build()) + .setValidateOnly(true) + .setRequestId("requestId693933066") + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = saasDeploymentsClient.updateTenantCallable().futureCall(request); + // Do something. + Tenant response = future.get(); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_UpdateTenant_async] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/updatetenant/SyncUpdateTenant.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/updatetenant/SyncUpdateTenant.java new file mode 100644 index 000000000000..a63dc2de444f --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/updatetenant/SyncUpdateTenant.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_UpdateTenant_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateTenantRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateTenant { + + public static void main(String[] args) throws Exception { + syncUpdateTenant(); + } + + public static void syncUpdateTenant() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + UpdateTenantRequest request = + UpdateTenantRequest.newBuilder() + .setTenant(Tenant.newBuilder().build()) + .setValidateOnly(true) + .setRequestId("requestId693933066") + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Tenant response = saasDeploymentsClient.updateTenant(request); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_UpdateTenant_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/updatetenant/SyncUpdateTenantTenantFieldmask.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/updatetenant/SyncUpdateTenantTenantFieldmask.java new file mode 100644 index 000000000000..fe33f35cf595 --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/updatetenant/SyncUpdateTenantTenantFieldmask.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_UpdateTenant_TenantFieldmask_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Tenant; +import com.google.protobuf.FieldMask; + +public class SyncUpdateTenantTenantFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateTenantTenantFieldmask(); + } + + public static void syncUpdateTenantTenantFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + Tenant tenant = Tenant.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + Tenant response = saasDeploymentsClient.updateTenant(tenant, updateMask); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_UpdateTenant_TenantFieldmask_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/updateunit/AsyncUpdateUnit.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/updateunit/AsyncUpdateUnit.java new file mode 100644 index 000000000000..cef20360b3c2 --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/updateunit/AsyncUpdateUnit.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_UpdateUnit_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateUnit { + + public static void main(String[] args) throws Exception { + asyncUpdateUnit(); + } + + public static void asyncUpdateUnit() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + UpdateUnitRequest request = + UpdateUnitRequest.newBuilder() + .setUnit(Unit.newBuilder().build()) + .setValidateOnly(true) + .setRequestId("requestId693933066") + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = saasDeploymentsClient.updateUnitCallable().futureCall(request); + // Do something. + Unit response = future.get(); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_UpdateUnit_async] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/updateunit/SyncUpdateUnit.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/updateunit/SyncUpdateUnit.java new file mode 100644 index 000000000000..695935938fd4 --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/updateunit/SyncUpdateUnit.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_UpdateUnit_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateUnit { + + public static void main(String[] args) throws Exception { + syncUpdateUnit(); + } + + public static void syncUpdateUnit() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + UpdateUnitRequest request = + UpdateUnitRequest.newBuilder() + .setUnit(Unit.newBuilder().build()) + .setValidateOnly(true) + .setRequestId("requestId693933066") + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Unit response = saasDeploymentsClient.updateUnit(request); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_UpdateUnit_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/updateunit/SyncUpdateUnitUnitFieldmask.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/updateunit/SyncUpdateUnitUnitFieldmask.java new file mode 100644 index 000000000000..223b338f601f --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/updateunit/SyncUpdateUnitUnitFieldmask.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_UpdateUnit_UnitFieldmask_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Unit; +import com.google.protobuf.FieldMask; + +public class SyncUpdateUnitUnitFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateUnitUnitFieldmask(); + } + + public static void syncUpdateUnitUnitFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + Unit unit = Unit.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + Unit response = saasDeploymentsClient.updateUnit(unit, updateMask); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_UpdateUnit_UnitFieldmask_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/updateunitkind/AsyncUpdateUnitKind.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/updateunitkind/AsyncUpdateUnitKind.java new file mode 100644 index 000000000000..b4ff8ab481e6 --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/updateunitkind/AsyncUpdateUnitKind.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_UpdateUnitKind_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitKindRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateUnitKind { + + public static void main(String[] args) throws Exception { + asyncUpdateUnitKind(); + } + + public static void asyncUpdateUnitKind() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + UpdateUnitKindRequest request = + UpdateUnitKindRequest.newBuilder() + .setUnitKind(UnitKind.newBuilder().build()) + .setValidateOnly(true) + .setRequestId("requestId693933066") + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + saasDeploymentsClient.updateUnitKindCallable().futureCall(request); + // Do something. + UnitKind response = future.get(); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_UpdateUnitKind_async] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/updateunitkind/SyncUpdateUnitKind.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/updateunitkind/SyncUpdateUnitKind.java new file mode 100644 index 000000000000..35553121dc3b --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/updateunitkind/SyncUpdateUnitKind.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_UpdateUnitKind_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitKindRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateUnitKind { + + public static void main(String[] args) throws Exception { + syncUpdateUnitKind(); + } + + public static void syncUpdateUnitKind() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + UpdateUnitKindRequest request = + UpdateUnitKindRequest.newBuilder() + .setUnitKind(UnitKind.newBuilder().build()) + .setValidateOnly(true) + .setRequestId("requestId693933066") + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + UnitKind response = saasDeploymentsClient.updateUnitKind(request); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_UpdateUnitKind_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/updateunitkind/SyncUpdateUnitKindUnitkindFieldmask.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/updateunitkind/SyncUpdateUnitKindUnitkindFieldmask.java new file mode 100644 index 000000000000..eab915d7128d --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/updateunitkind/SyncUpdateUnitKindUnitkindFieldmask.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_UpdateUnitKind_UnitkindFieldmask_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitKind; +import com.google.protobuf.FieldMask; + +public class SyncUpdateUnitKindUnitkindFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateUnitKindUnitkindFieldmask(); + } + + public static void syncUpdateUnitKindUnitkindFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + UnitKind unitKind = UnitKind.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + UnitKind response = saasDeploymentsClient.updateUnitKind(unitKind, updateMask); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_UpdateUnitKind_UnitkindFieldmask_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/updateunitoperation/AsyncUpdateUnitOperation.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/updateunitoperation/AsyncUpdateUnitOperation.java new file mode 100644 index 000000000000..cd2de0ef3ea2 --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/updateunitoperation/AsyncUpdateUnitOperation.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_UpdateUnitOperation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitOperationRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateUnitOperation { + + public static void main(String[] args) throws Exception { + asyncUpdateUnitOperation(); + } + + public static void asyncUpdateUnitOperation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + UpdateUnitOperationRequest request = + UpdateUnitOperationRequest.newBuilder() + .setUnitOperation(UnitOperation.newBuilder().build()) + .setValidateOnly(true) + .setRequestId("requestId693933066") + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + saasDeploymentsClient.updateUnitOperationCallable().futureCall(request); + // Do something. + UnitOperation response = future.get(); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_UpdateUnitOperation_async] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/updateunitoperation/SyncUpdateUnitOperation.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/updateunitoperation/SyncUpdateUnitOperation.java new file mode 100644 index 000000000000..b687749b0504 --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/updateunitoperation/SyncUpdateUnitOperation.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_UpdateUnitOperation_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateUnitOperationRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateUnitOperation { + + public static void main(String[] args) throws Exception { + syncUpdateUnitOperation(); + } + + public static void syncUpdateUnitOperation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + UpdateUnitOperationRequest request = + UpdateUnitOperationRequest.newBuilder() + .setUnitOperation(UnitOperation.newBuilder().build()) + .setValidateOnly(true) + .setRequestId("requestId693933066") + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + UnitOperation response = saasDeploymentsClient.updateUnitOperation(request); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_UpdateUnitOperation_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/updateunitoperation/SyncUpdateUnitOperationUnitoperationFieldmask.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/updateunitoperation/SyncUpdateUnitOperationUnitoperationFieldmask.java new file mode 100644 index 000000000000..2f0f3a259beb --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeployments/updateunitoperation/SyncUpdateUnitOperationUnitoperationFieldmask.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeployments_UpdateUnitOperation_UnitoperationFieldmask_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UnitOperation; +import com.google.protobuf.FieldMask; + +public class SyncUpdateUnitOperationUnitoperationFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateUnitOperationUnitoperationFieldmask(); + } + + public static void syncUpdateUnitOperationUnitoperationFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) { + UnitOperation unitOperation = UnitOperation.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + UnitOperation response = saasDeploymentsClient.updateUnitOperation(unitOperation, updateMask); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeployments_UpdateUnitOperation_UnitoperationFieldmask_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeploymentssettings/getsaas/SyncGetSaas.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeploymentssettings/getsaas/SyncGetSaas.java new file mode 100644 index 000000000000..ce11876e71b9 --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasdeploymentssettings/getsaas/SyncGetSaas.java @@ -0,0 +1,56 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeploymentsSettings_GetSaas_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasDeploymentsSettings; +import java.time.Duration; + +public class SyncGetSaas { + + public static void main(String[] args) throws Exception { + syncGetSaas(); + } + + public static void syncGetSaas() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + SaasDeploymentsSettings.Builder saasDeploymentsSettingsBuilder = + SaasDeploymentsSettings.newBuilder(); + saasDeploymentsSettingsBuilder + .getSaasSettings() + .setRetrySettings( + saasDeploymentsSettingsBuilder + .getSaasSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + SaasDeploymentsSettings saasDeploymentsSettings = saasDeploymentsSettingsBuilder.build(); + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeploymentsSettings_GetSaas_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/create/SyncCreateSetCredentialsProvider.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..4e6011af56c1 --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasRollouts_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsSettings; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + SaasRolloutsSettings saasRolloutsSettings = + SaasRolloutsSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create(saasRolloutsSettings); + } +} +// [END saasservicemgmt_v1beta1_generated_SaasRollouts_Create_SetCredentialsProvider_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/create/SyncCreateSetEndpoint.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..4adad53ccfdb --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/create/SyncCreateSetEndpoint.java @@ -0,0 +1,41 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasRollouts_Create_SetEndpoint_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsSettings; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + SaasRolloutsSettings saasRolloutsSettings = + SaasRolloutsSettings.newBuilder().setEndpoint(myEndpoint).build(); + SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create(saasRolloutsSettings); + } +} +// [END saasservicemgmt_v1beta1_generated_SaasRollouts_Create_SetEndpoint_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/create/SyncCreateUseHttpJsonTransport.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..022a18169fb9 --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,39 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasRollouts_Create_UseHttpJsonTransport_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + SaasRolloutsSettings saasRolloutsSettings = SaasRolloutsSettings.newHttpJsonBuilder().build(); + SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create(saasRolloutsSettings); + } +} +// [END saasservicemgmt_v1beta1_generated_SaasRollouts_Create_UseHttpJsonTransport_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/createrollout/AsyncCreateRollout.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/createrollout/AsyncCreateRollout.java new file mode 100644 index 000000000000..690615ac6804 --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/createrollout/AsyncCreateRollout.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasRollouts_CreateRollout_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.LocationName; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsClient; + +public class AsyncCreateRollout { + + public static void main(String[] args) throws Exception { + asyncCreateRollout(); + } + + public static void asyncCreateRollout() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create()) { + CreateRolloutRequest request = + CreateRolloutRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setRolloutId("rolloutId551248556") + .setRollout(Rollout.newBuilder().build()) + .setValidateOnly(true) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = saasRolloutsClient.createRolloutCallable().futureCall(request); + // Do something. + Rollout response = future.get(); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasRollouts_CreateRollout_async] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/createrollout/SyncCreateRollout.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/createrollout/SyncCreateRollout.java new file mode 100644 index 000000000000..13fdacdde39a --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/createrollout/SyncCreateRollout.java @@ -0,0 +1,50 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasRollouts_CreateRollout_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.LocationName; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsClient; + +public class SyncCreateRollout { + + public static void main(String[] args) throws Exception { + syncCreateRollout(); + } + + public static void syncCreateRollout() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create()) { + CreateRolloutRequest request = + CreateRolloutRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setRolloutId("rolloutId551248556") + .setRollout(Rollout.newBuilder().build()) + .setValidateOnly(true) + .setRequestId("requestId693933066") + .build(); + Rollout response = saasRolloutsClient.createRollout(request); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasRollouts_CreateRollout_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/createrollout/SyncCreateRolloutLocationnameRolloutString.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/createrollout/SyncCreateRolloutLocationnameRolloutString.java new file mode 100644 index 000000000000..0f7a0ded0297 --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/createrollout/SyncCreateRolloutLocationnameRolloutString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasRollouts_CreateRollout_LocationnameRolloutString_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.LocationName; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsClient; + +public class SyncCreateRolloutLocationnameRolloutString { + + public static void main(String[] args) throws Exception { + syncCreateRolloutLocationnameRolloutString(); + } + + public static void syncCreateRolloutLocationnameRolloutString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Rollout rollout = Rollout.newBuilder().build(); + String rolloutId = "rolloutId551248556"; + Rollout response = saasRolloutsClient.createRollout(parent, rollout, rolloutId); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasRollouts_CreateRollout_LocationnameRolloutString_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/createrollout/SyncCreateRolloutStringRolloutString.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/createrollout/SyncCreateRolloutStringRolloutString.java new file mode 100644 index 000000000000..3709356a6c7b --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/createrollout/SyncCreateRolloutStringRolloutString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasRollouts_CreateRollout_StringRolloutString_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.LocationName; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsClient; + +public class SyncCreateRolloutStringRolloutString { + + public static void main(String[] args) throws Exception { + syncCreateRolloutStringRolloutString(); + } + + public static void syncCreateRolloutStringRolloutString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + Rollout rollout = Rollout.newBuilder().build(); + String rolloutId = "rolloutId551248556"; + Rollout response = saasRolloutsClient.createRollout(parent, rollout, rolloutId); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasRollouts_CreateRollout_StringRolloutString_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/createrolloutkind/AsyncCreateRolloutKind.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/createrolloutkind/AsyncCreateRolloutKind.java new file mode 100644 index 000000000000..2c8013a39979 --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/createrolloutkind/AsyncCreateRolloutKind.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasRollouts_CreateRolloutKind_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutKindRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.LocationName; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsClient; + +public class AsyncCreateRolloutKind { + + public static void main(String[] args) throws Exception { + asyncCreateRolloutKind(); + } + + public static void asyncCreateRolloutKind() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create()) { + CreateRolloutKindRequest request = + CreateRolloutKindRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setRolloutKindId("rolloutKindId-1380592416") + .setRolloutKind(RolloutKind.newBuilder().build()) + .setValidateOnly(true) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + saasRolloutsClient.createRolloutKindCallable().futureCall(request); + // Do something. + RolloutKind response = future.get(); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasRollouts_CreateRolloutKind_async] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/createrolloutkind/SyncCreateRolloutKind.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/createrolloutkind/SyncCreateRolloutKind.java new file mode 100644 index 000000000000..1554c9135b51 --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/createrolloutkind/SyncCreateRolloutKind.java @@ -0,0 +1,50 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasRollouts_CreateRolloutKind_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.CreateRolloutKindRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.LocationName; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsClient; + +public class SyncCreateRolloutKind { + + public static void main(String[] args) throws Exception { + syncCreateRolloutKind(); + } + + public static void syncCreateRolloutKind() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create()) { + CreateRolloutKindRequest request = + CreateRolloutKindRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setRolloutKindId("rolloutKindId-1380592416") + .setRolloutKind(RolloutKind.newBuilder().build()) + .setValidateOnly(true) + .setRequestId("requestId693933066") + .build(); + RolloutKind response = saasRolloutsClient.createRolloutKind(request); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasRollouts_CreateRolloutKind_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/createrolloutkind/SyncCreateRolloutKindLocationnameRolloutkindString.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/createrolloutkind/SyncCreateRolloutKindLocationnameRolloutkindString.java new file mode 100644 index 000000000000..a4317b5cdd55 --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/createrolloutkind/SyncCreateRolloutKindLocationnameRolloutkindString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasRollouts_CreateRolloutKind_LocationnameRolloutkindString_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.LocationName; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsClient; + +public class SyncCreateRolloutKindLocationnameRolloutkindString { + + public static void main(String[] args) throws Exception { + syncCreateRolloutKindLocationnameRolloutkindString(); + } + + public static void syncCreateRolloutKindLocationnameRolloutkindString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + RolloutKind rolloutKind = RolloutKind.newBuilder().build(); + String rolloutKindId = "rolloutKindId-1380592416"; + RolloutKind response = + saasRolloutsClient.createRolloutKind(parent, rolloutKind, rolloutKindId); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasRollouts_CreateRolloutKind_LocationnameRolloutkindString_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/createrolloutkind/SyncCreateRolloutKindStringRolloutkindString.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/createrolloutkind/SyncCreateRolloutKindStringRolloutkindString.java new file mode 100644 index 000000000000..82907cf58a24 --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/createrolloutkind/SyncCreateRolloutKindStringRolloutkindString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasRollouts_CreateRolloutKind_StringRolloutkindString_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.LocationName; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsClient; + +public class SyncCreateRolloutKindStringRolloutkindString { + + public static void main(String[] args) throws Exception { + syncCreateRolloutKindStringRolloutkindString(); + } + + public static void syncCreateRolloutKindStringRolloutkindString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + RolloutKind rolloutKind = RolloutKind.newBuilder().build(); + String rolloutKindId = "rolloutKindId-1380592416"; + RolloutKind response = + saasRolloutsClient.createRolloutKind(parent, rolloutKind, rolloutKindId); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasRollouts_CreateRolloutKind_StringRolloutkindString_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/deleterollout/AsyncDeleteRollout.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/deleterollout/AsyncDeleteRollout.java new file mode 100644 index 000000000000..983f0259197e --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/deleterollout/AsyncDeleteRollout.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasRollouts_DeleteRollout_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutName; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsClient; +import com.google.protobuf.Empty; + +public class AsyncDeleteRollout { + + public static void main(String[] args) throws Exception { + asyncDeleteRollout(); + } + + public static void asyncDeleteRollout() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create()) { + DeleteRolloutRequest request = + DeleteRolloutRequest.newBuilder() + .setName(RolloutName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_ID]").toString()) + .setEtag("etag3123477") + .setValidateOnly(true) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = saasRolloutsClient.deleteRolloutCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasRollouts_DeleteRollout_async] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/deleterollout/SyncDeleteRollout.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/deleterollout/SyncDeleteRollout.java new file mode 100644 index 000000000000..1d1fdf622c9b --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/deleterollout/SyncDeleteRollout.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasRollouts_DeleteRollout_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutName; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsClient; +import com.google.protobuf.Empty; + +public class SyncDeleteRollout { + + public static void main(String[] args) throws Exception { + syncDeleteRollout(); + } + + public static void syncDeleteRollout() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create()) { + DeleteRolloutRequest request = + DeleteRolloutRequest.newBuilder() + .setName(RolloutName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_ID]").toString()) + .setEtag("etag3123477") + .setValidateOnly(true) + .setRequestId("requestId693933066") + .build(); + saasRolloutsClient.deleteRollout(request); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasRollouts_DeleteRollout_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/deleterollout/SyncDeleteRolloutRolloutname.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/deleterollout/SyncDeleteRolloutRolloutname.java new file mode 100644 index 000000000000..338c27a6836e --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/deleterollout/SyncDeleteRolloutRolloutname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasRollouts_DeleteRollout_Rolloutname_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutName; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsClient; +import com.google.protobuf.Empty; + +public class SyncDeleteRolloutRolloutname { + + public static void main(String[] args) throws Exception { + syncDeleteRolloutRolloutname(); + } + + public static void syncDeleteRolloutRolloutname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create()) { + RolloutName name = RolloutName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_ID]"); + saasRolloutsClient.deleteRollout(name); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasRollouts_DeleteRollout_Rolloutname_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/deleterollout/SyncDeleteRolloutString.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/deleterollout/SyncDeleteRolloutString.java new file mode 100644 index 000000000000..ae7e698ef494 --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/deleterollout/SyncDeleteRolloutString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasRollouts_DeleteRollout_String_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutName; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsClient; +import com.google.protobuf.Empty; + +public class SyncDeleteRolloutString { + + public static void main(String[] args) throws Exception { + syncDeleteRolloutString(); + } + + public static void syncDeleteRolloutString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create()) { + String name = RolloutName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_ID]").toString(); + saasRolloutsClient.deleteRollout(name); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasRollouts_DeleteRollout_String_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/deleterolloutkind/AsyncDeleteRolloutKind.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/deleterolloutkind/AsyncDeleteRolloutKind.java new file mode 100644 index 000000000000..5bcdf507cc98 --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/deleterolloutkind/AsyncDeleteRolloutKind.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasRollouts_DeleteRolloutKind_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutKindRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKindName; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsClient; +import com.google.protobuf.Empty; + +public class AsyncDeleteRolloutKind { + + public static void main(String[] args) throws Exception { + asyncDeleteRolloutKind(); + } + + public static void asyncDeleteRolloutKind() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create()) { + DeleteRolloutKindRequest request = + DeleteRolloutKindRequest.newBuilder() + .setName( + RolloutKindName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_KIND_ID]").toString()) + .setEtag("etag3123477") + .setValidateOnly(true) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = saasRolloutsClient.deleteRolloutKindCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasRollouts_DeleteRolloutKind_async] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/deleterolloutkind/SyncDeleteRolloutKind.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/deleterolloutkind/SyncDeleteRolloutKind.java new file mode 100644 index 000000000000..f502ec95e95f --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/deleterolloutkind/SyncDeleteRolloutKind.java @@ -0,0 +1,50 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasRollouts_DeleteRolloutKind_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.DeleteRolloutKindRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKindName; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsClient; +import com.google.protobuf.Empty; + +public class SyncDeleteRolloutKind { + + public static void main(String[] args) throws Exception { + syncDeleteRolloutKind(); + } + + public static void syncDeleteRolloutKind() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create()) { + DeleteRolloutKindRequest request = + DeleteRolloutKindRequest.newBuilder() + .setName( + RolloutKindName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_KIND_ID]").toString()) + .setEtag("etag3123477") + .setValidateOnly(true) + .setRequestId("requestId693933066") + .build(); + saasRolloutsClient.deleteRolloutKind(request); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasRollouts_DeleteRolloutKind_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/deleterolloutkind/SyncDeleteRolloutKindRolloutkindname.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/deleterolloutkind/SyncDeleteRolloutKindRolloutkindname.java new file mode 100644 index 000000000000..87ba2dbd17fb --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/deleterolloutkind/SyncDeleteRolloutKindRolloutkindname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasRollouts_DeleteRolloutKind_Rolloutkindname_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKindName; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsClient; +import com.google.protobuf.Empty; + +public class SyncDeleteRolloutKindRolloutkindname { + + public static void main(String[] args) throws Exception { + syncDeleteRolloutKindRolloutkindname(); + } + + public static void syncDeleteRolloutKindRolloutkindname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create()) { + RolloutKindName name = RolloutKindName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_KIND_ID]"); + saasRolloutsClient.deleteRolloutKind(name); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasRollouts_DeleteRolloutKind_Rolloutkindname_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/deleterolloutkind/SyncDeleteRolloutKindString.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/deleterolloutkind/SyncDeleteRolloutKindString.java new file mode 100644 index 000000000000..ca5c74aabae0 --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/deleterolloutkind/SyncDeleteRolloutKindString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasRollouts_DeleteRolloutKind_String_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKindName; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsClient; +import com.google.protobuf.Empty; + +public class SyncDeleteRolloutKindString { + + public static void main(String[] args) throws Exception { + syncDeleteRolloutKindString(); + } + + public static void syncDeleteRolloutKindString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create()) { + String name = RolloutKindName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_KIND_ID]").toString(); + saasRolloutsClient.deleteRolloutKind(name); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasRollouts_DeleteRolloutKind_String_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/getlocation/AsyncGetLocation.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/getlocation/AsyncGetLocation.java new file mode 100644 index 000000000000..bf710b0c2bf8 --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/getlocation/AsyncGetLocation.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasRollouts_GetLocation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsClient; + +public class AsyncGetLocation { + + public static void main(String[] args) throws Exception { + asyncGetLocation(); + } + + public static void asyncGetLocation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + ApiFuture future = saasRolloutsClient.getLocationCallable().futureCall(request); + // Do something. + Location response = future.get(); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasRollouts_GetLocation_async] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/getlocation/SyncGetLocation.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/getlocation/SyncGetLocation.java new file mode 100644 index 000000000000..53044dfffacc --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/getlocation/SyncGetLocation.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasRollouts_GetLocation_sync] +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsClient; + +public class SyncGetLocation { + + public static void main(String[] args) throws Exception { + syncGetLocation(); + } + + public static void syncGetLocation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + Location response = saasRolloutsClient.getLocation(request); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasRollouts_GetLocation_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/getrollout/AsyncGetRollout.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/getrollout/AsyncGetRollout.java new file mode 100644 index 000000000000..5ff4bc33b96a --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/getrollout/AsyncGetRollout.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasRollouts_GetRollout_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutName; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsClient; + +public class AsyncGetRollout { + + public static void main(String[] args) throws Exception { + asyncGetRollout(); + } + + public static void asyncGetRollout() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create()) { + GetRolloutRequest request = + GetRolloutRequest.newBuilder() + .setName(RolloutName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_ID]").toString()) + .build(); + ApiFuture future = saasRolloutsClient.getRolloutCallable().futureCall(request); + // Do something. + Rollout response = future.get(); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasRollouts_GetRollout_async] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/getrollout/SyncGetRollout.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/getrollout/SyncGetRollout.java new file mode 100644 index 000000000000..27601daa5d7e --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/getrollout/SyncGetRollout.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasRollouts_GetRollout_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutName; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsClient; + +public class SyncGetRollout { + + public static void main(String[] args) throws Exception { + syncGetRollout(); + } + + public static void syncGetRollout() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create()) { + GetRolloutRequest request = + GetRolloutRequest.newBuilder() + .setName(RolloutName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_ID]").toString()) + .build(); + Rollout response = saasRolloutsClient.getRollout(request); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasRollouts_GetRollout_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/getrollout/SyncGetRolloutRolloutname.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/getrollout/SyncGetRolloutRolloutname.java new file mode 100644 index 000000000000..5013319b22bc --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/getrollout/SyncGetRolloutRolloutname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasRollouts_GetRollout_Rolloutname_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutName; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsClient; + +public class SyncGetRolloutRolloutname { + + public static void main(String[] args) throws Exception { + syncGetRolloutRolloutname(); + } + + public static void syncGetRolloutRolloutname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create()) { + RolloutName name = RolloutName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_ID]"); + Rollout response = saasRolloutsClient.getRollout(name); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasRollouts_GetRollout_Rolloutname_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/getrollout/SyncGetRolloutString.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/getrollout/SyncGetRolloutString.java new file mode 100644 index 000000000000..d23e45a0d3fb --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/getrollout/SyncGetRolloutString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasRollouts_GetRollout_String_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutName; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsClient; + +public class SyncGetRolloutString { + + public static void main(String[] args) throws Exception { + syncGetRolloutString(); + } + + public static void syncGetRolloutString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create()) { + String name = RolloutName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_ID]").toString(); + Rollout response = saasRolloutsClient.getRollout(name); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasRollouts_GetRollout_String_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/getrolloutkind/AsyncGetRolloutKind.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/getrolloutkind/AsyncGetRolloutKind.java new file mode 100644 index 000000000000..2c4d0fc9464f --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/getrolloutkind/AsyncGetRolloutKind.java @@ -0,0 +1,51 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasRollouts_GetRolloutKind_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutKindRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKindName; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsClient; + +public class AsyncGetRolloutKind { + + public static void main(String[] args) throws Exception { + asyncGetRolloutKind(); + } + + public static void asyncGetRolloutKind() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create()) { + GetRolloutKindRequest request = + GetRolloutKindRequest.newBuilder() + .setName( + RolloutKindName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_KIND_ID]").toString()) + .build(); + ApiFuture future = + saasRolloutsClient.getRolloutKindCallable().futureCall(request); + // Do something. + RolloutKind response = future.get(); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasRollouts_GetRolloutKind_async] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/getrolloutkind/SyncGetRolloutKind.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/getrolloutkind/SyncGetRolloutKind.java new file mode 100644 index 000000000000..7f69ed5be3ef --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/getrolloutkind/SyncGetRolloutKind.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasRollouts_GetRolloutKind_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.GetRolloutKindRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKindName; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsClient; + +public class SyncGetRolloutKind { + + public static void main(String[] args) throws Exception { + syncGetRolloutKind(); + } + + public static void syncGetRolloutKind() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create()) { + GetRolloutKindRequest request = + GetRolloutKindRequest.newBuilder() + .setName( + RolloutKindName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_KIND_ID]").toString()) + .build(); + RolloutKind response = saasRolloutsClient.getRolloutKind(request); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasRollouts_GetRolloutKind_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/getrolloutkind/SyncGetRolloutKindRolloutkindname.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/getrolloutkind/SyncGetRolloutKindRolloutkindname.java new file mode 100644 index 000000000000..ae08cd7e6a28 --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/getrolloutkind/SyncGetRolloutKindRolloutkindname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasRollouts_GetRolloutKind_Rolloutkindname_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKindName; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsClient; + +public class SyncGetRolloutKindRolloutkindname { + + public static void main(String[] args) throws Exception { + syncGetRolloutKindRolloutkindname(); + } + + public static void syncGetRolloutKindRolloutkindname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create()) { + RolloutKindName name = RolloutKindName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_KIND_ID]"); + RolloutKind response = saasRolloutsClient.getRolloutKind(name); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasRollouts_GetRolloutKind_Rolloutkindname_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/getrolloutkind/SyncGetRolloutKindString.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/getrolloutkind/SyncGetRolloutKindString.java new file mode 100644 index 000000000000..516f5a0f880c --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/getrolloutkind/SyncGetRolloutKindString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasRollouts_GetRolloutKind_String_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKindName; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsClient; + +public class SyncGetRolloutKindString { + + public static void main(String[] args) throws Exception { + syncGetRolloutKindString(); + } + + public static void syncGetRolloutKindString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create()) { + String name = RolloutKindName.of("[PROJECT]", "[LOCATION]", "[ROLLOUT_KIND_ID]").toString(); + RolloutKind response = saasRolloutsClient.getRolloutKind(name); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasRollouts_GetRolloutKind_String_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/listlocations/AsyncListLocations.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/listlocations/AsyncListLocations.java new file mode 100644 index 000000000000..66330bc6f5ed --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/listlocations/AsyncListLocations.java @@ -0,0 +1,54 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasRollouts_ListLocations_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsClient; + +public class AsyncListLocations { + + public static void main(String[] args) throws Exception { + asyncListLocations(); + } + + public static void asyncListLocations() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + saasRolloutsClient.listLocationsPagedCallable().futureCall(request); + // Do something. + for (Location element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasRollouts_ListLocations_async] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/listlocations/AsyncListLocationsPaged.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/listlocations/AsyncListLocationsPaged.java new file mode 100644 index 000000000000..0582832010b7 --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/listlocations/AsyncListLocationsPaged.java @@ -0,0 +1,61 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasRollouts_ListLocations_Paged_async] +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsClient; +import com.google.common.base.Strings; + +public class AsyncListLocationsPaged { + + public static void main(String[] args) throws Exception { + asyncListLocationsPaged(); + } + + public static void asyncListLocationsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListLocationsResponse response = saasRolloutsClient.listLocationsCallable().call(request); + for (Location element : response.getLocationsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasRollouts_ListLocations_Paged_async] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/listlocations/SyncListLocations.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/listlocations/SyncListLocations.java new file mode 100644 index 000000000000..d8aad38c7e95 --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/listlocations/SyncListLocations.java @@ -0,0 +1,50 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasRollouts_ListLocations_sync] +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsClient; + +public class SyncListLocations { + + public static void main(String[] args) throws Exception { + syncListLocations(); + } + + public static void syncListLocations() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Location element : saasRolloutsClient.listLocations(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasRollouts_ListLocations_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/listrolloutkinds/AsyncListRolloutKinds.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/listrolloutkinds/AsyncListRolloutKinds.java new file mode 100644 index 000000000000..dd24c78a3204 --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/listrolloutkinds/AsyncListRolloutKinds.java @@ -0,0 +1,56 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasRollouts_ListRolloutKinds_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.LocationName; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsClient; + +public class AsyncListRolloutKinds { + + public static void main(String[] args) throws Exception { + asyncListRolloutKinds(); + } + + public static void asyncListRolloutKinds() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create()) { + ListRolloutKindsRequest request = + ListRolloutKindsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + saasRolloutsClient.listRolloutKindsPagedCallable().futureCall(request); + // Do something. + for (RolloutKind element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasRollouts_ListRolloutKinds_async] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/listrolloutkinds/AsyncListRolloutKindsPaged.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/listrolloutkinds/AsyncListRolloutKindsPaged.java new file mode 100644 index 000000000000..613956c309bb --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/listrolloutkinds/AsyncListRolloutKindsPaged.java @@ -0,0 +1,64 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasRollouts_ListRolloutKinds_Paged_async] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsResponse; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.LocationName; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsClient; +import com.google.common.base.Strings; + +public class AsyncListRolloutKindsPaged { + + public static void main(String[] args) throws Exception { + asyncListRolloutKindsPaged(); + } + + public static void asyncListRolloutKindsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create()) { + ListRolloutKindsRequest request = + ListRolloutKindsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListRolloutKindsResponse response = + saasRolloutsClient.listRolloutKindsCallable().call(request); + for (RolloutKind element : response.getRolloutKindsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasRollouts_ListRolloutKinds_Paged_async] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/listrolloutkinds/SyncListRolloutKinds.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/listrolloutkinds/SyncListRolloutKinds.java new file mode 100644 index 000000000000..60494cff21bb --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/listrolloutkinds/SyncListRolloutKinds.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasRollouts_ListRolloutKinds_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutKindsRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.LocationName; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsClient; + +public class SyncListRolloutKinds { + + public static void main(String[] args) throws Exception { + syncListRolloutKinds(); + } + + public static void syncListRolloutKinds() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create()) { + ListRolloutKindsRequest request = + ListRolloutKindsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (RolloutKind element : saasRolloutsClient.listRolloutKinds(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasRollouts_ListRolloutKinds_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/listrolloutkinds/SyncListRolloutKindsLocationname.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/listrolloutkinds/SyncListRolloutKindsLocationname.java new file mode 100644 index 000000000000..0b74f27dabc2 --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/listrolloutkinds/SyncListRolloutKindsLocationname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasRollouts_ListRolloutKinds_Locationname_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.LocationName; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsClient; + +public class SyncListRolloutKindsLocationname { + + public static void main(String[] args) throws Exception { + syncListRolloutKindsLocationname(); + } + + public static void syncListRolloutKindsLocationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (RolloutKind element : saasRolloutsClient.listRolloutKinds(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasRollouts_ListRolloutKinds_Locationname_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/listrolloutkinds/SyncListRolloutKindsString.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/listrolloutkinds/SyncListRolloutKindsString.java new file mode 100644 index 000000000000..d23a60a5c9e5 --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/listrolloutkinds/SyncListRolloutKindsString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasRollouts_ListRolloutKinds_String_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.LocationName; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsClient; + +public class SyncListRolloutKindsString { + + public static void main(String[] args) throws Exception { + syncListRolloutKindsString(); + } + + public static void syncListRolloutKindsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (RolloutKind element : saasRolloutsClient.listRolloutKinds(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasRollouts_ListRolloutKinds_String_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/listrollouts/AsyncListRollouts.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/listrollouts/AsyncListRollouts.java new file mode 100644 index 000000000000..ccb61b42dc50 --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/listrollouts/AsyncListRollouts.java @@ -0,0 +1,56 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasRollouts_ListRollouts_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.LocationName; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsClient; + +public class AsyncListRollouts { + + public static void main(String[] args) throws Exception { + asyncListRollouts(); + } + + public static void asyncListRollouts() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create()) { + ListRolloutsRequest request = + ListRolloutsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + saasRolloutsClient.listRolloutsPagedCallable().futureCall(request); + // Do something. + for (Rollout element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasRollouts_ListRollouts_async] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/listrollouts/AsyncListRolloutsPaged.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/listrollouts/AsyncListRolloutsPaged.java new file mode 100644 index 000000000000..b4cf7b62423a --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/listrollouts/AsyncListRolloutsPaged.java @@ -0,0 +1,63 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasRollouts_ListRollouts_Paged_async] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsResponse; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.LocationName; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsClient; +import com.google.common.base.Strings; + +public class AsyncListRolloutsPaged { + + public static void main(String[] args) throws Exception { + asyncListRolloutsPaged(); + } + + public static void asyncListRolloutsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create()) { + ListRolloutsRequest request = + ListRolloutsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListRolloutsResponse response = saasRolloutsClient.listRolloutsCallable().call(request); + for (Rollout element : response.getRolloutsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasRollouts_ListRollouts_Paged_async] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/listrollouts/SyncListRollouts.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/listrollouts/SyncListRollouts.java new file mode 100644 index 000000000000..cb7e024700ed --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/listrollouts/SyncListRollouts.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasRollouts_ListRollouts_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.ListRolloutsRequest; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.LocationName; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsClient; + +public class SyncListRollouts { + + public static void main(String[] args) throws Exception { + syncListRollouts(); + } + + public static void syncListRollouts() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create()) { + ListRolloutsRequest request = + ListRolloutsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (Rollout element : saasRolloutsClient.listRollouts(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasRollouts_ListRollouts_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/listrollouts/SyncListRolloutsLocationname.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/listrollouts/SyncListRolloutsLocationname.java new file mode 100644 index 000000000000..1d7519afb888 --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/listrollouts/SyncListRolloutsLocationname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasRollouts_ListRollouts_Locationname_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.LocationName; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsClient; + +public class SyncListRolloutsLocationname { + + public static void main(String[] args) throws Exception { + syncListRolloutsLocationname(); + } + + public static void syncListRolloutsLocationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (Rollout element : saasRolloutsClient.listRollouts(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasRollouts_ListRollouts_Locationname_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/listrollouts/SyncListRolloutsString.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/listrollouts/SyncListRolloutsString.java new file mode 100644 index 000000000000..1b040c68d4b3 --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/listrollouts/SyncListRolloutsString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasRollouts_ListRollouts_String_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.LocationName; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsClient; + +public class SyncListRolloutsString { + + public static void main(String[] args) throws Exception { + syncListRolloutsString(); + } + + public static void syncListRolloutsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (Rollout element : saasRolloutsClient.listRollouts(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasRollouts_ListRollouts_String_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/updaterollout/AsyncUpdateRollout.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/updaterollout/AsyncUpdateRollout.java new file mode 100644 index 000000000000..9087cc92013d --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/updaterollout/AsyncUpdateRollout.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasRollouts_UpdateRollout_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateRollout { + + public static void main(String[] args) throws Exception { + asyncUpdateRollout(); + } + + public static void asyncUpdateRollout() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create()) { + UpdateRolloutRequest request = + UpdateRolloutRequest.newBuilder() + .setRollout(Rollout.newBuilder().build()) + .setValidateOnly(true) + .setRequestId("requestId693933066") + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = saasRolloutsClient.updateRolloutCallable().futureCall(request); + // Do something. + Rollout response = future.get(); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasRollouts_UpdateRollout_async] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/updaterollout/SyncUpdateRollout.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/updaterollout/SyncUpdateRollout.java new file mode 100644 index 000000000000..89c7d48a2132 --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/updaterollout/SyncUpdateRollout.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasRollouts_UpdateRollout_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateRollout { + + public static void main(String[] args) throws Exception { + syncUpdateRollout(); + } + + public static void syncUpdateRollout() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create()) { + UpdateRolloutRequest request = + UpdateRolloutRequest.newBuilder() + .setRollout(Rollout.newBuilder().build()) + .setValidateOnly(true) + .setRequestId("requestId693933066") + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Rollout response = saasRolloutsClient.updateRollout(request); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasRollouts_UpdateRollout_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/updaterollout/SyncUpdateRolloutRolloutFieldmask.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/updaterollout/SyncUpdateRolloutRolloutFieldmask.java new file mode 100644 index 000000000000..c8b68bec2225 --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/updaterollout/SyncUpdateRolloutRolloutFieldmask.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasRollouts_UpdateRollout_RolloutFieldmask_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.Rollout; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateRolloutRolloutFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateRolloutRolloutFieldmask(); + } + + public static void syncUpdateRolloutRolloutFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create()) { + Rollout rollout = Rollout.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + Rollout response = saasRolloutsClient.updateRollout(rollout, updateMask); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasRollouts_UpdateRollout_RolloutFieldmask_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/updaterolloutkind/AsyncUpdateRolloutKind.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/updaterolloutkind/AsyncUpdateRolloutKind.java new file mode 100644 index 000000000000..ee4dd8bb9923 --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/updaterolloutkind/AsyncUpdateRolloutKind.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasRollouts_UpdateRolloutKind_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutKindRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateRolloutKind { + + public static void main(String[] args) throws Exception { + asyncUpdateRolloutKind(); + } + + public static void asyncUpdateRolloutKind() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create()) { + UpdateRolloutKindRequest request = + UpdateRolloutKindRequest.newBuilder() + .setRolloutKind(RolloutKind.newBuilder().build()) + .setValidateOnly(true) + .setRequestId("requestId693933066") + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + saasRolloutsClient.updateRolloutKindCallable().futureCall(request); + // Do something. + RolloutKind response = future.get(); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasRollouts_UpdateRolloutKind_async] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/updaterolloutkind/SyncUpdateRolloutKind.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/updaterolloutkind/SyncUpdateRolloutKind.java new file mode 100644 index 000000000000..f8f25046c838 --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/updaterolloutkind/SyncUpdateRolloutKind.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasRollouts_UpdateRolloutKind_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsClient; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.UpdateRolloutKindRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateRolloutKind { + + public static void main(String[] args) throws Exception { + syncUpdateRolloutKind(); + } + + public static void syncUpdateRolloutKind() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create()) { + UpdateRolloutKindRequest request = + UpdateRolloutKindRequest.newBuilder() + .setRolloutKind(RolloutKind.newBuilder().build()) + .setValidateOnly(true) + .setRequestId("requestId693933066") + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + RolloutKind response = saasRolloutsClient.updateRolloutKind(request); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasRollouts_UpdateRolloutKind_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/updaterolloutkind/SyncUpdateRolloutKindRolloutkindFieldmask.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/updaterolloutkind/SyncUpdateRolloutKindRolloutkindFieldmask.java new file mode 100644 index 000000000000..ec003993d6d2 --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrollouts/updaterolloutkind/SyncUpdateRolloutKindRolloutkindFieldmask.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasRollouts_UpdateRolloutKind_RolloutkindFieldmask_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.RolloutKind; +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateRolloutKindRolloutkindFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateRolloutKindRolloutkindFieldmask(); + } + + public static void syncUpdateRolloutKindRolloutkindFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SaasRolloutsClient saasRolloutsClient = SaasRolloutsClient.create()) { + RolloutKind rolloutKind = RolloutKind.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + RolloutKind response = saasRolloutsClient.updateRolloutKind(rolloutKind, updateMask); + } + } +} +// [END saasservicemgmt_v1beta1_generated_SaasRollouts_UpdateRolloutKind_RolloutkindFieldmask_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrolloutssettings/getrollout/SyncGetRollout.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrolloutssettings/getrollout/SyncGetRollout.java new file mode 100644 index 000000000000..606193fe8acd --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/saasrolloutssettings/getrollout/SyncGetRollout.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasRolloutsSettings_GetRollout_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.SaasRolloutsSettings; +import java.time.Duration; + +public class SyncGetRollout { + + public static void main(String[] args) throws Exception { + syncGetRollout(); + } + + public static void syncGetRollout() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + SaasRolloutsSettings.Builder saasRolloutsSettingsBuilder = SaasRolloutsSettings.newBuilder(); + saasRolloutsSettingsBuilder + .getRolloutSettings() + .setRetrySettings( + saasRolloutsSettingsBuilder + .getRolloutSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + SaasRolloutsSettings saasRolloutsSettings = saasRolloutsSettingsBuilder.build(); + } +} +// [END saasservicemgmt_v1beta1_generated_SaasRolloutsSettings_GetRollout_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/stub/saasdeploymentsstubsettings/getsaas/SyncGetSaas.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/stub/saasdeploymentsstubsettings/getsaas/SyncGetSaas.java new file mode 100644 index 000000000000..8ed5971df6ad --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/stub/saasdeploymentsstubsettings/getsaas/SyncGetSaas.java @@ -0,0 +1,56 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.stub.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasDeploymentsStubSettings_GetSaas_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.stub.SaasDeploymentsStubSettings; +import java.time.Duration; + +public class SyncGetSaas { + + public static void main(String[] args) throws Exception { + syncGetSaas(); + } + + public static void syncGetSaas() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + SaasDeploymentsStubSettings.Builder saasDeploymentsSettingsBuilder = + SaasDeploymentsStubSettings.newBuilder(); + saasDeploymentsSettingsBuilder + .getSaasSettings() + .setRetrySettings( + saasDeploymentsSettingsBuilder + .getSaasSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + SaasDeploymentsStubSettings saasDeploymentsSettings = saasDeploymentsSettingsBuilder.build(); + } +} +// [END saasservicemgmt_v1beta1_generated_SaasDeploymentsStubSettings_GetSaas_sync] diff --git a/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/stub/saasrolloutsstubsettings/getrollout/SyncGetRollout.java b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/stub/saasrolloutsstubsettings/getrollout/SyncGetRollout.java new file mode 100644 index 000000000000..1c557bc9695f --- /dev/null +++ b/java-saasservicemgmt/samples/snippets/generated/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/stub/saasrolloutsstubsettings/getrollout/SyncGetRollout.java @@ -0,0 +1,56 @@ +/* + * Copyright 2025 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.saasplatform.saasservicemgmt.v1beta1.stub.samples; + +// [START saasservicemgmt_v1beta1_generated_SaasRolloutsStubSettings_GetRollout_sync] +import com.google.cloud.saasplatform.saasservicemgmt.v1beta1.stub.SaasRolloutsStubSettings; +import java.time.Duration; + +public class SyncGetRollout { + + public static void main(String[] args) throws Exception { + syncGetRollout(); + } + + public static void syncGetRollout() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + SaasRolloutsStubSettings.Builder saasRolloutsSettingsBuilder = + SaasRolloutsStubSettings.newBuilder(); + saasRolloutsSettingsBuilder + .getRolloutSettings() + .setRetrySettings( + saasRolloutsSettingsBuilder + .getRolloutSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + SaasRolloutsStubSettings saasRolloutsSettings = saasRolloutsSettingsBuilder.build(); + } +} +// [END saasservicemgmt_v1beta1_generated_SaasRolloutsStubSettings_GetRollout_sync] diff --git a/pom.xml b/pom.xml index 208f60ef334b..ff79908d9760 100644 --- a/pom.xml +++ b/pom.xml @@ -176,6 +176,7 @@ java-resourcemanager java-retail java-run + java-saasservicemgmt java-samples java-scheduler java-secretmanager diff --git a/versions.txt b/versions.txt index 8cd0a44c6422..7a03a2839a57 100644 --- a/versions.txt +++ b/versions.txt @@ -900,3 +900,6 @@ proto-google-shopping-merchant-quota-v1:0.33.0:0.34.0-SNAPSHOT grpc-google-shopping-merchant-quota-v1:0.33.0:0.34.0-SNAPSHOT proto-google-shopping-merchant-reports-v1:0.46.0:0.47.0-SNAPSHOT grpc-google-shopping-merchant-reports-v1:0.46.0:0.47.0-SNAPSHOT +google-cloud-saasservicemgmt:0.0.0:0.0.1-SNAPSHOT +proto-google-cloud-saasservicemgmt-v1beta1:0.0.0:0.0.1-SNAPSHOT +grpc-google-cloud-saasservicemgmt-v1beta1:0.0.0:0.0.1-SNAPSHOT